projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c32c193
)
define yystype so it compiles without warning messages
author
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Mon, 25 Jun 1990 08:09:36 +0000
(
00:09
-0800)
committer
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Mon, 25 Jun 1990 08:09:36 +0000
(
00:09
-0800)
SCCS-vsn: bin/expr/expr.y 4.8
usr/src/bin/expr/expr.y
patch
|
blob
|
blame
|
history
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)
{