* 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:
Akim Demaille
2001-09-10 08:33:25 +00:00
parent 31478b7ab7
commit 041cad1677
6 changed files with 45 additions and 23 deletions

View File

@@ -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_ */