Skip to content

Commit

Permalink
Merge branch 'main' into kate/more-multi
Browse files Browse the repository at this point in the history
  • Loading branch information
katef authored Aug 7, 2024
2 parents 218e90c + 62d3b3b commit 021d169
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions src/libfsm/print/c.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,13 @@ fsm_print_c(FILE *f,

case AMBIG_ERROR:
case AMBIG_EARLIEST:
fprintf(stdout, ",\n");
fprintf(stdout, "\tconst unsigned *id");
fprintf(f, ",\n");
fprintf(f, "\tconst unsigned *id");
break;

case AMBIG_MULTIPLE:
fprintf(stdout, ",\n");
fprintf(stdout, "\tconst unsigned **ids, size_t *count");
fprintf(f, ",\n");
fprintf(f, "\tconst unsigned **ids, size_t *count");
break;

default:
Expand All @@ -570,8 +570,8 @@ fsm_print_c(FILE *f,
}

if (hooks->args != NULL) {
fprintf(stdout, ",\n");
fprintf(stdout, "\t");
fprintf(f, ",\n");
fprintf(f, "\t");

if (-1 == print_hook_args(f, opt, hooks, NULL, NULL)) {
return -1;
Expand Down
4 changes: 2 additions & 2 deletions src/libfsm/print/go.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ fsm_print_go(FILE *f,
}

if (hooks->args != NULL) {
fprintf(stdout, ", ");
fprintf(f, ", ");

if (-1 == print_hook_args(f, opt, hooks, NULL, NULL)) {
return -1;
Expand All @@ -427,7 +427,7 @@ fsm_print_go(FILE *f,

case AMBIG_ERROR:
case AMBIG_EARLIEST:
fprintf(stdout, "(bool, uint)");
fprintf(f, "(bool, uint)");
break;

case AMBIG_MULTIPLE:
Expand Down
12 changes: 6 additions & 6 deletions src/libfsm/print/vmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ fsm_print_vmc(FILE *f,

case AMBIG_ERROR:
case AMBIG_EARLIEST:
fprintf(stdout, ",\n");
fprintf(stdout, "\tconst unsigned *id");
fprintf(f, ",\n");
fprintf(f, "\tconst unsigned *id");
break;

case AMBIG_MULTIPLE:
fprintf(stdout, ",\n");
fprintf(stdout, "\tconst unsigned **ids, size_t *count");
fprintf(f, ",\n");
fprintf(f, "\tconst unsigned **ids, size_t *count");
break;

default:
Expand All @@ -585,8 +585,8 @@ fsm_print_vmc(FILE *f,
}

if (hooks->args != NULL) {
fprintf(stdout, ",\n");
fprintf(stdout, "\t");
fprintf(f, ",\n");
fprintf(f, "\t");

if (-1 == print_hook_args(f, opt, hooks, NULL, NULL)) {
return -1;
Expand Down

0 comments on commit 021d169

Please sign in to comment.