mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
(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.
This commit is contained in:
13
src/reader.h
13
src/reader.h
@@ -32,11 +32,6 @@ typedef struct merger_list
|
|||||||
}
|
}
|
||||||
merger_list;
|
merger_list;
|
||||||
|
|
||||||
typedef struct gram_control_s
|
|
||||||
{
|
|
||||||
int errcode;
|
|
||||||
} gram_control_t;
|
|
||||||
|
|
||||||
/* From the scanner. */
|
/* From the scanner. */
|
||||||
extern FILE *gram_in;
|
extern FILE *gram_in;
|
||||||
extern int gram__flex_debug;
|
extern int gram__flex_debug;
|
||||||
@@ -44,16 +39,14 @@ void scanner_initialize (void);
|
|||||||
void scanner_free (void);
|
void scanner_free (void);
|
||||||
void scanner_last_string_free (void);
|
void scanner_last_string_free (void);
|
||||||
|
|
||||||
# define YY_DECL \
|
# define YY_DECL int gram_lex (yystype *val, location_t *loc)
|
||||||
int gram_lex (yystype *yylval, location_t *yylloc, \
|
|
||||||
gram_control_t *yycontrol)
|
|
||||||
YY_DECL;
|
YY_DECL;
|
||||||
|
|
||||||
|
|
||||||
/* From the parser. */
|
/* From the parser. */
|
||||||
extern int gram_debug;
|
extern int gram_debug;
|
||||||
void gram_error (location_t *loc, const char *msg);
|
void gram_error (location_t const *loc, char const *msg);
|
||||||
int gram_parse (void *control);
|
int gram_parse (void);
|
||||||
|
|
||||||
/* The sort of braced code we are in. */
|
/* The sort of braced code we are in. */
|
||||||
typedef enum braced_code_e
|
typedef enum braced_code_e
|
||||||
|
|||||||
Reference in New Issue
Block a user