From: Paul Eggert Date: Wed, 27 Nov 2002 18:33:42 +0000 (+0000) Subject: (struct gram_control_s, gram_control_t): Remove. X-Git-Tag: BISON-1_875~197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6d03984aed6f26147de8fdb9e63fe35b43e15a7;p=platform%2Fupstream%2Fbison.git (struct gram_control_s, gram_control_t): Remove. (YY_DECL): Don't use "yy" at start of local variables. All uses changed, e.g., yylloc -> loc. --- diff --git a/src/reader.h b/src/reader.h index a32e84f..02e0473 100644 --- a/src/reader.h +++ b/src/reader.h @@ -32,11 +32,6 @@ typedef struct merger_list } merger_list; -typedef struct gram_control_s -{ - int errcode; -} gram_control_t; - /* From the scanner. */ extern FILE *gram_in; extern int gram__flex_debug; @@ -44,16 +39,14 @@ void scanner_initialize (void); void scanner_free (void); void scanner_last_string_free (void); -# define YY_DECL \ - int gram_lex (yystype *yylval, location_t *yylloc, \ - gram_control_t *yycontrol) +# define YY_DECL int gram_lex (yystype *val, location_t *loc) YY_DECL; /* From the parser. */ extern int gram_debug; -void gram_error (location_t *loc, const char *msg); -int gram_parse (void *control); +void gram_error (location_t const *loc, char const *msg); +int gram_parse (void); /* The sort of braced code we are in. */ typedef enum braced_code_e