summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-09 20:59:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-09 20:59:01 -0700
commit857bbe3ac143463bbac2bd4ff2e24cd871a1ca7d (patch)
tree9871216fe3a794367cea1b0e5a08a25b436df43b /txr.c
parent7a568308dae494d2b8e866bc5ee664535a69c9e2 (diff)
downloadtxr-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/txr.c b/txr.c
index a7777c1f..5c4e7a56 100644
--- a/txr.c
+++ b/txr.c
@@ -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;
}