On Tue, Jul 03, 2001 at 12:13:47AM +0300, Shaul Karl wrote:
> Thank you for the responses.
> What I have done wrong is already pointed out.
> If you are curious what I am trying to do:
>
> 1. I wanted to have jmp_buf* passed as a function parameter in order to avoid
> a global variable. Therefore, in the function body I had to use a local
> variable and initialize it with this pointer:
> jmp_buf local_variable = *function_paramter;
You're using jmp_buf as an exception throwing mechanism. I'd say it WOULD
make sense to have jmp_buf a global (or per-thread, yuck) variable, since
exceptions are global by nature.
It would be also more portable, unless the standard mandates that jmp_buf
is an array -- anyone happens to know if it does?
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]