summaryrefslogtreecommitdiff
path: root/xkbparse.y
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
commit287ac4c6af61d8f9f95cd3b3219c979e1329a2fe (patch)
tree8e4ea351343b9404a9724600e98d417794c14c4b /xkbparse.y
parent262961d88faf67f69f4630acb8234a4f2c5a6e80 (diff)
downloadxorg-app-xkbcomp-287ac4c6af61d8f9f95cd3b3219c979e1329a2fe.tar.gz
Diffstat (limited to 'xkbparse.y')
-rw-r--r--xkbparse.y24
1 files changed, 6 insertions, 18 deletions
diff --git a/xkbparse.y b/xkbparse.y
index 78589f4..c8036e4 100644
--- a/xkbparse.y
+++ b/xkbparse.y
@@ -24,6 +24,8 @@
THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
+/* $XFree86: xc/programs/xkbcomp/xkbparse.y,v 3.12 2002/10/16 21:33:04 tsi Exp $ */
+
%token
END_OF_FILE 0
ERROR_TOK 255
@@ -96,14 +98,9 @@
#include "parseutils.h"
#include <X11/keysym.h>
#include <X11/extensions/XKBgeom.h>
+#include <stdlib.h>
+
-_XFUNCPROTOBEGIN
-extern int yylex(
-#if NeedFunctionPrototypes
- void
-#endif
-);
-_XFUNCPROTOEND
%}
%right EQUALS
%left PLUS MINUS
@@ -405,6 +402,7 @@ SymbolsBody : SymbolsBody COMMA SymbolsVarDecl
{ $$= (VarDef *)AppendStmt(&$1->common,&$3->common); }
| SymbolsVarDecl
{ $$= $1; }
+ | { $$= NULL; }
;
SymbolsVarDecl : Lhs EQUALS Expr
@@ -445,7 +443,6 @@ IndicatorNameDecl: INDICATOR Integer EQUALS Expr SEMI
ShapeDecl : SHAPE String OBRACE OutlineList CBRACE SEMI
{ $$= ShapeDeclCreate($2,(OutlineDef *)&$4->common); }
- ;
| SHAPE String OBRACE CoordList CBRACE SEMI
{
OutlineDef *outlines;
@@ -508,7 +505,7 @@ OverlayKeyList : OverlayKeyList COMMA OverlayKey
{
$$= (OverlayKeyDef *)
AppendStmt(&$1->common,&$3->common);
- };
+ }
| OverlayKey
{ $$= $1; }
;
@@ -777,12 +774,7 @@ MapName : STRING { $$= scanStr; scanStr= NULL; }
;
%%
void
-#if NeedFunctionPrototypes
yyerror(char *s)
-#else
-yyerror(s)
-char *s;
-#endif
{
if (warningLevel>0) {
(void)fprintf(stderr,"%s: line %d of %s\n",s,lineNum,
@@ -795,11 +787,7 @@ char *s;
int
-#if NeedFunctionPrototypes
yywrap(void)
-#else
-yywrap()
-#endif
{
return 1;
}