diff options
| author | Diomidis Spinellis <dds@FreeBSD.org> | 2003-07-05 15:18:44 +0000 |
|---|---|---|
| committer | Diomidis Spinellis <dds@FreeBSD.org> | 2003-07-05 15:18:44 +0000 |
| commit | 2ba1b30bf50f04ab147452cfba7a3b9899f1d59c (patch) | |
| tree | b3c2aa55b49d1fcca627aec69e1e5a16b264b51d /bin/sh/parser.c | |
| parent | cf3574284719d98bca0fa10588677f35f2e8202f (diff) | |
Notes
Diffstat (limited to 'bin/sh/parser.c')
| -rw-r--r-- | bin/sh/parser.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index e00df92aab86..da166e6503ba 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -84,19 +84,19 @@ struct heredoc { -struct heredoc *heredoclist; /* list of here documents to read */ -int parsebackquote; /* nonzero if we are inside backquotes */ -int doprompt; /* if set, prompt the user */ -int needprompt; /* true if interactive and at start of line */ -int lasttoken; /* last token read */ +STATIC struct heredoc *heredoclist; /* list of here documents to read */ +STATIC int parsebackquote; /* nonzero if we are inside backquotes */ +STATIC int doprompt; /* if set, prompt the user */ +STATIC int needprompt; /* true if interactive and at start of line */ +STATIC int lasttoken; /* last token read */ MKINIT int tokpushback; /* last token pushed back */ -char *wordtext; /* text of last word returned by readtoken */ +STATIC char *wordtext; /* text of last word returned by readtoken */ MKINIT int checkkwd; /* 1 == check for kwds, 2 == also eat newlines */ -struct nodelist *backquotelist; -union node *redirnode; -struct heredoc *heredoc; -int quoteflag; /* set if (part of) last token was quoted */ -int startlinno; /* line # where last token started */ +STATIC struct nodelist *backquotelist; +STATIC union node *redirnode; +STATIC struct heredoc *heredoc; +STATIC int quoteflag; /* set if (part of) last token was quoted */ +STATIC int startlinno; /* line # where last token started */ /* XXX When 'noaliases' is set to one, no alias expansion takes place. */ static int noaliases = 0; |
