Re: [PATCH] ruby: extern linkage portability improvement
authorCharlie Allom <charlie@mediasp.com>
Mon, 14 May 2012 12:42:16 +0000 (13:42 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:05 +0000 (09:47 -0800)
25/0d619b60ccdfa8e959477a1a6ca4941f14cde2 [new file with mode: 0644]

diff --git a/25/0d619b60ccdfa8e959477a1a6ca4941f14cde2 b/25/0d619b60ccdfa8e959477a1a6ca4941f14cde2
new file mode 100644 (file)
index 0000000..ce455e2
--- /dev/null
@@ -0,0 +1,79 @@
+Return-Path: <charlie@mediasp.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4F69E431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 14 May 2012 06:07:52 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id baRfcSNf1R1a for <notmuch@notmuchmail.org>;\r
+       Mon, 14 May 2012 06:07:51 -0700 (PDT)\r
+Received: from mail.playlouder.com (mail.playlouder.com [94.228.66.7])\r
+       by olra.theworths.org (Postfix) with ESMTP id 75DEB431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 14 May 2012 06:07:51 -0700 (PDT)\r
+Received: from localhost (localhost.localdomain [127.0.0.1])\r
+       by mail.playlouder.com (Postfix) with ESMTP id 21DC752009;\r
+       Mon, 14 May 2012 13:07:48 +0000 (UTC)\r
+X-Virus-Scanned: Debian amavisd-new at mail.playlouder.com\r
+Received: from mail.playlouder.com ([127.0.0.1])\r
+       by localhost (mail.playlouder.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id lmKdO0bHy-4h; Mon, 14 May 2012 13:07:47 +0000 (UTC)\r
+Received: from spodder.com (capslock.playlouder.com [94.228.68.132])\r
+       by mail.playlouder.com (Postfix) with ESMTPSA id B8EAB5205A;\r
+       Mon, 14 May 2012 12:42:17 +0000 (UTC)\r
+Date: Mon, 14 May 2012 13:42:16 +0100\r
+From: Charlie Allom <charlie@mediasp.com>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>\r
+Subject: Re: [PATCH] ruby: extern linkage portability improvement\r
+Message-ID: <20120514124213.GA14081@spodder.com>\r
+References: <1336669964-24231-1-git-send-email-tomi.ollila@iki.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <1336669964-24231-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 14 May 2012 13:07:52 -0000\r
+\r
+On Thu, May 10, 2012 at 08:12:44PM +0300, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+> Some C compilers are stricter when it comes to (tentative) definition\r
+> of a variable -- in those compilers introducing variable without 'extern'\r
+> keyword always allocates new 'storage' to the variable and linking all\r
+> these modules fails due to duplicate symbols.\r
+>\r
+> This change uses some macro trickery to avoid writing every variable twice.\r
+>\r
+> This is reimplementation of Charlie Allom's patch:\r
+> id:"1336481467-66356-1-git-send-email-charlie@mediasp.com"\r
+>\r
+> combining information from other change made by Ali Polatel.\r
+> ---\r
+>\r
+> Charlie: could you test whether this patch actually work ? :)\r
+\r
+Hi Tomi,\r
+\r
+This works for me.\r
+\r
+  C.\r
+--\r
+ +442077294797\r
+ http://mediasp.com/\r