From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21299 invoked by alias); 1 Aug 2013 12:50:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 21267 invoked by uid 89); 1 Aug 2013 12:50:33 -0000 X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1 Received: from Unknown (HELO mail-ee0-f53.google.com) (74.125.83.53) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 01 Aug 2013 12:50:32 +0000 Received: by mail-ee0-f53.google.com with SMTP id b15so1000097eek.12 for ; Thu, 01 Aug 2013 05:50:24 -0700 (PDT) X-Received: by 10.14.241.136 with SMTP id g8mr1278330eer.104.1375361424307; Thu, 01 Aug 2013 05:50:24 -0700 (PDT) Received: from s42.loc (91-119-128-234.dynamic.xdsl-line.inode.at. [91.119.128.234]) by mx.google.com with ESMTPSA id ci50sm4106188eeb.12.2013.08.01.05.50.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Aug 2013 05:50:23 -0700 (PDT) Received: from cow by s42.loc with local (Exim 4.80) (envelope-from ) id 1V4sKj-0005Vs-S0; Thu, 01 Aug 2013 14:50:22 +0200 From: Bernhard Reutner-Fischer To: gcc-patches@gcc.gnu.org Cc: Bernhard Reutner-Fischer , Ian Lance Taylor , gofrontend-dev@googlegroups.com Subject: [libgo PATCH 1/1] mksyscalls.awk: make split ERE more portable Date: Thu, 01 Aug 2013 12:50:00 -0000 Message-Id: <1375360588-20819-2-git-send-email-rep.dot.nop@gmail.com> In-Reply-To: <1375360588-20819-1-git-send-email-rep.dot.nop@gmail.com> References: <1375360588-20819-1-git-send-email-rep.dot.nop@gmail.com> X-IsSubscribed: yes X-SW-Source: 2013-08/txt/msg00023.txt.bz2 awk's split() ERE was splitting on (essentially) . Double checked with mawk 1.3.3, GNU Awk 4.0.1, busybox awk that they still produce identical output. libgo/ChangeLog (???) 2013-08-01 Bernhard Reutner-Fischer * go/syscall/mksyscall.awk (split): Fix ere argument. Signed-off-by: Bernhard Reutner-Fischer --- libgo/go/syscall/mksyscall.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgo/go/syscall/mksyscall.awk b/libgo/go/syscall/mksyscall.awk index 74f0e28..829b6fe 100644 --- a/libgo/go/syscall/mksyscall.awk +++ b/libgo/go/syscall/mksyscall.awk @@ -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, "\\([^()]*\\)") -- 1.7.10.4