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

Re: svn commit: r22885 - branches/merge-tracking/subversion/libsvn_fs_util

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2007-01-08 17:24:54 CET

On Fri, Jan 05, 2007 at 05:05:27PM -0800, Daniel Rall wrote:
> > > Modified: branches/merge-tracking/subversion/libsvn_fs_util/merge-info-sqlite-index.c
> > > +/* The version number of the schema used to store the merge info index. */
> > > +#define MERGE_INFO_INDEX_SCHEMA_FORMAT 1
> > > +#define MERGE_INFO_INDEX_SCHEMA_FORMAT_STR "1"
> >
> > I'm sure you could stringify the first to get the second, no need to
> > repeat the 1/"1".
>
> Sure. How do you suggest implementing this efficiently?
>

#define STR_(x) #x
#define STR(x) STR_(x)
#define MERGE_INFO_INDEX_SCHEMA_FORMAT 1
#define MERGE_INFO_INDEX_SCHEMA_FORMAT_STR STR(MERGE_INFO_INDEX_SCHEMA_FORMAT)

Probably not worth it after all. I forgot that you needed to indirect via
two other macros.

Regards,
Malcolm

  • application/pgp-signature attachment: stored
Received on Mon Jan 8 17:25:07 2007

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.