[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (main_buf = *main_buf_p) is not syntacticly like (i = *j) ?
- To: Shaul Karl <shaulka(at-nospam)bezeqint.net>
- Subject: Re: (main_buf = *main_buf_p) is not syntacticly like (i = *j) ?
- From: Adi Stav <stav(at-nospam)actcom.co.il>
- Date: Tue, 3 Jul 2001 23:16:55 +0300
- Cc: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <E15HB0v-0003T6-00@rakefet>; from shaulka@bezeqint.net on Tue, Jul 03, 2001 at 12:13:47AM +0300
- Mail-Followup-To: Shaul Karl <shaulka@bezeqint.net>, linux-il@linux.org.il
- References: <E15HB0v-0003T6-00@rakefet>
- Sender: Adi Stav <adi(at-nospam)stav.org.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.2.5i
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 linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il