Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!ucsd!ucbvax!UCBVAX.BERKELEY.EDU!"Dan Karron From: Dan Karron@UCBVAX.BERKELEY.EDU Newsgroups: comp.sys.sgi Subject: struck by typedef struct... Message-ID: <9012110834.AA02298@karron.med.nyu.edu> Date: 11 Dec 90 08:34:28 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: karron@cmcl2.nyu.edu Organization: The Internet Lines: 37 Not that this means that I cant work, but I notice this apparent (to my mind, anyway) inconsistancy: typedef struct MyTag { MyStruct a; void (*a_subroutine_transfer_address)(MyStruct *s); } MyStruct; This don't fly. typedef struct MyTag { struct MyTag a; void (*a_subroutine_transfer_address)(struct MyTag *); } MyStruct; This does. The argument list should take ansi prototypes, including typedefs and model arguments. What does the ANSI standard say about this...(This is really an arcane incantation) ? Cheers! dan. +-----------------------------------------------------------------------------+ | karron@nyu.edu (E-mail alias that will always find me) | | Fax: 212 340 7190 * Dan Karron, Research Associate | | . . . . . . . . . . . . . . * New York University Medical Center | | 560 First Avenue \*\ Pager <1> (212) 397 9330 | | New York, New York 10016 \**\ <2> 10896 <3> | | (212) 340 5210 \***\_________________________________________ | | Main machine: karron.med.nyu.edu (128.122.135.3) IRIS 85GT | +-----------------------------------------------------------------------------+