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

Re: svn commit: rev 3023 - trunk/subversion/include

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-08-23 02:32:51 CEST

On Thu, Aug 22, 2002 at 03:20:49PM -0500, kfogel@tigris.org wrote:
>...
> +++ trunk/subversion/include/svn_error_codes.h Thu Aug 22 15:20:46 2002
> @@ -221,6 +221,10 @@
> SVN_ERR_ENTRY_CATEGORY_START + 0,
> "Can't find an entry")
>
> + SVN_ERRDEF (SVN_ERR_ENTRY_UNUSED_1,
> + SVN_ERR_ENTRY_CATEGORY_START + 1,
> + "Unused error code -- feel free to redefine me")
> +

Eek! If we have a hole, then let's just leave a comment rather than actually
*defining* an error. For two reasons:

1) the above is hard to recognize as "unused" with a quick visual scan
2) the above form defines a string constant, increasing the size of the app
   [a nit, but avoiding "bloat" is always nice]

I would recommend something simple like:

    /* UNUSED: + 1 */

APR uses lines like:

/* empty slot: +3 */

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 23 02:28:37 2002

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.