remove unused CMDWORD
This commit is contained in:
parent
f893c7a347
commit
96d9e5d1f1
9
sh.h
9
sh.h
@ -169,7 +169,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EXTERN
|
#ifdef EXTERN
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.717 2015/03/08 22:54:35 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.718 2015/03/14 04:37:54 tg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#define MKSH_VERSION "R50 2015/03/08"
|
#define MKSH_VERSION "R50 2015/03/08"
|
||||||
|
|
||||||
@ -1576,10 +1576,9 @@ typedef union {
|
|||||||
#define VARASN BIT(5) /* check for var=word */
|
#define VARASN BIT(5) /* check for var=word */
|
||||||
#define ARRAYVAR BIT(6) /* parse x[1 & 2] as one word */
|
#define ARRAYVAR BIT(6) /* parse x[1 & 2] as one word */
|
||||||
#define ESACONLY BIT(7) /* only accept esac keyword */
|
#define ESACONLY BIT(7) /* only accept esac keyword */
|
||||||
#define CMDWORD BIT(8) /* parsing simple command (alias related) */
|
#define HEREDELIM BIT(8) /* parsing <<,<<- delimiter */
|
||||||
#define HEREDELIM BIT(9) /* parsing <<,<<- delimiter */
|
#define LQCHAR BIT(9) /* source string contains QCHAR */
|
||||||
#define LQCHAR BIT(10) /* source string contains QCHAR */
|
#define HEREDOC BIT(10) /* parsing a here document body */
|
||||||
#define HEREDOC BIT(11) /* parsing a here document body */
|
|
||||||
|
|
||||||
#define HERES 10 /* max number of << in line */
|
#define HERES 10 /* max number of << in line */
|
||||||
|
|
||||||
|
4
syn.c
4
syn.c
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.96 2015/03/08 22:54:36 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.97 2015/03/14 04:37:55 tg Exp $");
|
||||||
|
|
||||||
struct nesting_state {
|
struct nesting_state {
|
||||||
int start_token; /* token than began nesting (eg, FOR) */
|
int start_token; /* token than began nesting (eg, FOR) */
|
||||||
@ -289,7 +289,7 @@ get_command(int cf)
|
|||||||
t->lineno = source->line;
|
t->lineno = source->line;
|
||||||
while (/* CONSTCOND */ 1) {
|
while (/* CONSTCOND */ 1) {
|
||||||
cf = (t->u.evalflags ? ARRAYVAR : 0) |
|
cf = (t->u.evalflags ? ARRAYVAR : 0) |
|
||||||
(XPsize(args) == 0 ? sALIAS|VARASN : CMDWORD);
|
(XPsize(args) == 0 ? sALIAS|VARASN : 0);
|
||||||
switch (tpeek(cf)) {
|
switch (tpeek(cf)) {
|
||||||
case REDIR:
|
case REDIR:
|
||||||
while ((iop = synio(cf)) != NULL) {
|
while ((iop = synio(cf)) != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user