syscall: Change AWK split call to use []+ rather than []*.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 2 Aug 2013 22:30:30 +0000 (22:30 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 2 Aug 2013 22:30:30 +0000 (22:30 +0000)
Using []* fails with the awk that is part of busybox:
https://groups.google.com/d/msg/gofrontend-dev/NbQsG_AMDpY/sXCc03kkwn4J

From-SVN: r201455

libgo/go/syscall/mksyscall.awk

index 74f0e28af4d9e1091b879092a0ec1c6f25990e99..daf6554a6cd58d7f3e8294635babccc532d4f6f5 100644 (file)
@@ -53,7 +53,7 @@ BEGIN {
     }
 
     # Sets a[1] = //sysnb, a[2] == function name.
-    split(line, a, "[  (]*")
+    split(line, a, "[  (]+")
     gofnname = a[2]
 
     off = match(line, "\\([^()]*\\)")
@@ -78,7 +78,7 @@ BEGIN {
        next
     }
 
-    split(line, a, "[  (]*")
+    split(line, a, "[  (]+")
     cfnname = substr(a[1], 3, length(a[1]) - 2)
 
     off = match(line, "\\([^()]*\\)")