8 |
* src/conflicts, src/lalr.c, src/output.c, src/print.c, |
* src/conflicts, src/lalr.c, src/output.c, src/print.c, |
9 |
* src/print_graph: Adjust. |
* src/print_graph: Adjust. |
10 |
|
|
|
|
|
11 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
12 |
|
|
13 |
* src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New. |
* src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New. |
15 |
Restore a few missing `if (!SHIFT_IS_DISABLED)' which were |
Restore a few missing `if (!SHIFT_IS_DISABLED)' which were |
16 |
incorrectly ``simplified''. |
incorrectly ``simplified''. |
17 |
|
|
|
|
|
18 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
19 |
|
|
20 |
* src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate |
* src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate |
21 |
using the good o' techniques: arrays not pointers, variable |
using the good o' techniques: arrays not pointers, variable |
22 |
locality, BITISSET, RESETBIT etc. |
locality, BITISSET, RESETBIT etc. |
23 |
|
|
|
|
|
24 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
25 |
|
|
26 |
* src/state.h (SHIFT_SYMBOL): New. |
* src/state.h (SHIFT_SYMBOL): New. |
27 |
* src/conflicts.c: Use it to deobfuscate. |
* src/conflicts.c: Use it to deobfuscate. |
28 |
|
|
|
|
|
29 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
30 |
|
|
31 |
* src/conflicts.c (count_sr_conflicts, count_rr_conflicts) |
* src/conflicts.c (count_sr_conflicts, count_rr_conflicts) |
32 |
(print_reductions): De-obfuscate using the good o' techniques: |
(print_reductions): De-obfuscate using the good o' techniques: |
33 |
arrays not pointers, variable locality, BITISSET. |
arrays not pointers, variable locality, BITISSET. |
34 |
|
|
|
|
|
35 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
36 |
|
|
37 |
* src/conflicts.c (print_reductions): Arrays, not pointers. |
* src/conflicts.c (print_reductions): Arrays, not pointers. |
38 |
Use BITISSET. |
Use BITISSET. |
39 |
|
|
|
|
|
40 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
41 |
|
|
42 |
* src/conflicts.c (print_reductions): Pessimize, but clarify. |
* src/conflicts.c (print_reductions): Pessimize, but clarify. |
43 |
|
|
|
|
|
44 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
45 |
|
|
46 |
* src/conflicts.c (print_reductions): Improve variable locality. |
* src/conflicts.c (print_reductions): Improve variable locality. |
47 |
|
|
|
|
|
48 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
49 |
|
|
50 |
* src/conflicts.c (print_reductions): Pessimize, but clarify. |
* src/conflicts.c (print_reductions): Pessimize, but clarify. |
51 |
|
|
|
|
|
52 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
53 |
|
|
54 |
* src/conflicts.c (print_reductions): Improve variable locality. |
* src/conflicts.c (print_reductions): Improve variable locality. |
55 |
|
|
|
|
|
56 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
57 |
|
|
58 |
* src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New. |
* src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New. |
59 |
* src/lalr.c: Use them. |
* src/lalr.c: Use them. |
60 |
|
|
|
|
|
61 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
62 |
|
|
63 |
* src/LR0.c (augment_automaton): Formatting changes. |
* src/LR0.c (augment_automaton): Formatting changes. |
64 |
Better variable locality. |
Better variable locality. |
65 |
|
|
|
|
|
66 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
67 |
|
|
68 |
* src/lalr.c (matrix_print): New. |
* src/lalr.c (matrix_print): New. |
107 |
the handling of squeue. |
the handling of squeue. |
108 |
`symbol >= 0' is wrong now, use `rule_table[ruleno].useful'. |
`symbol >= 0' is wrong now, use `rule_table[ruleno].useful'. |
109 |
|
|
|
|
|
110 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
111 |
|
|
112 |
Because useless nonterminals are now kept alive (instead of being |
Because useless nonterminals are now kept alive (instead of being |
129 |
(free_storage): Use `free', not `XFREE', for pointers that cannot |
(free_storage): Use `free', not `XFREE', for pointers that cannot |
130 |
be null. |
be null. |
131 |
|
|
|
|
|
132 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
133 |
|
|
134 |
* src/nullable.c (set_nullable): Deobfuscate the handling of |
* src/nullable.c (set_nullable): Deobfuscate the handling of |
135 |
ritem. |
ritem. |
136 |
`symbol >= 0' is wrong now, use `rule_table[ruleno].useful'. |
`symbol >= 0' is wrong now, use `rule_table[ruleno].useful'. |
137 |
|
|
|
|
|
138 |
2001-12-05 Akim Demaille <akim@epita.fr> |
2001-12-05 Akim Demaille <akim@epita.fr> |
139 |
|
|
140 |
* src/gram.c, src/gram.h (ritem_print): New. |
* src/gram.c, src/gram.h (ritem_print): New. |
153 |
and may generate better code on some machines. |
and may generate better code on some machines. |
154 |
(yystpcpy): Use prototype if __STDC__ is defined, not just |
(yystpcpy): Use prototype if __STDC__ is defined, not just |
155 |
if __cplusplus is defined. |
if __cplusplus is defined. |
156 |
|
|
157 |
2001-11-30 Akim Demaille <akim@epita.fr> |
2001-11-30 Akim Demaille <akim@epita.fr> |
158 |
|
|
159 |
* configure.in (WARNING_CFLAGS): Add -Werror when possible. |
* configure.in (WARNING_CFLAGS): Add -Werror when possible. |