aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-06-20 22:52:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-06-20 22:52:29 +0200
commitac4786ba002620eb4c046c847e69d6a12ea0e322 (patch)
tree5b71299f39a876a962eace0dc50feaca78e39d2a /editors
parentd82c937a31599086e1813cb3d9cd02c5107725f2 (diff)
downloadbusybox-w32-ac4786ba002620eb4c046c847e69d6a12ea0e322.tar.gz
busybox-w32-ac4786ba002620eb4c046c847e69d6a12ea0e322.tar.bz2
busybox-w32-ac4786ba002620eb4c046c847e69d6a12ea0e322.zip
qwk: make code clearer, no actual code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 2563722f9..5f1d670a4 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -455,7 +455,8 @@ static const uint32_t tokeninfo[] ALIGN4 = {
455 OC_BINARY|NV|P(29)|'+', OC_BINARY|NV|P(29)|'-', OC_REPLACE|NV|P(74)|'&', OC_BINARY|NV|P(15)|'&', 455 OC_BINARY|NV|P(29)|'+', OC_BINARY|NV|P(29)|'-', OC_REPLACE|NV|P(74)|'&', OC_BINARY|NV|P(15)|'&',
456 OC_BINARY|NV|P(25)|'/', OC_BINARY|NV|P(25)|'%', OC_BINARY|NV|P(15)|'&', OC_BINARY|NV|P(25)|'*', 456 OC_BINARY|NV|P(25)|'/', OC_BINARY|NV|P(25)|'%', OC_BINARY|NV|P(15)|'&', OC_BINARY|NV|P(25)|'*',
457 OC_COMPARE|VV|P(39)|4, OC_COMPARE|VV|P(39)|3, OC_COMPARE|VV|P(39)|0, OC_COMPARE|VV|P(39)|1, 457 OC_COMPARE|VV|P(39)|4, OC_COMPARE|VV|P(39)|3, OC_COMPARE|VV|P(39)|0, OC_COMPARE|VV|P(39)|1,
458 OC_COMPARE|VV|P(39)|2, OC_MATCH|Sx|P(45)|'!', OC_MATCH|Sx|P(45)|'~', OC_LAND|Vx|P(55), 458#define TI_LESS (OC_COMPARE|VV|P(39)|2)
459 TI_LESS, OC_MATCH|Sx|P(45)|'!', OC_MATCH|Sx|P(45)|'~', OC_LAND|Vx|P(55),
459 OC_LOR|Vx|P(59), OC_TERNARY|Vx|P(64)|'?', OC_COLON|xx|P(67)|':', 460 OC_LOR|Vx|P(59), OC_TERNARY|Vx|P(64)|'?', OC_COLON|xx|P(67)|':',
460 OC_IN|SV|P(49), /* TC_IN */ 461 OC_IN|SV|P(49), /* TC_IN */
461 OC_COMMA|SS|P(80), 462 OC_COMMA|SS|P(80),
@@ -1328,7 +1329,7 @@ static node *parse_expr(uint32_t term_tc)
1328 1329
1329 while (!((tc = next_token(xtc)) & term_tc)) { 1330 while (!((tc = next_token(xtc)) & term_tc)) {
1330 1331
1331 if (glptr && (t_info == (OC_COMPARE | VV | P(39) | 2))) { 1332 if (glptr && (t_info == TI_LESS)) {
1332 /* input redirection (<) attached to glptr node */ 1333 /* input redirection (<) attached to glptr node */
1333 debug_printf_parse("%s: input redir\n", __func__); 1334 debug_printf_parse("%s: input redir\n", __func__);
1334 cn = glptr->l.n = new_node(OC_CONCAT | SS | P(37)); 1335 cn = glptr->l.n = new_node(OC_CONCAT | SS | P(37));