123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /*
- * @OSF_COPYRIGHT@
- * COPYRIGHT NOTICE
- * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
- * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
- * the full copyright text.
- */
- /*
- * HISTORY
- */
- #ifdef REV_INFO
- #ifndef lint
- static char rcsid[] = "$TOG: UilData.c /main/14 1999/04/16 10:41:44 mgreess $"
- #endif
- #endif
- /*
- * (c) Copyright 1989, 1990, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
- /*
- **++
- ** FACILITY:
- **
- ** User Interface Language Compiler (UIL)
- **
- ** ABSTRACT:
- **
- ** Global data definitions
- **
- **--
- **/
- /*
- **
- ** INCLUDE FILES
- **
- **/
- #include <setjmp.h>
- #include <Dt/Editor.h>
- #include <Dt/Help.h>
- #include <Dt/HelpDialog.h>
- #include <Dt/HelpQuickD.h>
- #include <Dt/MenuButton.h>
- #include <Dt/Print.h>
- #include <Dt/TermPrim.h>
- #include <Dt/Term.h>
- #include <Mrm/MrmAppl.h>
- #include <Mrm/Mrm.h>
- #include <Xm/MwmUtil.h> /* For MWM_*_* defines. */
- #include "UilDefI.h"
- #include "UilSymGen.h"
- /*
- **
- ** DEFINE and MACRO DEFINITIONS
- **
- **/
- /*
- **
- ** EXTERNAL VARIABLE DECLARATIONS
- **
- **/
- /*
- **
- ** GLOBAL VARIABLE DECLARATIONS
- **
- **/
- /* Case sensitivity switch; TRUE if case sensitive. */
- externaldef(uil_comp_glbl) boolean uil_v_case_sensitive = TRUE;
- /* Location to store error type. */
- externaldef(uil_comp_glbl) jmp_buf uil_az_error_env_block;
- externaldef(uil_comp_glbl) boolean uil_az_error_env_valid = FALSE;
- /* Debugging switches. */
- #if debug_version
- externaldef(uil_comp_glbl) boolean uil_v_dump_tokens = FALSE;
- externaldef(uil_comp_glbl) boolean uil_v_dump_symbols = FALSE;
- #endif
- externaldef(uil_comp_glbl) status uil_l_compile_status = uil_k_success_status;
- externaldef(uil_comp_glbl) Uil_compile_desc_type *Uil_compile_desc_ptr = NULL;
- externaldef(uil_comp_glbl) int Uil_percent_complete = 0;
- externaldef(uil_comp_glbl) int Uil_lines_processed = 0;
- externaldef(uil_comp_glbl) char *Uil_current_file = "";
- /* Define the user-defined object and default character set */
- externaldef(uil_sym_glbl) unsigned short int uil_sym_user_defined_object =
- sym_k_user_defined_object;
- externaldef(uil_sym_glbl) unsigned short int uil_sym_default_charset =
- sym_k_iso_latin1_charset;
- externaldef(uil_sym_glbl) unsigned short int uil_sym_isolatin1_charset =
- sym_k_iso_latin1_charset;
- /* argument types, allowed tables, constraints, related arguments */
- #include "UilSymArTy.h"
- #include "UilSymRArg.h"
- #include "UilSymArTa.h"
- #include "UilSymReas.h"
- #include "UilSymCtl.h"
- #include "UilConst.h"
- /* Allowed children and child classes */
- #include "UilSymChCl.h"
- #include "UilSymChTa.h"
- /* sym_k... to name vectors. */
- #include "UilSymNam.h"
- /* Define mapping of sym_k_..._value to data type names. */
- externaldef(uil_comp_glbl) int uil_max_value = sym_k_max_value;
- externaldef(uil_comp_glbl) char *uil_datatype_names [] = {
- "", /* NOT USED */
- "any",
- "boolean",
- "string", /* char 8 */
- "compound_string",
- "float",
- "integer",
- "single_float",
- "localized_string",
- "wchar_string",
- "horizontal_dimension_integer",
- "vertical_dimension_integer",
- "horizontal_dimension_float",
- "vertical_dimension_float",
- "argument",
- "asciz_table",
- "class_rec_name",
- "color",
- "color_table",
- "font",
- "font_table",
- "icon",
- "identifier",
- "integer_table",
- "keysym",
- "pixmap",
- "reason",
- "rgb",
- "string_table",
- "translation_table",
- "widget_ref",
- "xbitmapfile",
- "fontset",
- "child",
- };
- /* Enumeration Set/Value tables */
- #include "UilSymEnum.h"
- /* Character set attribute tables */
- #include "UilSymCSet.h"
- /* Mrm encoding information */
- #include "UilUrmClas.h"
- /* Names of tokens in grammar */
- #include "UilTokName.h"
- /* The keyword tables */
- #include "UilKeyTab.h"
- /*
- **
- ** OWN VARIABLE DECLARATIONS
- **
- **/
|