[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: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 30 Jun 2008 22:05:25 +0100

On Mon, 2008-06-30 at 16:33 -0400, Karl Fogel wrote:
> 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.)

Ah, yes, of course... Coming right up.

r31934.

Thanks.
- Julian

---------------------------------------------------------------------
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 23:05:47 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.