Re: Different ways to collect an extension's functions.

From: Date: Mon, 14 Jun 2010 14:12:28 +0000
Subject: Re: Different ways to collect an extension's functions.
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-48776@lists.php.net to get a copy of this message
On Mon, 14 Jun 2010 14:32:25 +0100, Melanie Rhianna Lewis <cyberspice@php.net> wrote:
I know the ANSI C standard pretty well but I don't remember that at all so rather than just accepting it I checked it on my Mac using a small example. Compiler details are below: kring:Development melanie$ gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5657) In my example static const did have internal linkage, const on its own in the global scope did not. You still need static.
You're right. I'd checked it here: http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/as400clr16.htm and some other place, but at least the C99 standard says otherwise. -- Gustavo Lopes

« previous php.internals (#48776) next »