[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: Branko ─îibej <brane_at_xbc.nu>
Date: 2007-01-08 18:41:53 CET

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 8 18:42:46 2007

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