[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: extern keyword

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-09-07 22:31:06 CEST

"extern" isn't useful for that, but we would need appropriate macro crap for
the Windows DLL import/export.

Note that Apache does not use "extern" either, and it has been ported to
every OS, every compiler, every .... If Jim can find a counter example where
extern is needed, then I'll be surprised as hell.


On Thu, Sep 07, 2000 at 01:09:48PM -0700, Bill Tutt wrote:
> However.... If you're thinking about making any of the parts of Subversion
> into a shared library
> It's best to decide explicity up front which APIs you want to export.
> (Windows porting, and all that fun gunk)
> Bill
> -----Original Message-----
> From: Greg Stein [mailto:gstein@lyra.org]
> Sent: Thursday, September 07, 2000 12:57 PM
> To: dev@subversion.tigris.org
> Subject: extern keyword
> I've noticed that svn_fs.h uses the "extern" keyword for all of its function
> declarations. None of the headers in the rest of Subversion, APR, or Neon
> use that style, so I would recommend dropping it.
> IIRC, ANSI states that a prototype is a declaration if there is no body
> associated with the thing. The extern then becomes superfluous.
> Cheers,
> -g
> --
> Greg Stein, http://www.lyra.org/

Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:07 2006

This is an archived mail posted to the Subversion Dev mailing list.