httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Finch <...@dotat.at>
Subject Re: [APR] Universal return syntax
Date Tue, 26 Jan 1999 12:22:05 GMT
Dean Gaudet <dgaudet@arctic.org> wrote:
>
>Yeah, it's really unfortunate that setjmp is as it is.  There's a lot less
>expensive ways to get similar functionality.  Really all that's required
>is "unwind the stack", saving registers so they can be restored is a waste
>of time if you're using it for error conditions. 

Not only that, but since setjmp/longjmp have nasty interactions with
what goes on with the locals in the intervening time the fact that the
registers are saved & restored is usually fairly useless.

>There's nothing stopping you from defining your own globals ;)

Apart from thread safety, perhaps.

Tony.
-- 
f.a.n.finch  dot@dotat.at  fanf@demon.net

Mime
View raw message