Commit 1b3dc031 by Ian Lance Taylor

syscall: Change AWK split call to use []+ rather than []*.

Using []* fails with the awk that is part of busybox:
https://groups.google.com/d/msg/gofrontend-dev/NbQsG_AMDpY/sXCc03kkwn4J

From-SVN: r201455
parent ecee672b
......@@ -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, "\\([^()]*\\)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment