aboutsummaryrefslogtreecommitdiff
path: root/backendC/CleanCompilerSources/mac.h
blob: 07aea6aedb754b64162d261e08ea348c547929b3 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*******************************************************************************
 *   MAC Dependencies                                                          *
 ******************************************************************************/

#ifdef THINK_C
	typedef int           TwoBytesInt;
	typedef long int      FourBytesInt;
	typedef unsigned      TwoBytesUnsigned;
	typedef unsigned long FourBytesUnsigned;
	typedef short double  EightBytesReal;
#else
	typedef short          TwoBytesInt;
	typedef int            FourBytesInt;
	typedef unsigned short TwoBytesUnsigned;
	typedef unsigned int   FourBytesUnsigned;
	typedef double  EightBytesReal;
#endif
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>

#ifdef THINK_C
#	include <unix.h>
#else
#	include <stdio.h>
#endif

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

typedef FILE *File;

#ifdef THINK_C
	/* special for MacIntosh command line support */
	extern void InitIO (void);
	extern void GetPreferences (char *fname);
#else
	void GetInitialPathList (void);
	void FreePathList (void);
#endif

#define StdOut stdout
#if defined (__MWERKS__) || defined (__MRC__)
#define StdError stderr
#else
#define StdError stdout
#endif
#define StdVerboseH stdout
#define StdVerboseL stdout
#define StdListTypes stdout

#define FGetC(f) fgetc(f)
#define FGetS(s,n,f) fgets(s,n,f)
#define FPutC(c,f) fputc(c,f)

extern int open_dcl_file_for_block_reading (char *fname,File *file_p);
extern int read_next_block_from_dcl_file (char *buffer);

#if WRITE_DCL_MODIFICATION_TIME
extern int open_dcl_file_for_block_reading_with_file_time (char *file_name,File *file_p,FileTime *file_time_p);
#endif