aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-08-03 13:46:25 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-29 19:36:08 +0100
commit383b885ff7654dc0171b5c1eaa449bb1e1cfe8f0 (patch)
treeed008dc03c17623cb1062ac8647dca70408b3e11 /shell/ash.c
parentab80e01cd9865571875b5dde7d2f88dea3331969 (diff)
downloadbusybox-w32-383b885ff7654dc0171b5c1eaa449bb1e1cfe8f0.tar.gz
busybox-w32-383b885ff7654dc0171b5c1eaa449bb1e1cfe8f0.tar.bz2
busybox-w32-383b885ff7654dc0171b5c1eaa449bb1e1cfe8f0.zip
ash: save a few bytes in code to parse case statements
Based on commit 49b82fc from git://git.kernel.org/pub/scm/utils/dash/dash.git by Herbert Xu. function old new delta parse_command 1563 1555 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8) Total: -8 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 3339666b9..18c7ff523 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10959,10 +10959,8 @@ parse_command(void)
10959 /*n2->narg.next = NULL; - stzalloc did it */ 10959 /*n2->narg.next = NULL; - stzalloc did it */
10960 n2->narg.text = wordtext; 10960 n2->narg.text = wordtext;
10961 n2->narg.backquote = backquotelist; 10961 n2->narg.backquote = backquotelist;
10962 do { 10962 checkkwd = CHKNL | CHKKWD | CHKALIAS;
10963 checkkwd = CHKKWD | CHKALIAS; 10963 if (readtoken() != TIN)
10964 } while (readtoken() == TNL);
10965 if (lasttoken != TIN)
10966 raise_error_unexpected_syntax(TIN); 10964 raise_error_unexpected_syntax(TIN);
10967 cpp = &n1->ncase.cases; 10965 cpp = &n1->ncase.cases;
10968 next_case: 10966 next_case: