more fix on Ec/Ev.
[gss-tcad.git] / src / include / termnlgy.h
blobf912b55135f78980ae00013154ca35c9f2fad37b
1 // ----------------------------------------------------------------------------
2 // PROJECT: SIMULATION GENERATION FRAMEWORK (SIMGEN)
3 //
4 // AUTHOR: Kevin M. Kramer
5 // J. Joshua Feng
6 //
7 // REVISION HISTORY
8 // DATE INITIALS DESCRIPTION
9 // -------- -------- ------------------------------------------------------
10 // 09/15/94 KMK initial implementation
11 // ??/??/96 JJF seperate it from the headers
13 // DESCRIPTION: Terminology / Nomenclature in programming
14 // Type definitions and macro definitions, if handled by the
15 // precompiler, should not increase the size of the executable,
16 // nor the objective code.
17 // ----------------------------------------------------------------------------
20 #ifndef __termnlgy_h
21 #define __termnlgy_h
23 ///////////////////////////////////////////////////////////////////////////////
24 //////////////////////////// TYPE DEFINITIONS ///////////////////////////////
25 ///////////////////////////////////////////////////////////////////////////////
27 // boolean constants
28 #define TRUE 1
29 #define FALSE 0
31 // global type definitions
32 typedef int BOOL; // f
33 typedef unsigned char BYTE; // b
34 typedef unsigned int UINT; // u
35 typedef char * PSTR; // psz
36 typedef int * PINT; // pn
37 typedef long * PLONG; // pl
39 typedef void * PVOID; // pv
40 typedef int * PBOOL; // pf
42 typedef int I3ARRAY[3]; // i3a x1, x2, x3 coordinates
43 typedef void (*PFV) (BOOL);
45 #if defined(SPREC)
46 typedef float REAL; // r
47 typedef float * PREAL; // pr
48 typedef float (*PFEQU) (I3ARRAY);
49 typedef void (*PFPD) (float *, UINT *, I3ARRAY);
50 #elif defined(LPREC)
51 typedef long double REAL; // r
52 typedef long double * PREAL; // pr
53 typedef long double (*PFEQU) (I3ARRAY);
54 typedef void (*PFPD) (long double *, UINT *, I3ARRAY);
55 #else
56 typedef double REAL; // r
57 typedef double * PREAL; // pr
58 typedef double (*PFEQU) (I3ARRAY);
59 typedef void (*PFPD) (double *, UINT *, I3ARRAY);
60 #endif
62 typedef double (*PRF) (); // prf
63 typedef double (*PRF1)(double); // prf1
64 typedef double (*PRF2)(double, double); // prf2
65 typedef double (*PRF3)(double, double, double); // prf3
66 typedef double (*PRF4)(double, double, double, double); // prf4
67 typedef double (*PRF5)(double, double, double, double, double); // prf5
69 typedef unsigned char UCHAR; // uch
70 typedef unsigned long ULONG; // ul
71 typedef unsigned long DWORD; // dw
72 typedef unsigned long *PDWORD; // pdw
74 #if defined(UNIX)
75 typedef unsigned int WORD; // w
76 typedef unsigned int *PWORD; // pw
77 #define O_BINARY 0x0000
78 #endif
80 #endif