File: microfio.h

package info (click to toggle)
aish 1.13-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 304 kB
  • ctags: 449
  • sloc: ansic: 4,046; makefile: 129; sh: 21
file content (34 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*	Copyright 1993 H.Ogasawara (COR.)	*/

#if HUMANFIO

#define	Mprint(a)	PRINT(a)
#define	Mputchar(a)	PUTCHAR(a)
#define	unlink(a)	DELETE(a)
#if MVOLENC
# define Mseek(a,b,c)	SEEK((a)->fn,b,c)
#else
# define Merr(a)	MerrAsm(a)
# define Merrch(a)	MerrchAsm(a)
#endif
#define	MFBUFSIZE	4096

typedef	struct {
		int	fn;
		unsigned char	*ptr;
		unsigned char	*limit;
		unsigned char	buf[MFBUFSIZE];
	} m_file;

#else

#include	<stdio.h>
typedef	struct {
		FILE	*fp;
		int	fn;
	} m_file;

#endif

#define	UFLUSH()