aboutsummaryrefslogtreecommitdiff
path: root/backendC/CleanCompilerSources/windows_io.h
blob: 65679803112bc8e023fe7e0d8eb4b7764a05ea33 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
extern int MACVAR;
#define CheckVersion if (MACVAR != VERSION) DoFatalError ("Wrong version number")

typedef short          TwoBytesInt;
typedef int            FourBytesInt;
typedef unsigned short TwoBytesUnsigned;
typedef unsigned int   FourBytesUnsigned;

typedef double  EightBytesReal;
typedef float         FourBytesReal;

#define SizeT		unsigned long
#define SizeOf(A)	((SizeT) sizeof (A))

#include <limits.h>
#define MAXUNSIGNED	ULONG_MAX

#define _VARARGS_

#include <string.h>
#include <stdlib.h>

#if defined (__MWERKS__) || defined (_WINDOWS_)
#	include <stdio.h>
#else
#	include <unix.h>
#endif

#include <setjmp.h>
#include <stdarg.h>

typedef FILE *File;

/* special for MacIntosh command line support */
extern void InitIO (void);
extern void GetPreferences (char *fname);

#define StdOut stdout
#define StdError stderr
#define StdVerboseH stdout
#define StdVerboseL stdout
#define StdTrace stdout
#define StdDebug stdout;
#define StdListTypes stdout

#define FGetC(f) fgetc(f)
#define FPutC(c,f) fputc(c,f)