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 "xkbcommon/xkbcommon.h"
40 #include "XKBcommonint.h"
42 extern char *scanFile;
55 #define StmtKeycodeDef 2
56 #define StmtKeyAliasDef 3
59 #define StmtKeyTypeDef 6
60 #define StmtInterpDef 7
62 #define StmtSymbolsDef 9
63 #define StmtModMapDef 10
64 #define StmtGroupCompatDef 11
65 #define StmtIndicatorMapDef 12
66 #define StmtIndicatorNameDef 13
67 #define StmtOutlineDef 14
68 #define StmtShapeDef 15
71 #define StmtSectionDef 18
72 #define StmtOverlayKeyDef 19
73 #define StmtOverlayDef 20
74 #define StmtDoodadDef 21
76 #define FileSymInterp 100
78 typedef struct _ParseCommon
81 struct _ParseCommon *next;
86 #define ExprActionDecl 2
87 #define ExprFieldRef 3
88 #define ExprArrayRef 4
89 #define ExprKeysymList 5
90 #define ExprActionList 6
101 #define OpUnaryPlus 28
103 #define MergeDefault 0
104 #define MergeAugment 1
105 #define MergeOverride 2
106 #define MergeReplace 3
107 #define MergeAltForm 4
109 #define AutoKeyNames (1L << 0)
110 #define CreateKeyNames(x) ((x)->flags&AutoKeyNames)
112 extern unsigned warningLevel;
114 typedef struct _IncludeStmt
123 struct _IncludeStmt *next;
174 typedef struct _VarDef
182 typedef struct _VModDef
190 typedef struct _KeycodeDef
198 typedef struct _KeyAliasDef
206 typedef struct _KeyTypeDef
214 typedef struct _SymbolsDef
222 typedef struct _ModMapDef
230 typedef struct _GroupCompatDef
238 typedef struct _InterpDef
247 typedef struct _IndicatorNameDef
256 typedef struct _OutlineDef
264 typedef struct _ShapeDef
270 OutlineDef *outlines;
273 typedef struct _KeyDef
281 typedef struct _RowDef
288 typedef struct _SectionDef
297 typedef struct _OverlayKeyDef
304 typedef struct _OverlayDef
313 typedef struct _DoodadDef
322 /* IndicatorMapDef doesn't use the type field, but the rest of the fields
323 need to be at the same offsets as in DoodadDef. Use #define to avoid
324 any strict aliasing problems. */
325 #define IndicatorMapDef DoodadDef
327 typedef struct _XkbFile
340 CompileKeymap(XkbFile *file, struct xkb_desc * xkb, unsigned merge);
343 CompileKeycodes(XkbFile *file, struct xkb_desc * xkb, unsigned merge);
346 CompileGeometry(XkbFile *file, struct xkb_desc * xkb, unsigned merge);
349 CompileKeyTypes(XkbFile *file, struct xkb_desc * xkb, unsigned merge);
351 typedef struct _LEDInfo *LEDInfoPtr;
354 CompileCompatMap(XkbFile *file, struct xkb_desc * xkb, unsigned merge,
355 LEDInfoPtr *unboundLEDs);
358 CompileSymbols(XkbFile *file, struct xkb_desc * xkb, unsigned merge);
360 #endif /* XKBCOMP_H */