style: comment and formatting changes, and fixes

* examples/c/lexcalc/parse.y: Fix option handling.
* src/gram.h: Clarify comments.
* src/ielr.c: Fix indentation.
* src/print.c, src/state.h: More comments.
This commit is contained in:
Akim Demaille
2020-10-04 14:28:39 +02:00
parent 0328cbad64
commit 4b0cd01fb7
5 changed files with 20 additions and 15 deletions

View File

@@ -701,8 +701,8 @@ ielr_compute_state (bitsetv follow_kernel_items, bitsetv always_follows,
AnnotationIndex ai;
AnnotationList *a;
for (ai = 0, a = annotation_lists[lr0_isocore->state->number];
a;
++ai, a = a->next)
a;
++ai, a = a->next)
work1[ai] =
AnnotationList__computeDominantContribution (
a, lr0_isocore->state->nitems, lookaheads, false);
@@ -982,7 +982,7 @@ ielr_split_states (bitsetv follow_kernel_items, bitsetv always_follows,
this_state;
this_state = this_state->next)
{
state *s = this_state->state;
const state *s = this_state->state;
for (int i = 0; i < s->transitions->num; ++i)
{
state *t = s->transitions->states[i];