mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 22:33:03 +00:00
* src/derives.h, src/derives.c (derives): A `rule_t***' instead of
`rule_number_t**'. (set_derives, free_derives): Rename as... (derives_compute, derives_free): this. Adjust all dependencies. * src/nullable.c (set_nullable, free_nullable): Rename as... (nullable_compute, nullable_free): these. (rule_list_t): Store rule_t *, not rule_number_t. * src/state.c (state_rule_lookaheads_print): Directly compare rule pointers, instead of their numbers. * src/main.c (main): Call nullable_free, and derives_free earlier, as they were lo longer used.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Part of the bison parser generator,
|
||||
Copyright 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
|
||||
/* A vector saying which nonterminals can expand into the null string.
|
||||
NULLABLE[I - NTOKENS] is nonzero if symbol I can do so. */
|
||||
extern char *nullable;
|
||||
extern bool *nullable;
|
||||
|
||||
/* Set up NULLABLE. */
|
||||
extern void set_nullable PARAMS((void));
|
||||
extern void nullable_compute PARAMS((void));
|
||||
|
||||
/* Free NULLABLE. */
|
||||
extern void free_nullable PARAMS((void));
|
||||
extern void nullable_free PARAMS((void));
|
||||
#endif /* !NULLABLE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user