From 96d9e5d1f1a0c8c14a37ab0904419e20d56ba81b Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 14 Mar 2015 04:37:55 +0000 Subject: [PATCH] remove unused CMDWORD --- sh.h | 9 ++++----- syn.c | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/sh.h b/sh.h index eadb958..4393d09 100644 --- a/sh.h +++ b/sh.h @@ -169,7 +169,7 @@ #endif #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 #define MKSH_VERSION "R50 2015/03/08" @@ -1576,10 +1576,9 @@ typedef union { #define VARASN BIT(5) /* check for var=word */ #define ARRAYVAR BIT(6) /* parse x[1 & 2] as one word */ #define ESACONLY BIT(7) /* only accept esac keyword */ -#define CMDWORD BIT(8) /* parsing simple command (alias related) */ -#define HEREDELIM BIT(9) /* parsing <<,<<- delimiter */ -#define LQCHAR BIT(10) /* source string contains QCHAR */ -#define HEREDOC BIT(11) /* parsing a here document body */ +#define HEREDELIM BIT(8) /* parsing <<,<<- delimiter */ +#define LQCHAR BIT(9) /* source string contains QCHAR */ +#define HEREDOC BIT(10) /* parsing a here document body */ #define HERES 10 /* max number of << in line */ diff --git a/syn.c b/syn.c index b639dbc..482f25c 100644 --- a/syn.c +++ b/syn.c @@ -23,7 +23,7 @@ #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 { int start_token; /* token than began nesting (eg, FOR) */ @@ -289,7 +289,7 @@ get_command(int cf) t->lineno = source->line; while (/* CONSTCOND */ 1) { cf = (t->u.evalflags ? ARRAYVAR : 0) | - (XPsize(args) == 0 ? sALIAS|VARASN : CMDWORD); + (XPsize(args) == 0 ? sALIAS|VARASN : 0); switch (tpeek(cf)) { case REDIR: while ((iop = synio(cf)) != NULL) {