summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2010-11-28 03:59:30 +0100
committerDenys Vlasenko2010-11-28 03:59:30 +0100
commit57542ebe4fee39b6d3091b964c42ce07ecfec7ef (patch)
tree66e6c2457f0374a5dc25f7785b2c577152f51655 /shell
parent85c62470b75b9256e36d8f488a0701aff94ca512 (diff)
downloadbusybox-57542ebe4fee39b6d3091b964c42ce07ecfec7ef.zip
busybox-57542ebe4fee39b6d3091b964c42ce07ecfec7ef.tar.gz
hush: move G_x_mode define to the more appropriate place
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 0cc587e..584af9e 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -733,6 +733,11 @@ struct globals {
# define G_saved_tty_pgrp 0
#endif
char o_opt[NUM_OPT_O];
+#if ENABLE_HUSH_MODE_X
+# define G_x_mode (G.o_opt[OPT_O_XTRACE])
+#else
+# define G_x_mode 0
+#endif
smallint flag_SIGINT;
#if ENABLE_HUSH_LOOPS
smallint flag_break_continue;
@@ -744,11 +749,6 @@ struct globals {
*/
smallint flag_return_in_progress;
#endif
-#if ENABLE_HUSH_MODE_X
-# define G_x_mode (G.o_opt[OPT_O_XTRACE])
-#else
-# define G_x_mode 0
-#endif
smallint exiting; /* used to prevent EXIT trap recursion */
/* These four support $?, $#, and $1 */
smalluint last_exitcode;