svn commit: trunk/busybox/editors

aldot at busybox.net aldot at busybox.net
Mon Oct 17 14:21:07 UTC 2005


Author: aldot
Date: 2005-10-17 07:21:06 -0700 (Mon, 17 Oct 2005)
New Revision: 11883

Log:
- 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)


Modified:
   trunk/busybox/editors/awk.c


Changeset:
Modified: trunk/busybox/editors/awk.c
===================================================================
--- trunk/busybox/editors/awk.c	2005-10-17 10:47:19 UTC (rev 11882)
+++ trunk/busybox/editors/awk.c	2005-10-17 14:21:06 UTC (rev 11883)
@@ -959,10 +959,11 @@
 				}
 				*(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;




More information about the busybox-cvs mailing list