[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 1267 - trunk/subversion/include trunk/subversion/libsvn_subr

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-02-14 00:43:37 CET

On Wed, Feb 13, 2002 at 04:45:14PM -0600, brane@tigris.org wrote:
>...
> +/* XXX FIXME: These should be protected by a thread mutex.
> + svn_error__locate and make_error_internal should cooperate
> + in locking and unlocking it. */
> +static const char *error_file = NULL;
> +static long error_line = -1;
> +void
> +svn_error__locate (const char *file, long line)
> +{
> +#ifdef SVN_DEBUG
> + /* XXX TODO: Lock mutex here */
> + error_file = file;
> + error_line = line;
> +#endif
> +}

Woah!

Why don't we just pass these values into the functions. I'd *much* prefer
that over this global variable hackage...

The createf() thing?

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 Sat Oct 21 14:37:07 2006

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.