mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
* src/vcg.h (graph_s): color, textcolor, bordercolor are now
enum color_e. * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm to `normal'. * src/reader.c (parse_token_decl): Initialize token with tok_eof. * src/lex.h: Adjust prototype. (token_t): Add `tok_undef'. * src/lex.c (struct percent_table_struct): Retval is now a token_t. (parse_percent_token): Now returns token_t. Add default statement in switch. (lex): Separate `c' as an input variable, from the token_t result part. (unlexed): Is a token_t.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
/* Token-type codes. */
|
||||
typedef enum token_e
|
||||
{
|
||||
tok_undef, /* Not defined. Used to initial token_t vars. */
|
||||
tok_eof,
|
||||
tok_identifier,
|
||||
tok_comma,
|
||||
@@ -71,6 +72,6 @@ void read_type_name PARAMS ((FILE *fin));
|
||||
|
||||
token_t lex PARAMS ((void));
|
||||
|
||||
int parse_percent_token PARAMS ((void));
|
||||
token_t parse_percent_token PARAMS ((void));
|
||||
|
||||
#endif /* !LEX_H_ */
|
||||
|
||||
Reference in New Issue
Block a user