Skip to content
Myr

fix option parsing of `--binary` on non-Windows platforms (#3131)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`-b`/`--binary` should be accepted on all platforms so that they can be used in code that is meant to be portable.

authored by Christoph Anton Mitterer · committed by GitHub · parent 7cd23f1 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/main.c+1 added-1 removed
438 unmodified lines
439 fflush(stderr);440 _setmode(fileno(stdin), _O_BINARY);441 _setmode(fileno(stdout), _O_BINARY);442 _setmode(fileno(stderr), _O_BINARY);443 if (!short_opts) continue;443#endif444 if (!short_opts) continue;445 }446 if (isoption(argv[i], 0, "tab", &short_opts)) {447 dumpopts &= ~JV_PRINT_INDENT_FLAGS(7);448 dumpopts |= JV_PRINT_TAB | JV_PRINT_PRETTY;
324 unmodified lines