1 /************************************************************
2 Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
4 Permission to use, copy, modify, and distribute this
5 software and its documentation for any purpose and without
6 fee is hereby granted, provided that the above copyright
7 notice appear in all copies and that both that copyright
8 notice and this permission notice appear in supporting
9 documentation, and that the name of Silicon Graphics not be
10 used in advertising or publicity pertaining to distribution
11 of the software without specific prior written permission.
12 Silicon Graphics makes no representation about the suitability
13 of this software for any purpose. It is provided "as is"
14 without any express or implied warranty.
16 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
17 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
19 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
20 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
22 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
23 THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 ********************************************************/
31 #define DEBUG_VAR debugFlags
36 #include <X11/extensions/XKM.h>
38 extern char *scanFile;
51 #define StmtKeycodeDef 2
52 #define StmtKeyAliasDef 3
55 #define StmtKeyTypeDef 6
56 #define StmtInterpDef 7
58 #define StmtSymbolsDef 9
59 #define StmtModMapDef 10
60 #define StmtGroupCompatDef 11
61 #define StmtIndicatorMapDef 12
62 #define StmtIndicatorNameDef 13
63 #define StmtOutlineDef 14
64 #define StmtShapeDef 15
67 #define StmtSectionDef 18
68 #define StmtOverlayKeyDef 19
69 #define StmtOverlayDef 20
70 #define StmtDoodadDef 21
72 #define FileSymInterp 100
74 typedef struct _ParseCommon
77 struct _ParseCommon *next;
82 #define ExprActionDecl 2
83 #define ExprFieldRef 3
84 #define ExprArrayRef 4
85 #define ExprKeysymList 5
86 #define ExprActionList 6
97 #define OpUnaryPlus 28
99 #define MergeDefault 0
100 #define MergeAugment 1
101 #define MergeOverride 2
102 #define MergeReplace 3
103 #define MergeAltForm 4
105 #define AutoKeyNames (1L << 0)
106 #define CreateKeyNames(x) ((x)->flags&AutoKeyNames)
108 extern unsigned warningLevel;
109 extern unsigned optionalParts;
111 typedef struct _IncludeStmt
120 struct _IncludeStmt *next;
171 typedef struct _VarDef
179 typedef struct _VModDef
187 typedef struct _KeycodeDef
195 typedef struct _KeyAliasDef
203 typedef struct _KeyTypeDef
211 typedef struct _SymbolsDef
219 typedef struct _ModMapDef
227 typedef struct _GroupCompatDef
235 typedef struct _InterpDef
244 typedef struct _IndicatorNameDef
253 typedef struct _OutlineDef
261 typedef struct _ShapeDef
267 OutlineDef *outlines;
270 typedef struct _KeyDef
278 typedef struct _RowDef
285 typedef struct _SectionDef
294 typedef struct _OverlayKeyDef
301 typedef struct _OverlayDef
310 typedef struct _DoodadDef
319 /* IndicatorMapDef doesn't use the type field, but the rest of the fields
320 need to be at the same offsets as in DoodadDef. Use #define to avoid
321 any strict aliasing problems. */
322 #define IndicatorMapDef DoodadDef
324 typedef struct _XkbFile
336 extern Bool CompileKeymap(XkbFile * /* file */ ,
337 XkbFileInfo * /* result */ ,
341 extern Bool CompileKeycodes(XkbFile * /* file */ ,
342 XkbFileInfo * /* result */ ,
346 extern Bool CompileGeometry(XkbFile * /* file */ ,
347 XkbFileInfo * /* result */ ,
351 extern Bool CompileKeyTypes(XkbFile * /* file */ ,
352 XkbFileInfo * /* result */ ,
356 typedef struct _LEDInfo *LEDInfoPtr;
358 extern Bool CompileCompatMap(XkbFile * /* file */ ,
359 XkbFileInfo * /* result */ ,
360 unsigned /* merge */ ,
361 LEDInfoPtr * /* unboundLEDs */
364 extern Bool CompileSymbols(XkbFile * /* file */ ,
365 XkbFileInfo * /* result */ ,
369 #define WantLongListing (1<<0)
370 #define WantPartialMaps (1<<1)
371 #define WantHiddenMaps (1<<2)
372 #define WantFullNames (1<<3)
373 #define ListRecursive (1<<4)
375 extern char *rootDir;
376 extern unsigned verboseLevel;
377 extern unsigned dirsToStrip;
379 extern Bool AddListing(char * /* file */ ,
383 extern Bool AddMatchingFiles(char * /* head_in */
386 extern int AddMapOnly(char * /* map */
389 extern int GenerateListing(char * /* filename */
392 #endif /* XKBCOMP_H */