On Mon, 08 Jan 2007, Branko Čibej wrote:
> Malcolm Rowe wrote:
> > 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.
> >
>
> /me looks at svn_version.h, thinks "APR_STRINGIFY" to himself and,
> whistling quietly, ambles away
Thanks guys, r22931.
- Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 8 19:30:35 2007