aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-05 19:37:32 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-05 19:37:32 +0000
commit0bcc813a3494fcf31dda25258ed3facc034c77f6 (patch)
tree936b7165cba1b700fd7b43b562e92f46250a8802
parentb0970d4fede16b6c1186b677c6d7d9e4652e459a (diff)
downloadbusybox-0bcc813a3494fcf31dda25258ed3facc034c77f6.tar.gz
Better label the globals.
-rw-r--r--lash.c9
-rw-r--r--sh.c9
-rw-r--r--shell/lash.c9
3 files changed, 21 insertions, 6 deletions
diff --git a/lash.c b/lash.c
index c756a2749..9e017b169 100644
--- a/lash.c
+++ b/lash.c
@@ -73,8 +73,6 @@ static const unsigned int IF_TRUE_CONTEXT=0x2;
static const unsigned int IF_FALSE_CONTEXT=0x4;
static const unsigned int THEN_EXP_CONTEXT=0x8;
static const unsigned int ELSE_EXP_CONTEXT=0x10;
-unsigned int shell_context;
-
struct jobset {
@@ -184,6 +182,13 @@ static struct built_in_command bltins_forking[] = {
{NULL, NULL, NULL}
};
+
+/* Variables we export */
+unsigned int shell_context; /* Used in cmdedit.c to reset the
+ context when someone hits ^C */
+
+
+/* Globals that are static to this file */
static char *cwd;
static char *local_pending_command;
static struct jobset job_list = { NULL, NULL };
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;
static const unsigned int IF_FALSE_CONTEXT=0x4;
static const unsigned int THEN_EXP_CONTEXT=0x8;
static const unsigned int ELSE_EXP_CONTEXT=0x10;
-unsigned int shell_context;
-
struct jobset {
@@ -184,6 +182,13 @@ static struct built_in_command bltins_forking[] = {
{NULL, NULL, NULL}
};
+
+/* Variables we export */
+unsigned int shell_context; /* Used in cmdedit.c to reset the
+ context when someone hits ^C */
+
+
+/* Globals that are static to this file */
static char *cwd;
static char *local_pending_command;
static struct jobset job_list = { NULL, NULL };
diff --git a/shell/lash.c b/shell/lash.c
index c756a2749..9e017b169 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -73,8 +73,6 @@ static const unsigned int IF_TRUE_CONTEXT=0x2;
static const unsigned int IF_FALSE_CONTEXT=0x4;
static const unsigned int THEN_EXP_CONTEXT=0x8;
static const unsigned int ELSE_EXP_CONTEXT=0x10;
-unsigned int shell_context;
-
struct jobset {
@@ -184,6 +182,13 @@ static struct built_in_command bltins_forking[] = {
{NULL, NULL, NULL}
};
+
+/* Variables we export */
+unsigned int shell_context; /* Used in cmdedit.c to reset the
+ context when someone hits ^C */
+
+
+/* Globals that are static to this file */
static char *cwd;
static char *local_pending_command;
static struct jobset job_list = { NULL, NULL };