projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define yystype so it compiles without warning messages
[unix-history]
/
usr
/
src
/
bin
/
expr
/
expr.y
diff --git
a/usr/src/bin/expr/expr.y
b/usr/src/bin/expr/expr.y
index
53c8db3
..
e230125
100644
(file)
--- a/
usr/src/bin/expr/expr.y
+++ b/
usr/src/bin/expr/expr.y
@@
-1,4
+1,8
@@
/* Yacc productions for "expr" command: */
/* Yacc productions for "expr" command: */
+%{
+typedef char *yystype;
+#define YYSTYPE yystype
+%}
%token OR AND ADD SUBT MULT DIV REM EQ GT GEQ LT LEQ NEQ
%token A_STRING SUBSTR LENGTH INDEX NOARG MATCH
%token OR AND ADD SUBT MULT DIV REM EQ GT GEQ LT LEQ NEQ
%token A_STRING SUBSTR LENGTH INDEX NOARG MATCH
@@
-662,7
+666,7
@@
register count;
return(1);
}
return(1);
}
-static char *sccsid = "@(#)expr.y 4.
7
(Berkeley) %G%";
+static char *sccsid = "@(#)expr.y 4.
8
(Berkeley) %G%";
yyerror(s)
{
yyerror(s)
{