mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
* src/print_graph.c (print_actions): Remove `rule', unused.
* src/LR0.c (kernel_size): Contain `int' instead of `size_t' to pacify GCC's signed < unsigned warnings. * src/closure.c (itemsetsize): Likewise. * src/reader.c (symbol_list_new): Static.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2001-11-23 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/print_graph.c (print_actions): Remove `rule', unused.
|
||||||
|
* src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
|
||||||
|
pacify GCC's signed < unsigned warnings.
|
||||||
|
* src/closure.c (itemsetsize): Likewise.
|
||||||
|
* src/reader.c (symbol_list_new): Static.
|
||||||
|
|
||||||
|
|
||||||
2001-11-23 Akim Demaille <akim@epita.fr>
|
2001-11-23 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Attaching lineno to buckets is stupid, since only one copy of each
|
Attaching lineno to buckets is stupid, since only one copy of each
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ static short *redset = NULL;
|
|||||||
static short *shiftset = NULL;
|
static short *shiftset = NULL;
|
||||||
|
|
||||||
static short **kernel_base = NULL;
|
static short **kernel_base = NULL;
|
||||||
static size_t *kernel_size = NULL;
|
static int *kernel_size = NULL;
|
||||||
static short *kernel_items = NULL;
|
static short *kernel_items = NULL;
|
||||||
|
|
||||||
/* hash table for states, to recognize equivalent ones. */
|
/* hash table for states, to recognize equivalent ones. */
|
||||||
@@ -213,7 +213,6 @@ static int
|
|||||||
get_state (int symbol)
|
get_state (int symbol)
|
||||||
{
|
{
|
||||||
int key;
|
int key;
|
||||||
short *isp2;
|
|
||||||
int i;
|
int i;
|
||||||
core *sp;
|
core *sp;
|
||||||
|
|
||||||
@@ -236,7 +235,6 @@ get_state (int symbol)
|
|||||||
{
|
{
|
||||||
if (sp->nitems == kernel_size[symbol])
|
if (sp->nitems == kernel_size[symbol])
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
found = 1;
|
found = 1;
|
||||||
for (i = 0; i < kernel_size[symbol]; ++i)
|
for (i = 0; i < kernel_size[symbol]; ++i)
|
||||||
if (kernel_base[symbol][i] != sp->items[i])
|
if (kernel_base[symbol][i] != sp->items[i])
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
/* ITEMSETSIZE is the size of the array ITEMSET. */
|
/* ITEMSETSIZE is the size of the array ITEMSET. */
|
||||||
short *itemset;
|
short *itemset;
|
||||||
size_t itemsetsize;
|
int itemsetsize;
|
||||||
|
|
||||||
static unsigned *ruleset;
|
static unsigned *ruleset;
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,6 @@ void closure PARAMS ((short *items, int n));
|
|||||||
void free_closure PARAMS ((void));
|
void free_closure PARAMS ((void));
|
||||||
|
|
||||||
extern short *itemset;
|
extern short *itemset;
|
||||||
extern size_t itemsetsize;
|
extern int itemsetsize;
|
||||||
|
|
||||||
#endif /* !CLOSURE_H_ */
|
#endif /* !CLOSURE_H_ */
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ print_actions (int state, const char *node_name)
|
|||||||
shifts *shiftp;
|
shifts *shiftp;
|
||||||
errs *errp;
|
errs *errp;
|
||||||
reductions *redp;
|
reductions *redp;
|
||||||
int rule;
|
|
||||||
static char buff[10];
|
static char buff[10];
|
||||||
edge_t edge;
|
edge_t edge;
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ static bucket *errtoken;
|
|||||||
static bucket *undeftoken;
|
static bucket *undeftoken;
|
||||||
|
|
||||||
|
|
||||||
symbol_list *
|
static symbol_list *
|
||||||
symbol_list_new (bucket *sym)
|
symbol_list_new (bucket *sym)
|
||||||
{
|
{
|
||||||
symbol_list *res = XMALLOC (symbol_list, 1);
|
symbol_list *res = XMALLOC (symbol_list, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user