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.
13 static char rcsid[] = "$TOG: UilData.c /main/14 1999/04/16 10:41:44 mgreess $"
18 * (c) Copyright 1989, 1990, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
24 ** User Interface Language Compiler (UIL)
28 ** Global data definitions
42 #include <Dt/Editor.h>
44 #include <Dt/HelpDialog.h>
45 #include <Dt/HelpQuickD.h>
46 #include <Dt/MenuButton.h>
48 #include <Dt/TermPrim.h>
51 #include <Mrm/MrmAppl.h>
53 #include <Xm/MwmUtil.h> /* For MWM_*_* defines. */
56 #include "UilSymGen.h"
60 ** DEFINE and MACRO DEFINITIONS
68 ** EXTERNAL VARIABLE DECLARATIONS
76 ** GLOBAL VARIABLE DECLARATIONS
80 /* Case sensitivity switch; TRUE if case sensitive. */
84 externaldef(uil_comp_glbl) boolean uil_v_case_sensitive = TRUE;
86 /* Location to store error type. */
88 externaldef(uil_comp_glbl) jmp_buf uil_az_error_env_block;
89 externaldef(uil_comp_glbl) boolean uil_az_error_env_valid = FALSE;
91 /* Debugging switches. */
94 externaldef(uil_comp_glbl) boolean uil_v_dump_tokens = FALSE;
95 externaldef(uil_comp_glbl) boolean uil_v_dump_symbols = FALSE;
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 = "";
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;
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"
121 /* Allowed children and child classes */
122 #include "UilSymChCl.h"
123 #include "UilSymChTa.h"
125 /* sym_k... to name vectors. */
126 #include "UilSymNam.h"
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 [] = {
134 "string", /* char 8 */
141 "horizontal_dimension_integer",
142 "vertical_dimension_integer",
143 "horizontal_dimension_float",
144 "vertical_dimension_float",
167 /* Enumeration Set/Value tables */
168 #include "UilSymEnum.h"
170 /* Character set attribute tables */
171 #include "UilSymCSet.h"
173 /* Mrm encoding information */
174 #include "UilUrmClas.h"
176 /* Names of tokens in grammar */
177 #include "UilTokName.h"
179 /* The keyword tables */
180 #include "UilKeyTab.h"
185 ** OWN VARIABLE DECLARATIONS