diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-09 20:59:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-09 20:59:01 -0700 |
commit | 857bbe3ac143463bbac2bd4ff2e24cd871a1ca7d (patch) | |
tree | 9871216fe3a794367cea1b0e5a08a25b436df43b /txr.c | |
parent | 7a568308dae494d2b8e866bc5ee664535a69c9e2 (diff) | |
download | txr-857bbe3ac143463bbac2bd4ff2e24cd871a1ca7d.tar.gz txr-857bbe3ac143463bbac2bd4ff2e24cd871a1ca7d.tar.bz2 txr-857bbe3ac143463bbac2bd4ff2e24cd871a1ca7d.zip |
C++: fix goto repl which skips initializations.
* txr.c (txr_main): Move the labeled code to the end
of the function, so it's not sitting in the scope of of names
whose initialization is skipped. This is a better
organization: thank you, C++.
Diffstat (limited to 'txr.c')
-rw-r--r-- | txr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -757,11 +757,11 @@ int txr_main(int argc, char **argv) if (!enter_repl) return result ? 0 : EXIT_FAILURE; + } repl: #if HAVE_TERMIOS - repl(bindings, std_input, std_output); + repl(bindings, std_input, std_output); #endif - return 0; - } + return 0; } |