diff options
author | dds <dds@FreeBSD.org> | 2003-07-05 15:18:44 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2003-07-05 15:18:44 +0000 |
commit | 34719e1dbbd13069c2034382dc5129edf7657a4b (patch) | |
tree | b3c2aa55b49d1fcca627aec69e1e5a16b264b51d /bin/sh/parser.c | |
parent | 9179c67e977015ed4bfe4a52ade43ac574300c93 (diff) | |
download | FreeBSD-src-34719e1dbbd13069c2034382dc5129edf7657a4b.zip FreeBSD-src-34719e1dbbd13069c2034382dc5129edf7657a4b.tar.gz |
Changes following CScout analysis:
- Removed dead declarations
- Made objects that should have been declared as static, static.
The changes use STATIC instead of static, following the existing
convention in the rest of the code.
Approved by: schweikh (mentor)
MFC after: 2 weeks
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 e00df92..da166e6 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; |