[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (main_buf = *main_buf_p) is not syntacticly like (i = *j) ?



Shaul Karl <shaulka@bezeqint.net> writes:

> #include <setjmp.h>
> 
> int main()
> {
>     jmp_buf test_env;
>     jmp_buf *test_env_p = &test_env;
> 
>     test_env = *test_env_p;
>     return 0;
> }

I suspect that line 9 is the assignment before the return statement.
The assignment can be, and probably is, illegal: jmp_buf is not
a scalar type, but an array, and you cannot assign arrays.

-- 
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org 
If it ain't broken, it hasn't got enough features yet.

=================================================================
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