aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-05 19:37:32 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-05 19:37:32 +0000
commitde8b97f6cab32d7bb93832e4683cb1f7862b8399 (patch)
tree936b7165cba1b700fd7b43b562e92f46250a8802 /sh.c
parentae0c135feaac010e3d4a9fbb3df7343b2d523cc3 (diff)
downloadbusybox-w32-de8b97f6cab32d7bb93832e4683cb1f7862b8399.tar.gz
busybox-w32-de8b97f6cab32d7bb93832e4683cb1f7862b8399.tar.bz2
busybox-w32-de8b97f6cab32d7bb93832e4683cb1f7862b8399.zip
Better label the globals.
git-svn-id: svn://busybox.net/trunk/busybox@1542 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sh.c b/sh.c
index c756a2749..9e017b169 100644
--- a/sh.c
+++ b/sh.c
@@ -73,8 +73,6 @@ static const unsigned int IF_TRUE_CONTEXT=0x2;
73static const unsigned int IF_FALSE_CONTEXT=0x4; 73static const unsigned int IF_FALSE_CONTEXT=0x4;
74static const unsigned int THEN_EXP_CONTEXT=0x8; 74static const unsigned int THEN_EXP_CONTEXT=0x8;
75static const unsigned int ELSE_EXP_CONTEXT=0x10; 75static const unsigned int ELSE_EXP_CONTEXT=0x10;
76unsigned int shell_context;
77
78 76
79 77
80struct jobset { 78struct jobset {
@@ -184,6 +182,13 @@ static struct built_in_command bltins_forking[] = {
184 {NULL, NULL, NULL} 182 {NULL, NULL, NULL}
185}; 183};
186 184
185
186/* Variables we export */
187unsigned int shell_context; /* Used in cmdedit.c to reset the
188 context when someone hits ^C */
189
190
191/* Globals that are static to this file */
187static char *cwd; 192static char *cwd;
188static char *local_pending_command; 193static char *local_pending_command;
189static struct jobset job_list = { NULL, NULL }; 194static struct jobset job_list = { NULL, NULL };