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

Re: [PATCH]simple(for me only? not sure) typecasting

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-10-13 18:08:31 CEST

Daniel Rall wrote:
> On Thu, 12 Oct 2006, Kamesh Jayachandran wrote:
>
>
>> Hi All,
>> I found the following snippet in subversion/libsvn_subr/sorts.c.
>>
>> <snip>
>> svn_sort_compare_paths(const void *a, const void *b)
>> {
>> const char *item1 = *((const char * const *) a);
>> const char *item2 = *((const char * const *) b);
>> return svn_path_compare_paths(item1, item2);
>> }
>> </snip>
>> I feel it is easier to understand 'const char *item1 = *((const char **)
>> a);' than 'const char *item1 = *((const char * const *) a);'.
>>
>
> This patch changes the semantics of those statements.
>
Agreed. Can someone point me to the docs where I can understand the
typecasting of the above nature?

With regards
Kamesh Jayachandran

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 13 18:08:08 2006

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