projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d200e45
)
* src/reader.c (symbol_list_new): Be sure to initialize all the
author
Akim Demaille
<akim@epita.fr>
Thu, 27 Dec 2001 18:05:42 +0000
(18:05 +0000)
committer
Akim Demaille
<akim@epita.fr>
Thu, 27 Dec 2001 18:05:42 +0000
(18:05 +0000)
fields.
ChangeLog
patch
|
blob
|
history
src/reader.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
e8f48a0
..
62168da
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,5
+1,10
@@
2001-12-27 Akim Demaille <akim@epita.fr>
+ * src/reader.c (symbol_list_new): Be sure to initialize all the
+ fields.
+
+2001-12-27 Akim Demaille <akim@epita.fr>
+
All the hacks using a final pseudo state are now useless.
* src/LR0.c (set_state_table): state_table holds exactly nstates.
diff --git
a/src/reader.c
b/src/reader.c
index
9bec971
..
d7d6e86
100644
(file)
--- a/
src/reader.c
+++ b/
src/reader.c
@@
-44,8
+44,7
@@
typedef struct symbol_list
const char *action;
int action_line;
bucket *ruleprec;
-}
-symbol_list;
+} symbol_list;
int lineno;
char **tags;
@@
-75,6
+74,8
@@
symbol_list_new (bucket *sym)
res->next = NULL;
res->sym = sym;
res->line = lineno;
+ res->action = NULL;
+ res->action_line = 0;
res->ruleprec = NULL;
return res;
}