aboutsummaryrefslogtreecommitdiff
path: root/xkbcomp/parseutils.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-07-25 18:22:39 +0000
committermarha <marha@users.sourceforge.net>2009-07-25 18:22:39 +0000
commitdc3c299dd0995549e2a6973ca0f25b254afd38a5 (patch)
tree4e041ba8c2c1348b14e7a28c803d860373747a04 /xkbcomp/parseutils.h
parentcd50a4bbac9375d3cd460bbdf88395f802609daf (diff)
downloadvcxsrv-dc3c299dd0995549e2a6973ca0f25b254afd38a5.tar.gz
vcxsrv-dc3c299dd0995549e2a6973ca0f25b254afd38a5.tar.bz2
vcxsrv-dc3c299dd0995549e2a6973ca0f25b254afd38a5.zip
Added xkbcomp-1.1.0.tar.gz
Diffstat (limited to 'xkbcomp/parseutils.h')
-rw-r--r--xkbcomp/parseutils.h330
1 files changed, 145 insertions, 185 deletions
diff --git a/xkbcomp/parseutils.h b/xkbcomp/parseutils.h
index a431fac74..73a0ec8ca 100644
--- a/xkbcomp/parseutils.h
+++ b/xkbcomp/parseutils.h
@@ -1,4 +1,3 @@
-/* $Xorg: parseutils.h,v 1.3 2000/08/17 19:54:33 cpqbld Exp $ */
/************************************************************
Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
@@ -24,7 +23,6 @@
THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
-/* $XFree86$ */
#ifndef XKBPARSE_H
#define XKBPARSE_H 1
@@ -35,11 +33,11 @@
#include "xkbcomp.h"
-extern char *scanStr;
-extern int scanInt;
-extern int lineNum;
+extern char *scanStr;
+extern int scanInt;
+extern int lineNum;
-extern XkbFile *rtrnValue;
+extern XkbFile *rtrnValue;
#ifdef DEBUG
#define d(str) fprintf(stderr,"%s\n",str);
@@ -52,196 +50,158 @@ extern XkbFile *rtrnValue;
#endif
-extern ParseCommon *AppendStmt(
- ParseCommon * /* to */,
- ParseCommon * /* append */
-);
-
-extern ExprDef *ExprCreate(
- unsigned /* op */,
- unsigned /* type */
-);
-
-extern ExprDef *ExprCreateUnary(
- unsigned /* op */,
- unsigned /* type */,
- ExprDef * /* child */
-);
-
-extern ExprDef *ExprCreateBinary(
- unsigned /* op */,
- ExprDef * /* left */,
- ExprDef * /* right */
-);
-
-extern KeycodeDef *KeycodeCreate(
- char * /* name */,
- ExprDef * /* value */
-);
-
-extern KeyAliasDef *KeyAliasCreate(
- char * /* alias */,
- char * /* real */
-);
-
-extern VModDef *VModCreate(
- Atom /* name */,
- ExprDef * /* value */
-);
-
-extern VarDef *VarCreate(
- ExprDef * /* name */,
- ExprDef * /* value */
-);
-
-extern VarDef *BoolVarCreate(
- Atom /* nameToken */,
- unsigned /* set */
-);
-
-extern InterpDef *InterpCreate(
- KeySym /* sym */,
- ExprDef * /* match */
-);
-
-extern KeyTypeDef *KeyTypeCreate(
- Atom /* name */,
- VarDef * /* body */
-);
-
-extern SymbolsDef *SymbolsCreate(
- char * /* keyName */,
- ExprDef * /* symbols */
-);
-
-extern GroupCompatDef *GroupCompatCreate(
- int /* group */,
- ExprDef * /* def */
-);
-
-extern ModMapDef *ModMapCreate(
- Atom /* modifier */,
- ExprDef * /* keys */
-);
-
-extern IndicatorMapDef *IndicatorMapCreate(
- Atom /* name */,
- VarDef * /* body */
-);
-
-extern IndicatorNameDef *IndicatorNameCreate(
- int /* ndx */,
- ExprDef * /* name */,
- Bool /* virtual */
-);
-
-extern ExprDef *ActionCreate(
- Atom /* name */,
- ExprDef * /* args */
-);
-
-extern ExprDef *CreateKeysymList(
- KeySym /* sym */
-);
-
-extern ShapeDef *ShapeDeclCreate(
- Atom /* name */,
- OutlineDef * /* outlines */
-);
-
-extern OutlineDef *OutlineCreate(
- Atom /* field */,
- ExprDef * /* points */
-);
-
-extern KeyDef *KeyDeclCreate(
- char * /* name */,
- ExprDef * /* expr */
-);
-
-extern KeyDef *KeyDeclMerge(
- KeyDef * /* into */,
- KeyDef * /* from */
-);
-
-extern RowDef *RowDeclCreate(
- KeyDef * /* keys */
-);
-
-extern SectionDef *SectionDeclCreate(
- Atom /* name */,
- RowDef * /* rows */
-);
-
-extern OverlayKeyDef *OverlayKeyCreate(
- char * /* under */,
- char * /* over */
-);
-
-extern OverlayDef *OverlayDeclCreate(
- Atom /* name */,
- OverlayKeyDef * /* rows */
-);
-
-extern DoodadDef *DoodadCreate(
- unsigned /* type */,
- Atom /* name */,
- VarDef * /* body */
-);
-
-extern ExprDef *AppendKeysymList(
- ExprDef * /* list */,
- KeySym /* sym */
-);
-
-extern int LookupKeysym(
- char * /* str */,
- KeySym * /* sym_rtrn */
-);
-
-extern IncludeStmt *IncludeCreate(
- char * /* str */,
- unsigned /* merge */
-);
-
-extern unsigned StmtSetMerge(
- ParseCommon * /* stmt */,
- unsigned /* merge */
-);
+extern ParseCommon *AppendStmt(ParseCommon * /* to */ ,
+ ParseCommon * /* append */
+ );
+
+extern ExprDef *ExprCreate(unsigned /* op */ ,
+ unsigned /* type */
+ );
+
+extern ExprDef *ExprCreateUnary(unsigned /* op */ ,
+ unsigned /* type */ ,
+ ExprDef * /* child */
+ );
+
+extern ExprDef *ExprCreateBinary(unsigned /* op */ ,
+ ExprDef * /* left */ ,
+ ExprDef * /* right */
+ );
+
+extern KeycodeDef *KeycodeCreate(char * /* name */ ,
+ ExprDef * /* value */
+ );
+
+extern KeyAliasDef *KeyAliasCreate(char * /* alias */ ,
+ char * /* real */
+ );
+
+extern VModDef *VModCreate(Atom /* name */ ,
+ ExprDef * /* value */
+ );
+
+extern VarDef *VarCreate(ExprDef * /* name */ ,
+ ExprDef * /* value */
+ );
+
+extern VarDef *BoolVarCreate(Atom /* nameToken */ ,
+ unsigned /* set */
+ );
+
+extern InterpDef *InterpCreate(KeySym /* sym */ ,
+ ExprDef * /* match */
+ );
+
+extern KeyTypeDef *KeyTypeCreate(Atom /* name */ ,
+ VarDef * /* body */
+ );
+
+extern SymbolsDef *SymbolsCreate(char * /* keyName */ ,
+ ExprDef * /* symbols */
+ );
+
+extern GroupCompatDef *GroupCompatCreate(int /* group */ ,
+ ExprDef * /* def */
+ );
+
+extern ModMapDef *ModMapCreate(Atom /* modifier */ ,
+ ExprDef * /* keys */
+ );
+
+extern IndicatorMapDef *IndicatorMapCreate(Atom /* name */ ,
+ VarDef * /* body */
+ );
+
+extern IndicatorNameDef *IndicatorNameCreate(int /* ndx */ ,
+ ExprDef * /* name */ ,
+ Bool /* virtual */
+ );
+
+extern ExprDef *ActionCreate(Atom /* name */ ,
+ ExprDef * /* args */
+ );
+
+extern ExprDef *CreateKeysymList(KeySym /* sym */
+ );
+
+extern ShapeDef *ShapeDeclCreate(Atom /* name */ ,
+ OutlineDef * /* outlines */
+ );
+
+extern OutlineDef *OutlineCreate(Atom /* field */ ,
+ ExprDef * /* points */
+ );
+
+extern KeyDef *KeyDeclCreate(char * /* name */ ,
+ ExprDef * /* expr */
+ );
+
+extern KeyDef *KeyDeclMerge(KeyDef * /* into */ ,
+ KeyDef * /* from */
+ );
+
+extern RowDef *RowDeclCreate(KeyDef * /* keys */
+ );
+
+extern SectionDef *SectionDeclCreate(Atom /* name */ ,
+ RowDef * /* rows */
+ );
+
+extern OverlayKeyDef *OverlayKeyCreate(char * /* under */ ,
+ char * /* over */
+ );
+
+extern OverlayDef *OverlayDeclCreate(Atom /* name */ ,
+ OverlayKeyDef * /* rows */
+ );
+
+extern DoodadDef *DoodadCreate(unsigned /* type */ ,
+ Atom /* name */ ,
+ VarDef * /* body */
+ );
+
+extern ExprDef *AppendKeysymList(ExprDef * /* list */ ,
+ KeySym /* sym */
+ );
+
+extern int LookupKeysym(char * /* str */ ,
+ KeySym * /* sym_rtrn */
+ );
+
+extern IncludeStmt *IncludeCreate(char * /* str */ ,
+ unsigned /* merge */
+ );
+
+extern unsigned StmtSetMerge(ParseCommon * /* stmt */ ,
+ unsigned /* merge */
+ );
#ifdef DEBUG
-extern void PrintStmtAddrs(
- ParseCommon * /* stmt */
-);
+extern void PrintStmtAddrs(ParseCommon * /* stmt */
+ );
#endif
-extern int XKBParseFile(
- FILE * /* file */,
- XkbFile ** /* pRtrn */
-);
+extern int XKBParseFile(FILE * /* file */ ,
+ XkbFile ** /* pRtrn */
+ );
-extern XkbFile *CreateXKBFile(
- int /* type */,
- char * /* name */,
- ParseCommon * /* defs */,
- unsigned /* flags */
-);
+extern XkbFile *CreateXKBFile(int /* type */ ,
+ char * /* name */ ,
+ ParseCommon * /* defs */ ,
+ unsigned /* flags */
+ );
-extern void yyerror(
- const char * /* s */
-);
+extern void yyerror(const char * /* s */
+ );
-extern int yywrap(
- void
-);
+extern int yywrap(void);
extern int yylex(void);
extern int yyparse(void);
-extern int setScanState(
- char * /* file */,
- int /* line */
-);
+extern int setScanState(char * /* file */ ,
+ int /* line */
+ );
extern FILE *yyin;