Better label the globals.

This commit is contained in:
Eric Andersen 2001-01-05 19:37:32 +00:00
parent b0970d4fed
commit 0bcc813a34
3 changed files with 21 additions and 6 deletions

9
lash.c
View File

@ -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 };

9
sh.c
View File

@ -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 };

View File

@ -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 };