Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / osf / uil / UilData.c
1 /* 
2  *  @OSF_COPYRIGHT@
3  *  COPYRIGHT NOTICE
4  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
5  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
6  *  the full copyright text.
7 */ 
8 /* 
9  * HISTORY
10 */ 
11 #ifdef REV_INFO
12 #ifndef lint
13 static char rcsid[] = "$TOG: UilData.c /main/14 1999/04/16 10:41:44 mgreess $"
14 #endif
15 #endif
16
17 /*
18 *  (c) Copyright 1989, 1990, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
19
20 /*
21 **++
22 **  FACILITY:
23 **
24 **      User Interface Language Compiler (UIL)
25 **
26 **  ABSTRACT:
27 **
28 **      Global data definitions
29 **
30 **--
31 **/
32
33
34 /*
35 **
36 **  INCLUDE FILES
37 **
38 **/
39
40 #include <setjmp.h>
41
42 #include <Dt/Editor.h>
43 #include <Dt/Help.h>
44 #include <Dt/HelpDialog.h>
45 #include <Dt/HelpQuickD.h>
46 #include <Dt/MenuButton.h>
47 #include <Dt/Print.h>
48 #include <Dt/TermPrim.h>
49 #include <Dt/Term.h>
50
51 #include <Mrm/MrmAppl.h>
52 #include <Mrm/Mrm.h>
53 #include <Xm/MwmUtil.h> /* For MWM_*_* defines. */
54
55 #include "UilDefI.h"
56 #include "UilSymGen.h"
57
58 /*
59 **
60 **  DEFINE and MACRO DEFINITIONS
61 **
62 **/
63
64
65
66 /*
67 **
68 **  EXTERNAL VARIABLE DECLARATIONS
69 **
70 **/
71
72
73
74 /*
75 **
76 **  GLOBAL VARIABLE DECLARATIONS
77 **
78 **/
79
80 /*    Case sensitivity switch; TRUE if case sensitive.    */
81
82
83
84 externaldef(uil_comp_glbl) boolean      uil_v_case_sensitive = TRUE;
85
86 /*    Location to store error type.    */
87
88 externaldef(uil_comp_glbl) jmp_buf      uil_az_error_env_block;
89 externaldef(uil_comp_glbl) boolean      uil_az_error_env_valid = FALSE;
90
91 /*    Debugging switches.    */
92
93 #if debug_version
94 externaldef(uil_comp_glbl) boolean      uil_v_dump_tokens = FALSE;
95 externaldef(uil_comp_glbl) boolean      uil_v_dump_symbols = FALSE;
96 #endif
97
98 externaldef(uil_comp_glbl) status       uil_l_compile_status = uil_k_success_status;
99 externaldef(uil_comp_glbl) Uil_compile_desc_type   *Uil_compile_desc_ptr = NULL;
100 externaldef(uil_comp_glbl) int          Uil_percent_complete = 0;
101 externaldef(uil_comp_glbl) int          Uil_lines_processed = 0;
102 externaldef(uil_comp_glbl) char *Uil_current_file = "";
103
104
105 /*      Define the user-defined object and default character set */
106 externaldef(uil_sym_glbl) unsigned short int    uil_sym_user_defined_object =
107                 sym_k_user_defined_object;
108 externaldef(uil_sym_glbl) unsigned short int    uil_sym_default_charset =
109                 sym_k_iso_latin1_charset;
110 externaldef(uil_sym_glbl) unsigned short int    uil_sym_isolatin1_charset =
111                 sym_k_iso_latin1_charset;
112
113 /*      argument types, allowed tables, constraints, related arguments */
114 #include "UilSymArTy.h"
115 #include "UilSymRArg.h"
116 #include "UilSymArTa.h"
117 #include "UilSymReas.h"
118 #include "UilSymCtl.h"
119 #include "UilConst.h"
120
121 /* Allowed children and child classes */
122 #include "UilSymChCl.h"
123 #include "UilSymChTa.h"
124
125 /*      sym_k... to name vectors. */
126 #include "UilSymNam.h"
127
128 /*      Define mapping of sym_k_..._value to data type names. */
129 externaldef(uil_comp_glbl) int uil_max_value = sym_k_max_value;
130 externaldef(uil_comp_glbl) char *uil_datatype_names [] = {
131     "", /* NOT USED */
132     "any",
133     "boolean",
134     "string",           /* char 8 */
135     "compound_string",
136     "float",
137     "integer",
138     "single_float",
139     "localized_string",
140     "wchar_string",
141     "horizontal_dimension_integer",
142     "vertical_dimension_integer",
143     "horizontal_dimension_float",
144     "vertical_dimension_float",
145     "argument",
146     "asciz_table",
147     "class_rec_name",
148     "color",
149     "color_table",
150     "font",
151     "font_table",
152     "icon",
153     "identifier",
154     "integer_table",
155     "keysym",
156     "pixmap",
157     "reason",
158     "rgb",
159     "string_table",
160     "translation_table",
161     "widget_ref",
162     "xbitmapfile",
163     "fontset",
164     "child",
165 };
166
167 /*      Enumeration Set/Value tables */
168 #include "UilSymEnum.h"
169
170 /*      Character set attribute tables */
171 #include "UilSymCSet.h"
172
173 /*      Mrm encoding information */
174 #include "UilUrmClas.h"
175
176 /*      Names of tokens in grammar */
177 #include "UilTokName.h"
178
179 /*      The keyword tables */
180 #include "UilKeyTab.h"
181
182
183 /*
184 **
185 **  OWN VARIABLE DECLARATIONS
186 **
187 **/
188