[net.lang.c] What is setjmp... Clarification

paul@ism780b.UUCP (10/04/84)

***** ism780b:net.lang.c / apollo!nazgul /  4:46 pm  Oct  2, 1984
>...the only thing that bugs me is
>the way typedef works, which is essentially as a #define.  For
>example:
>-----------------------------------------------------------------------
>#include <stdio.h>
>#include <setjmp.h>
>
>main()
>{
>    jmp_buf foo, *tmp;
>
>    tmp = &foo;
>}
>$ cc foo
>
> (0008)     tmp = &foo;
>******** Line 8: Warning:  Illegal pointer combination: incompatible types.
>No errors, 1 warning, C Compiler, Rev 2.40
-------------------------------------------------------------------------
On System III, at least, the compiler also mentions that it is ignoring
the "&"!  Don't blame typedef, blame the peculiar (to be kind) semantics
associated with array names in C.

Paul Perkins    --      INTERACTIVE Systems
USENET:     {ihnp4|allegra|harvard|amd}!ima!paul
	    decvax!cca!ima!paul
	    harpo!inmet!ima!paul
	    ucbvax!cbosgd!ima!paul
	    {uscvax|ucla-vax|vortex}!ism780!paul

"Welcome to the Future; we're glad you made it!"