Re: [PATCH] ruby: extern linkage portability improvement

Subject: Re: [PATCH] ruby: extern linkage portability improvement

Date: Mon, 14 May 2012 13:42:16 +0100

To: Tomi Ollila

Cc: notmuch@notmuchmail.org

From: Charlie Allom


On Thu, May 10, 2012 at 08:12:44PM +0300, Tomi Ollila <tomi.ollila@iki.fi> wrote:
> Some C compilers are stricter when it comes to (tentative) definition
> of a variable -- in those compilers introducing variable without 'extern'
> keyword always allocates new 'storage' to the variable and linking all
> these modules fails due to duplicate symbols.
>
> This change uses some macro trickery to avoid writing every variable twice.
>
> This is reimplementation of Charlie Allom's patch:
> id:"1336481467-66356-1-git-send-email-charlie@mediasp.com"
>
> combining information from other change made by Ali Polatel.
> ---
>
> Charlie: could you test whether this patch actually work ? :)

Hi Tomi,

This works for me.

  C.
--
 +442077294797
 http://mediasp.com/

Thread: