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

Re: svn commit: r31931 - in trunk/subversion: include libsvn_subr

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Mon, 30 Jun 2008 16:33:05 -0400

julianfoad_at_tigris.org writes:
> Log:
> Introduce a mechanism for reporting malfunctions in the Subversion libraries.
> This enables assertion failures and other "can't happen" scenarios to be
> detected with the simplicity of traditional "assert" and "abort" statements
> while also enabling these events to be caught and handled by the application
> if the application so chooses. The default behaviour is to print an error
> message to stderr and abort.

Yay!

> --- trunk/subversion/include/svn_error.h (r31930)
> +++ trunk/subversion/include/svn_error.h (r31931)
> @@ -295,6 +295,104 @@ void svn_handle_warning(FILE *stream, sv
> err->apr_err == SVN_ERR_RA_NOT_LOCKED || \
> err->apr_err == SVN_ERR_FS_LOCK_EXPIRED)
>
> [...]
>
> +/** Helper function for the macros that report malfunctions. */
> +svn_error_t *
> +svn_error__malfunction(const char *file, int line, const char *expr);

Real doc string? (Even for helper functions.)

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-06-30 22:33:58 CEST

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.