blob: f70a906e6cdc9cb59115a07bbb5b1616676dca1a (
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
77
78
79
80
81
82
83
84
85
86
87
|
/******************************************************************************/
/* Start of style.h */
/******************************************************************************/
/*
This style.h file contains a compilation of stuff from a number of
header files that collectively make up my C style environment.
This header file was hacked together solely to simplify the distribution
of the exceptions package - the originating style.h file is much more
complicated and #includes other files.
For this reason I make no apology for the poor quality of this style.h
file and the as.h and as.c files also provided in support of except.fw.
They exist solely so that the user can compile and use the exception
package. It is expected that the user will transfer some of these
definitions to the user's own style file and replace #includes of this
style file to the user's own style file.
This file is distributed without warranty and was placed in the public
domain by its author Ross Williams on 29 September 1993.
*/
/******************************************************************************/
#ifndef DONE_STYLE
#define DONE_STYLE
#include <stdio.h>
#include <stdlib.h>
typedef unsigned long ulong; /* 32-bit unsigned. */
typedef unsigned long uwide; /* As wide as the address space. */
typedef unsigned bool;
typedef char *string;
#define LOCAL static
#define EXPORT
#define GLOVAR
/* STAVAR is for static variables local to a function. */
#define STAVAR static
#define ULONG(X) ((ulong) (X))
#define UWIDE(X) ((uwide) (X))
#ifndef FALSE
#define FALSE (0)
#endif
#ifndef TRUE
#define TRUE (1)
#endif
#ifndef EXIT_FAILURE
#define EXIT_FAILURE (-1)
#endif
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS (0)
#endif
#define NON_ZERO 1
/* Set this to TRUE iff your compiler allows ANSI prototypes. */
#if TRUE
#define P_(A) A
#else
#define P_(A) ()
#endif
/* An uintegral type wide enough to hold a pointer. */
typedef long ptrint;
#define EOL '\n'
/* Set to the empty string if your compiler doesn't support "const". */
#define const
#endif
/******************************************************************************/
/* End of style.h */
/******************************************************************************/
|