fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
- documentation, and that the name of Silicon Graphics not be
- used in advertising or publicity pertaining to distribution
+ documentation, and that the name of Silicon Graphics not be
+ used in advertising or publicity pertaining to distribution
of the software without specific prior written permission.
- Silicon Graphics makes no representation about the suitability
+ Silicon Graphics makes no representation about the suitability
of this software for any purpose. It is provided "as is"
without any express or implied warranty.
-
- SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
- SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+
+ SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
- GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
- DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define DEBUG_VAR debugFlags
#endif
+#include <X11/X.h>
+#include <X11/Xdefs.h>
+
#include "utils.h"
#include <X11/extensions/XKM.h>
+#include <X11/extensions/XKBstrcommon.h>
+#include <X11/extensions/XKBrulescommon.h>
+#include "X11/extensions/XKBcommon.h"
+#include "XKBcommonint.h"
extern char *scanFile;
#define CreateKeyNames(x) ((x)->flags&AutoKeyNames)
extern unsigned warningLevel;
-extern unsigned optionalParts;
typedef struct _IncludeStmt
{
} binary;
struct
{
- Atom element;
- Atom field;
+ CARD32 element;
+ CARD32 field;
} field;
struct
{
- Atom element;
- Atom field;
+ CARD32 element;
+ CARD32 field;
struct _Expr *entry;
} array;
struct
{
- Atom name;
+ CARD32 name;
struct _Expr *args;
} action;
struct
{
int nSyms;
int szSyms;
- KeySym *syms;
+ char **syms;
} list;
struct
{
int y;
} coord;
struct _Expr *child;
- Atom str;
+ CARD32 str;
unsigned uval;
int ival;
char keyName[5];
{
ParseCommon common;
unsigned merge;
- Atom name;
+ CARD32 name;
ExprDef *value;
} VModDef;
{
ParseCommon common;
unsigned merge;
- Atom name;
+ CARD32 name;
VarDef *body;
} KeyTypeDef;
{
ParseCommon common;
unsigned merge;
- Atom modifier;
+ CARD32 modifier;
ExprDef *keys;
} ModMapDef;
{
ParseCommon common;
unsigned merge;
- KeySym sym;
+ char *sym;
ExprDef *match;
VarDef *def;
} InterpDef;
typedef struct _OutlineDef
{
ParseCommon common;
- Atom field;
+ CARD32 field;
int nPoints;
ExprDef *points;
} OutlineDef;
{
ParseCommon common;
unsigned merge;
- Atom name;
+ CARD32 name;
int nOutlines;
OutlineDef *outlines;
} ShapeDef;
{
ParseCommon common;
unsigned merge;
- Atom name;
+ CARD32 name;
int nRows;
RowDef *rows;
} SectionDef;
{
ParseCommon common;
unsigned merge;
- Atom name;
+ CARD32 name;
int nKeys;
OverlayKeyDef *keys;
} OverlayDef;
ParseCommon common;
unsigned merge;
unsigned type;
- Atom name;
+ CARD32 name;
VarDef *body;
} DoodadDef;
Bool compiled;
} XkbFile;
-extern Bool CompileKeymap(XkbFile * /* file */ ,
- XkbFileInfo * /* result */ ,
- unsigned /* merge */
- );
+extern Bool
+CompileKeymap(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
-extern Bool CompileKeycodes(XkbFile * /* file */ ,
- XkbFileInfo * /* result */ ,
- unsigned /* merge */
- );
+extern Bool
+CompileKeycodes(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
-extern Bool CompileGeometry(XkbFile * /* file */ ,
- XkbFileInfo * /* result */ ,
- unsigned /* merge */
- );
+extern Bool
+CompileGeometry(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
-extern Bool CompileKeyTypes(XkbFile * /* file */ ,
- XkbFileInfo * /* result */ ,
- unsigned /* merge */
- );
+extern Bool
+CompileKeyTypes(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
typedef struct _LEDInfo *LEDInfoPtr;
-extern Bool CompileCompatMap(XkbFile * /* file */ ,
- XkbFileInfo * /* result */ ,
- unsigned /* merge */ ,
- LEDInfoPtr * /* unboundLEDs */
- );
-
-extern Bool CompileSymbols(XkbFile * /* file */ ,
- XkbFileInfo * /* result */ ,
- unsigned /* merge */
- );
-
-#define WantLongListing (1<<0)
-#define WantPartialMaps (1<<1)
-#define WantHiddenMaps (1<<2)
-#define WantFullNames (1<<3)
-#define ListRecursive (1<<4)
-
-extern char *rootDir;
-extern unsigned verboseLevel;
-extern unsigned dirsToStrip;
-
-extern Bool AddListing(char * /* file */ ,
- char * /* map */
- );
-
-extern Bool AddMatchingFiles(char * /* head_in */
- );
-
-extern int AddMapOnly(char * /* map */
- );
+extern Bool
+CompileCompatMap(XkbFile *file, XkbcDescPtr xkb, unsigned merge,
+ LEDInfoPtr *unboundLEDs);
-extern int GenerateListing(char * /* filename */
- );
+extern Bool
+CompileSymbols(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
#endif /* XKBCOMP_H */