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

Re: svn commit: r40417 - in trunk: . subversion/include subversion/include/private subversion/libsvn_client subversion/libsvn_subr subversion/libsvn_wc

From: Branko Cibej <brane_at_xbc.nu>
Date: Sun, 08 Nov 2009 07:30:36 +0100

Arfrever Frehtes Taifersar Arahesis wrote:
> 2009-11-07 20:27:54 Bert Huijben napisaƂ(a):
>
>> What do you try to fix?
>>
>
> Public headers shouldn't include private headers.
>
>
I find myself agreeing in principle with Arfrever; however, the "fix" is
totally bogus because it breaks debug builds for anyone who's not using
GCC as their compiler. At the very least, you should test if your
preprocessor even supports the -include option, not just blindly assume
that any system that uses configure also uses GCC.

Next: What on earth is wrong with unconditionally including
private/svn_debug.h from an implementation file? You had to remove those
includes only because you added that #error directove in svn_debug;
which is totally unnecessary. It should be perfectly safe and acceptable
for a Subversion C file to include svn_debug.h in a non-debug build.

Next: Same goes for your handling of SQLITE3_DEBUG.

Verdict: -1, please revert this change. The principle you quote above
can be served simply by requiring implementation files that happen to
think they need SVN_DBG to include private/svn_debug.h explicitly. In
any case, your change breaks things for any number of people who don't
compile with GCC.

-- Brane

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2415522
Received on 2009-11-08 07:31:16 CET

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.