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
|
/*
* Standard definitions.
*
* Neil Hunt (Neil%Teleos.com@ai.sri.com).
*
* Copyright (c) 1989 Teleos Research, Inc 1989.
* Copyright (c) 1988 Schlumberger Technologies, Inc 1988.
*
* Anyone can use this software in any manner they choose,
* including modification and redistribution, provided they make
* no charge for it, and these conditions remain unchanged.
*
* This program is distributed as is, with all faults (if any), and
* without any wrranty. No author or distributor accepts responsibility
* to anyone for the consequences of using it, or for whether it serves any
* particular purpose at all, or any other reason.
*
* $Log: std.h,v $
* Revision 1.1 89/02/10 18:41:57 neil
* Initial revision
*
*/
#ifndef _TYPES_
typedef unsigned int uint;
typedef short ushort;
#endif /* _TYPES_ */
typedef unsigned char uchar;
#ifdef bool
#undef bool
#endif /* bool */
typedef unsigned int bool;
#define DEL '\177'
#define ESC '\033'
#define Control(c) ((c) - 0x40)
#define forward extern
#define Range(min, x, max) (((x) < (min))? \
(min) : (((x) > (max))? (max) : (x)) \
)
#define MAXINT 2147483647
#define NEGMAXINT (-2147483648)
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif /* TRUE */
#define Abs(n) (((n) >= 0.0)? (n) : -(n))
#define Min(a, b) ((a) > (b)? (b) : (a))
#define Max(a, b) ((a) < (b)? (b) : (a))
|