diff options
Diffstat (limited to 'xc/config/pswrap/pswparser.y')
-rw-r--r-- | xc/config/pswrap/pswparser.y | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/xc/config/pswrap/pswparser.y b/xc/config/pswrap/pswparser.y index adfe0362f..d3a7135c0 100644 --- a/xc/config/pswrap/pswparser.y +++ b/xc/config/pswrap/pswparser.y @@ -35,6 +35,13 @@ * * Author: Adobe Systems Incorporated */ +/* $XFree86: xc/config/pswrap/pswparser.y,v 1.4 2000/05/18 23:46:08 dawes Exp $ */ + +/* + * Not all yaccs understand this. + * +%expect 1 + */ %{ @@ -186,7 +193,7 @@ Item: | CNAME '[' Subscript ']' { $$ = PSWSubscriptItem($1, $3); } | CNAME '[' Subscript ']' ':' CNAME - { $$ = PSWScaleItem($1, $3, $6, NULL); } + { $$ = PSWScaleItem($1, $3, $6, 0); } | CNAME '[' Subscript ']' ':' CINTEGER { $$ = PSWScaleItem($1, $3, NULL, $6); } | CNAME @@ -249,7 +256,7 @@ Type: Token: PSINTEGER - { $$ = PSWToken(T_INT, $1); } + { $$ = PSWToken(T_INT, (char *)$1); } | PSREAL { $$ = PSWToken(T_FLOAT, $1); } | PSBOOLEAN @@ -265,7 +272,7 @@ Token: | PSSUBNAME PSINDEX { $$ = PSWToken2(T_SUBSCRIPTED, $1, $2); } | '[' Body ']' - { $$ = PSWToken(T_ARRAY, $2); } + { $$ = PSWToken(T_ARRAY, (char *)$2); } | '{' Body '}' - { $$ = PSWToken(T_PROC, $2); } + { $$ = PSWToken(T_PROC, (char *)$2); } ; |