aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-17 14:21:06 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-17 14:21:06 +0000
commitbb20462cb34245037ecf92a0e7fc42b54b9e2d7b (patch)
tree92c7641d0b33678636309a8a116d438eb356b351 /editors
parent86ac072b4429512275352ad09358e86b655c8638 (diff)
downloadbusybox-bb20462cb34245037ecf92a0e7fc42b54b9e2d7b.tar.gz
- 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)
Diffstat (limited to 'editors')
-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)
}
*(p-1) = '\0';
tc = TC_VARIABLE;
+ /* also consume whitespace between functionname and bracket */
+ skip_spaces(&p);
if (*p == '(') {
tc = TC_FUNCTION;
} else {
- skip_spaces(&p);
if (*p == '[') {
p++;
tc = TC_ARRAY;