]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
syscall: Remove a couple more 3-parameter match's in mksyscall.awk.
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 31 Oct 2011 21:47:30 +0000 (21:47 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 31 Oct 2011 21:47:30 +0000 (21:47 +0000)
From-SVN: r180712

libgo/go/syscall/mksyscall.awk

index 4ceb80c56a55a0a77be41d6e0af19157a0fffa24..1b612f3fb996b0706b5a7637048b6470d69847fb 100644 (file)
@@ -170,7 +170,7 @@ BEGIN {
            printf("\t}\n")
 
            ++carg
-           if (match(cargs[carg], "^([^ ]*) ([^ ]*)$", cparam) == 0) {
+           if (split(cargs[carg], cparam) != 2) {
                print loc, "bad C parameter:", cargs[carg] | "cat 1>&2"
                status = 1
                next
@@ -207,7 +207,7 @@ BEGIN {
        }
        usedr = 0
        for (goresult = 1; goresults[goresult] != ""; goresult++) {
-           if (match(goresults[goresult], "^([^ ]*) ([^ ]*)$", goparam) == 0) {
+           if (split(goresults[goresult], goparam) != 2) {
                print loc, "bad result:", goresults[goresult] | "cat 1>&2"
                status = 1
                next