Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48776 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34433 invoked from network); 14 Jun 2010 14:14:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2010 14:14:34 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:34936] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/0C-07295-749361C4 for ; Mon, 14 Jun 2010 10:14:32 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 16D197001B1F for ; Mon, 14 Jun 2010 15:14:28 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id qakNZGqbZ1OG for ; Mon, 14 Jun 2010 15:14:27 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id CB3BC7001B17 for ; Mon, 14 Jun 2010 15:14:27 +0100 (WEST) Received: from cataphract (a83-132-189-84.cpe.netcabo.pt [83.132.189.84]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id AE687200799E for ; Mon, 14 Jun 2010 15:14:27 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: <6296D1E6-24DC-4A8E-892A-9EA6D08B0DC8@php.net> <514DC7EC-9D36-4FE9-BDF4-B6CA13DA274B@php.net> Date: Mon, 14 Jun 2010 15:12:28 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_IST?= Message-ID: In-Reply-To: <514DC7EC-9D36-4FE9-BDF4-B6CA13DA274B@php.net> User-Agent: Opera Mail/10.53 (Win32) Subject: Re: [PHP-DEV] Different ways to collect an extension's functions. From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Mon, 14 Jun 2010 14:32:25 +0100, Melanie Rhianna Lewis 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