- 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)
1_1_stable
Bernhard Reutner-Fischer 2005-10-17 14:21:06 +00:00
parent 86ac072b44
commit bb20462cb3
1 changed files with 2 additions and 1 deletions

View File

@ -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;