summaryrefslogtreecommitdiff
path: root/Build/source/texk/chktex/chktypes.h
blob: 2ab6ec4736e7577fb1c32cbec825f92c06cab5ed (plain)
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
71
72
73
74
75
76
/*
 * Clone of <exec/types.h>, which could not be included because it's
 * (c) Commodore/Escom/Amiga/whatever.
 *
 */

#ifndef EXEC_TYPES_H
#define	EXEC_TYPES_H

#define GLOBAL	extern	    /* the declaratory use of an external */
#define IMPORT	extern	    /* reference to an external */
#define STATIC	static	    /* a local static variable */
#define REGISTER register   /* a (hopefully) register variable */

#ifndef VOID
#	define VOID		void
#endif


typedef void*			APTR;		/* Address pointer */

#ifndef WIN32
typedef unsigned long	ULONG;
typedef long			LONG;
#endif

#ifdef AMIGA
typedef unsigned long	LONGBITS;	/* Longword accessed bitwise */
#endif

#ifndef WIN32
typedef short			WORD;
#endif
typedef unsigned short	UWORD;
typedef unsigned short	WORDBITS;

typedef unsigned char	UBYTE;
typedef unsigned char	BYTEBITS;

typedef unsigned short	RPTR;	    /* relative pointer */


#ifndef WIN32
#if __STDC__
typedef signed char		BYTE;
#else
typedef char			BYTE;
#endif
#endif

#if defined(__cplusplus) || defined(AMIGA)
typedef unsigned char	TEXT;
#else
typedef char			TEXT;
#endif

typedef TEXT *			STRPTR;     /* pointer to a string */

#ifndef WIN32
typedef float			FLOAT;
typedef double			DOUBLE;
typedef short			BOOL;		/* Boolean value */
#endif

#ifndef TRUE
#	define TRUE			1L
#endif
#ifndef FALSE
#	define FALSE		0L
#endif
#ifndef NULL
#	define NULL			(void *) 0L
#endif


#endif