Debian Codegraph @

gui/GraphLib/libsrc/uimxR5/include/vtypes.h

raw
1 /* @(#)vtypes.h 17.1 (ESO-IPG) 01/25/02 17:26:06 */
2 /*---------------------------------------------------------------------
3 * $Date: 2003-06-04 14:49:18 $ $Revision: 1.1.1.1 $
4 *---------------------------------------------------------------------
5 *
6 *
7 * Copyright (c) 1990, Visual Edge Software Ltd.
8 *
9 * ALL RIGHTS RESERVED. Permission to use, copy, modify, and
10 * distribute this software and its documentation for any purpose
11 * and without fee is hereby granted, provided that the above
12 * copyright notice appear in all copies and that both that
13 * copyright notice and this permission notice appear in supporting
14 * documentation, and that the name of Visual Edge Software not be
15 * used in advertising or publicity pertaining to distribution of
16 * the software without specific, written prior permission. The year
17 * included in the notice is the year of the creation of the work.
18 *-------------------------------------------------------------------*/
19
20 #ifndef _VTYPES_INCLUDED
21 #define _VTYPES_INCLUDED
22
23 #ifndef TRUE
24 #define FALSE 0
25 #define TRUE 1
26 #endif
27
28 #ifndef NULL
29 #define NULL 0
30 #endif
31
32 #ifndef ERROR
33 #define ERROR (-1)
34 #define NO_ERROR 0
35 #endif
36
37 /************************************************************/
38 /***** Type codes used in interpreter parse trees *****/
39 /************************************************************/
40
41 /**/
42 /** variable types 0 - SERVECNT are reserved **/
43 /**/
44
45 #define SERVECNT 16
46
47 /* define the T_ types */
48
49 /* should be arranged in order of
50 * increasing binary conversion precedence
51 */
52 #define T_CHAR 0
53 #define T_UCHAR 1
54 #define T_SHORT 2
55 #define T_USHORT 3
56 #define T_INT 4
57 #define T_UINT 5
58 #define T_LONG 6
59 #define T_ULONG 7
60 #define T_FLOAT 8
61 #define T_DOUBLE 9
62
63 #define T_STRUCT 10
64 #define T_ARRAY 11
65 #define T_FUNC 12
66 #define T_PNTR 13
67 #define T_VOID 14
68 #define T_ENUM 15
69 #define T_vhandle 16
70
71 #define T_char T_CHAR
72 #define T_short T_SHORT
73 #define T_int T_INT
74 #define T_long T_LONG
75 #define T_float T_FLOAT
76 #define T_double T_DOUBLE
77 #define T_void T_VOID
78
79 #define MAX_INTERP_TYPE 600
80
81 /* other types must begin after end of interpreter types */
82
83 #define T_class MAX_INTERP_TYPE
84 #define T_binptr MAX_INTERP_TYPE+1
85 #define T_lock MAX_INTERP_TYPE+2
86 #define T_STRING MAX_INTERP_TYPE+3
87 #define T_Widget MAX_INTERP_TYPE+4
88 #define T_Boolean MAX_INTERP_TYPE+5
89
90 /* Data kept in the flag field for vhandles that are shared
91 * between the interpreter and UIMX.
92 */
93
94 #define FREELIST_KEY 1000
95 #define FREELIST 1001
96 #define STRING 1009
97
98 #endif /* _VTYPES_INCLUDED */