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

Re: abort() calls

From: Blair Zajac <blair_at_orcaware.com>
Date: 2007-04-29 08:21:01 CEST

On Apr 28, 2007, at 8:55 PM, Jonathan Gilbert wrote:

> At 10:13 PM 4/28/2007 +0200, Brane wrote:
>> Stefan K√ľng wrote:
>>> Hi,
>>>
>>> In the Subversion code, there are a lot of calls to the abort()
>>> function. I think those should be removed and replaced with
>>> something
>>> else.
>>
>> Oh wow, you've gone and opened a can of worms that we've had trouble
>> closing in the past.
> [snip]
>> I'm willing to consider using something else instead of abort(). But
>> someone will have to come up with a proposal that works
>> everywhere, not
>> just in Windows GUI with just-in-time debugging.
>
> What about -- on platforms that support it -- allowing the project
> calling
> into the library to provide a jmp_buf to be longjmp()ed to instead of
> abort()ing, and replacing the abort() calls with calls to a wrapper
> function to pick between that and abort() if the user hasn't
> provided a
> jmp_buf (or the platform doesn't support it)?

How does this interact with C++ code and exceptions?

Regards,
Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<blair@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 29 08:21:17 2007

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.