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

Re: svn commit: r1326337 - /subversion/trunk/subversion/libsvn_subr/svn_named_atomic.c

From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 24 Apr 2012 11:53:55 -0400

On Apr 24, 2012 11:15 AM, "Daniel Shahaf" <danielsh_at_elego.de> wrote:
>
> stefan2_at_apache.org wrote on Sun, Apr 15, 2012 at 13:42:44 -0000:
>...
> > +++ subversion/trunk/subversion/libsvn_subr/svn_named_atomic.c Sun Apr
15 13:42:44 2012
> > @@ -88,6 +88,12 @@
> > */
> > #define SHM_NAME_SUFFIX "Shm"
> >
> > +/* Prevent macro re-definition warning (on Windows in particluar).
> > + */
> > +#ifdef SYNCHRONIZE
> > +#undef SYNCHRONIZE
> > +#endif
>
> Is this a safe change? Experimenting shows that if later in the file
> a macro is used which is defined in terms of SYNCHRONIZE, the file-local
> definition (below the diff context) would be used even for macros
> defined while the previous definition was effective.
>
> Shouldn't you rename the macro?

Agreed. Rename. Let's stick to our namespace, but failing that, at least
choose other names when we discover a conflict.

Cheers,
-g
Received on 2012-04-24 17:54:32 CEST

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.