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
35 #include <X11/Xdefs.h>
39 #include <X11/extensions/XKM.h>
40 #include "X11/extensions/XKBcommon.h"
41 #include "XKBcommonint.h"
43 extern char *scanFile;
56 #define StmtKeycodeDef 2
57 #define StmtKeyAliasDef 3
60 #define StmtKeyTypeDef 6
61 #define StmtInterpDef 7
63 #define StmtSymbolsDef 9
64 #define StmtModMapDef 10
65 #define StmtGroupCompatDef 11
66 #define StmtIndicatorMapDef 12
67 #define StmtIndicatorNameDef 13
68 #define StmtOutlineDef 14
69 #define StmtShapeDef 15
72 #define StmtSectionDef 18
73 #define StmtOverlayKeyDef 19
74 #define StmtOverlayDef 20
75 #define StmtDoodadDef 21
77 #define FileSymInterp 100
79 typedef struct _ParseCommon
82 struct _ParseCommon *next;
87 #define ExprActionDecl 2
88 #define ExprFieldRef 3
89 #define ExprArrayRef 4
90 #define ExprKeysymList 5
91 #define ExprActionList 6
102 #define OpUnaryPlus 28
104 #define MergeDefault 0
105 #define MergeAugment 1
106 #define MergeOverride 2
107 #define MergeReplace 3
108 #define MergeAltForm 4
110 #define AutoKeyNames (1L << 0)
111 #define CreateKeyNames(x) ((x)->flags&AutoKeyNames)
113 extern unsigned warningLevel;
114 extern unsigned optionalParts;
116 typedef struct _IncludeStmt
125 struct _IncludeStmt *next;
176 typedef struct _VarDef
184 typedef struct _VModDef
192 typedef struct _KeycodeDef
200 typedef struct _KeyAliasDef
208 typedef struct _KeyTypeDef
216 typedef struct _SymbolsDef
224 typedef struct _ModMapDef
232 typedef struct _GroupCompatDef
240 typedef struct _InterpDef
249 typedef struct _IndicatorNameDef
258 typedef struct _OutlineDef
266 typedef struct _ShapeDef
272 OutlineDef *outlines;
275 typedef struct _KeyDef
283 typedef struct _RowDef
290 typedef struct _SectionDef
299 typedef struct _OverlayKeyDef
306 typedef struct _OverlayDef
315 typedef struct _DoodadDef
324 /* IndicatorMapDef doesn't use the type field, but the rest of the fields
325 need to be at the same offsets as in DoodadDef. Use #define to avoid
326 any strict aliasing problems. */
327 #define IndicatorMapDef DoodadDef
329 typedef struct _XkbFile
342 CompileKeymap(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
345 CompileKeycodes(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
348 CompileGeometry(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
351 CompileKeyTypes(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
353 typedef struct _LEDInfo *LEDInfoPtr;
356 CompileCompatMap(XkbFile *file, XkbcDescPtr xkb, unsigned merge,
357 LEDInfoPtr *unboundLEDs);
360 CompileSymbols(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
362 #endif /* XKBCOMP_H */