Alexandre Julliard : widl: Remove non-bison compatibility code.
Alexandre Julliard
julliard at winehq.org
Thu Aug 1 14:25:45 CDT 2013
Module: wine
Branch: master
Commit: bda5a2ffb833b2824325bd9361b30dbaf5f78068
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bda5a2ffb833b2824325bd9361b30dbaf5f78068
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Aug 1 12:04:24 2013 +0200
widl: Remove non-bison compatibility code.
---
tools/widl/parser.y | 29 ++---------------------------
1 files changed, 2 insertions(+), 27 deletions(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index b7fa2f6..579cbc6 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -38,33 +38,6 @@
#include "expr.h"
#include "typetree.h"
-#if defined(YYBYACC)
- /* Berkeley yacc (byacc) doesn't seem to know about these */
- /* Some *BSD supplied versions do define these though */
-# ifndef YYEMPTY
-# define YYEMPTY (-1) /* Empty lookahead value of yychar */
-# endif
-# ifndef YYLEX
-# define YYLEX yylex()
-# endif
-
-#elif defined(YYBISON)
- /* Bison was used for original development */
- /* #define YYEMPTY -2 */
- /* #define YYLEX yylex() */
-
-#else
- /* No yacc we know yet */
-# if !defined(YYEMPTY) || !defined(YYLEX)
-# error Yacc version/type unknown. This version needs to be verified for settings of YYEMPTY and YYLEX.
-# elif defined(__GNUC__) /* gcc defines the #warning directive */
-# warning Yacc version/type unknown. It defines YYEMPTY and YYLEX, but is not tested
- /* #else we just take a chance that it works... */
-# endif
-#endif
-
-#define YYERROR_VERBOSE
-
static unsigned char pointer_default = RPC_FC_UP;
typedef struct list typelist_t;
@@ -323,6 +296,8 @@ static statement_list_t *append_statement(statement_list_t *list, statement_t *s
%right '!' '~' CAST PPTR POS NEG ADDRESSOF tSIZEOF
%left '.' MEMBERPTR '[' ']'
+%error-verbose
+
%%
input: gbl_statements { fix_incomplete();
More information about the wine-cvs
mailing list