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

Re: "new" as function parameter doesn't work with C++-compilers

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-06-09 14:16:32 CEST

On Mon, Jun 09, 2003 at 09:59:45AM +0200, SteveKing wrote:
> Hi,
> Just updated to HEAD of subversion and
> tried to compile it. But I got compiler errors
> in the file svn_wc.h, line 67 because "new"
> is a C++ keyword and shouldn't be used
> as a parameter name.

I don't see that at all. Line 67 of svn_wc.h is a comment. I don't see a
parameter named 'new' anywhere in the headers.

Second, we wrap all of our headers with:

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

which I would hope avoid problems with identifiers like 'new'. Not that I
support doing that when it is so easy to change, but it should prevent
problems like you're seeing.

> May I ask to change that?

Change what? :-)


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 9 14:13:02 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.