aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-07-10 07:35:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2024-07-10 07:35:26 +0200
commit0af28b84e58307422f807ddbdafc67a68f71eb64 (patch)
tree0b747f13bd7022e10344a9bba26ec9a74fabf7ba
parent87c31609f40c98203bbc9c30117a15a9342b2d4c (diff)
downloadbusybox-w32-0af28b84e58307422f807ddbdafc67a68f71eb64.tar.gz
busybox-w32-0af28b84e58307422f807ddbdafc67a68f71eb64.tar.bz2
busybox-w32-0af28b84e58307422f807ddbdafc67a68f71eb64.zip
ash: remove defunct control character to save a few bytes
Commit 549deab5a (ash: move parse-time quote flag detection to run-time) did away with the need to distinguish between backquotes inside and outside quotes. This left a gap among the control characters used in argument strings. Removing this gap saves a few bytes. function old new delta .rodata 167346 167338 -8 cmdputs 399 388 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-19) Total: -19 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 5df0ba625..094a87390 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -835,13 +835,13 @@ out2str(const char *p)
835#define CTLVAR ((unsigned char)'\202') /* variable defn */ 835#define CTLVAR ((unsigned char)'\202') /* variable defn */
836#define CTLENDVAR ((unsigned char)'\203') 836#define CTLENDVAR ((unsigned char)'\203')
837#define CTLBACKQ ((unsigned char)'\204') 837#define CTLBACKQ ((unsigned char)'\204')
838#define CTLARI ((unsigned char)'\206') /* arithmetic expression */ 838#define CTLARI ((unsigned char)'\205') /* arithmetic expression */
839#define CTLENDARI ((unsigned char)'\207') 839#define CTLENDARI ((unsigned char)'\206')
840#define CTLQUOTEMARK ((unsigned char)'\210') 840#define CTLQUOTEMARK ((unsigned char)'\207')
841#define CTL_LAST CTLQUOTEMARK 841#define CTL_LAST CTLQUOTEMARK
842#if BASH_PROCESS_SUBST 842#if BASH_PROCESS_SUBST
843# define CTLTOPROC ((unsigned char)'\211') 843# define CTLTOPROC ((unsigned char)'\210')
844# define CTLFROMPROC ((unsigned char)'\212') 844# define CTLFROMPROC ((unsigned char)'\211')
845# undef CTL_LAST 845# undef CTL_LAST
846# define CTL_LAST CTLFROMPROC 846# define CTL_LAST CTLFROMPROC
847#endif 847#endif
@@ -3246,17 +3246,17 @@ static const uint8_t syntax_index_table[] ALIGN1 = {
3246 /* 130 CTLVAR */ CCTL_CCTL_CCTL_CCTL, 3246 /* 130 CTLVAR */ CCTL_CCTL_CCTL_CCTL,
3247 /* 131 CTLENDVAR */ CCTL_CCTL_CCTL_CCTL, 3247 /* 131 CTLENDVAR */ CCTL_CCTL_CCTL_CCTL,
3248 /* 132 CTLBACKQ */ CCTL_CCTL_CCTL_CCTL, 3248 /* 132 CTLBACKQ */ CCTL_CCTL_CCTL_CCTL,
3249 /* 133 CTLQUOTE */ CCTL_CCTL_CCTL_CCTL, 3249 /* 133 CTLARI */ CCTL_CCTL_CCTL_CCTL,
3250 /* 134 CTLARI */ CCTL_CCTL_CCTL_CCTL, 3250 /* 134 CTLENDARI */ CCTL_CCTL_CCTL_CCTL,
3251 /* 135 CTLENDARI */ CCTL_CCTL_CCTL_CCTL, 3251 /* 135 CTLQUOTEMARK */ CCTL_CCTL_CCTL_CCTL,
3252 /* 136 CTLQUOTEMARK */ CCTL_CCTL_CCTL_CCTL,
3253#if BASH_PROCESS_SUBST 3252#if BASH_PROCESS_SUBST
3254 /* 137 CTLTOPROC */ CCTL_CCTL_CCTL_CCTL, 3253 /* 136 CTLTOPROC */ CCTL_CCTL_CCTL_CCTL,
3255 /* 138 CTLFROMPROC */ CCTL_CCTL_CCTL_CCTL, 3254 /* 137 CTLFROMPROC */ CCTL_CCTL_CCTL_CCTL,
3256#else 3255#else
3256 /* 136 */ CWORD_CWORD_CWORD_CWORD,
3257 /* 137 */ CWORD_CWORD_CWORD_CWORD, 3257 /* 137 */ CWORD_CWORD_CWORD_CWORD,
3258 /* 138 */ CWORD_CWORD_CWORD_CWORD,
3259#endif 3258#endif
3259 /* 138 */ CWORD_CWORD_CWORD_CWORD,
3260 /* 139 */ CWORD_CWORD_CWORD_CWORD, 3260 /* 139 */ CWORD_CWORD_CWORD_CWORD,
3261 /* 140 */ CWORD_CWORD_CWORD_CWORD, 3261 /* 140 */ CWORD_CWORD_CWORD_CWORD,
3262 /* 141 */ CWORD_CWORD_CWORD_CWORD, 3262 /* 141 */ CWORD_CWORD_CWORD_CWORD,