aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-10-17 14:21:06 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-10-17 14:21:06 +0000
commit134d614d692de59b637d2053bfd6efab8598b5e1 (patch)
tree92c7641d0b33678636309a8a116d438eb356b351 /editors/awk.c
parent9ff79a5cbbffe3335321683b1925a45b4f15484c (diff)
downloadbusybox-w32-134d614d692de59b637d2053bfd6efab8598b5e1.tar.gz
busybox-w32-134d614d692de59b637d2053bfd6efab8598b5e1.tar.bz2
busybox-w32-134d614d692de59b637d2053bfd6efab8598b5e1.zip
- consume space between functionname and opening brackets
Fixes Rob's issue using busybox awk for building gcc-4_0 optionlist (http://busybox.net/lists/busybox/2005-October/016659.html) git-svn-id: svn://busybox.net/trunk/busybox@11883 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--editors/awk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 087be44a5..d00fcafb1 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -959,10 +959,11 @@ static uint32_t next_token(uint32_t expected)
959 } 959 }
960 *(p-1) = '\0'; 960 *(p-1) = '\0';
961 tc = TC_VARIABLE; 961 tc = TC_VARIABLE;
962 /* also consume whitespace between functionname and bracket */
963 skip_spaces(&p);
962 if (*p == '(') { 964 if (*p == '(') {
963 tc = TC_FUNCTION; 965 tc = TC_FUNCTION;
964 } else { 966 } else {
965 skip_spaces(&p);
966 if (*p == '[') { 967 if (*p == '[') {
967 p++; 968 p++;
968 tc = TC_ARRAY; 969 tc = TC_ARRAY;