Skip to content

Commit

Permalink
cdata: Fix nesting for end-of-match eager_output check.
Browse files Browse the repository at this point in the history
  • Loading branch information
silentbicycle committed Oct 30, 2024
1 parent 174730b commit a9b5024
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libfsm/print/cdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,11 @@ generate_interpreter(FILE *f, const struct cdata_config *config, const struct fs
}

/* If the end state has eager_outputs, set their flags. */
generate_eager_output_check(f, config, prefix);
if (has_eager_outputs) {
fprintf(f, "\t{\n"); /* add {} nesting so the tabs match */
generate_eager_output_check(f, config, prefix);
fprintf(f, "\t}\n");
}

/* Got a match. */
fprintf(f, "\treturn 1; /* match */\n");
Expand Down

0 comments on commit a9b5024

Please sign in to comment.