Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!ima!ism780b!paul From: paul@ism780b.UUCP Newsgroups: net.lang.c Subject: Re: Re: What is setjmp... Clarification Message-ID: <47@ism780b.UUCP> Date: Thu, 4-Oct-84 00:29:01 EDT Article-I.D.: ism780b.47 Posted: Thu Oct 4 00:29:01 1984 Date-Received: Fri, 5-Oct-84 06:12:36 EDT Lines: 0 Nf-ID: #R:apollo:2075186296:ism780b:25500022:000:1024 Nf-From: ism780b!paul Oct 3 09:11:00 1984 ***** 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>#include > >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!"