* src/lalr.c (maxrhs): Move to...

* src/gram.c, src/gram.h (ritem_longest_rhs): here.
* src/lalr.c (build_relations): Adjust.
This commit is contained in:
Akim Demaille
2001-12-05 09:18:12 +00:00
parent 4cecb5a248
commit 6a1e01f060
4 changed files with 46 additions and 33 deletions

View File

@@ -150,5 +150,9 @@ extern int error_token_number;
/* Dump RITEM for traces. */
void ritem_print (FILE *out);
void ritem_print PARAMS ((FILE *out));
/* Return the size of the longest rule RHS. */
size_t ritem_longest_rhs PARAMS ((void));
#endif /* !GRAM_H_ */