handle enums w/o tags as structure/union members
[unix-history] / usr / src / old / as.vax / asexpr.h
index 05f8c38..ea434d9 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *     Copyright (c) 1982 Regents of the University of California
 /*
  *     Copyright (c) 1982 Regents of the University of California
- *     @(#)asexpr.h 4.3 %G%
+ *     @(#)asexpr.h 4.4 %G%
  */
 /*
  *     Definitions to parse tokens
  */
 /*
  *     Definitions to parse tokens
@@ -14,7 +14,7 @@
 #define advance        shift
 
 #define shiftover(token)       if (val != token) { \
 #define advance        shift
 
 #define shiftover(token)       if (val != token) { \
-                                       yyerror("token expected"); \
+                                       shiftoerror(token); \
                                        goto errorfix; \
                                } \
                                shift
                                        goto errorfix; \
                                } \
                                shift