Skip to content
Myr

Reset options to 0 so can call main() multiple times in a row

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

authored by Robert Aboukhalil · committed by Nico Williams · parent f1c4947 · Browse files · 2 files+13 added−0 removed
This commit

State

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

Diff stats

2 files+13 added−0 removed

  • other:+13 added−0 removed

2 files+13 added−0 removed

modified:src/main.c+6 added
290 unmodified lines
291 _setmode(fileno(stdout), _O_TEXT | _O_U8TEXT);292 _setmode(fileno(stderr), _O_TEXT | _O_U8TEXT);293#endif294295#ifdef __EMSCRIPTEN__296 /* When compiling to WebAssembly with Emscripten, reset options to ensure we can297 call main() multiple times without reinitializing the WebAssembly module. */298 options = 0;299#endif300301 if (argc) progname = argv[0];302303 jq = jq_init();304 if (jq == NULL) {
447 unmodified lines
modified:README.md+7 added