define yystype so it compiles without warning messages
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 25 Jun 1990 08:09:36 +0000 (00:09 -0800)
committerKeith 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

index 53c8db3..e230125 100644 (file)
@@ -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)
 
 {