From patchwork Thu Aug 1 12:36:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Reutner-Fischer X-Patchwork-Id: 263992 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D072C2C0092 for ; Thu, 1 Aug 2013 22:51:02 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=x3si/rwwtiNNFsyx40oqVOC1VedHZHMGNl1wEMzDP36xizhnToqZa EBMGIimaskXl6nUzNL0s7rjZHxfNmLv9q3zZDj7lj0q9IOt4wq2y2LYXal7q82YY 1/eDVuiuBUcrff7vgRfpySJonwZz7/pPfCK8OdOc+sPp3DJ9e2zch0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=KE01W7w2mAmRm0P0j66Ts6bQmWw=; b=v6UbEcGx3Hbf3ARVgyTC Zujo0zTPbCSZxUQKXN+zpSFc65TXDG1ONNDtErE/GrDBipefAyF8y6OMBD21du2w a5/3M1wfoeIp7oL3Sre9QvPQr6MRhpQZ9rE7jX0w0JB4+k8VVu13vS1KRWIShrsi WKK0rMyZR/uH8Jom3+vYKp4= 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@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, 1 Aug 2013 14:36:28 +0200 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 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, "\\([^()]*\\)")