struck by typedef struct...

DanKarron at UCBVAX.BERKELEY.EDU DanKarron at UCBVAX.BERKELEY.EDU
Tue Dec 11 19:34:28 AEST 1990


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 at 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> <your-number-here>  |
| (212) 340 5210               \***\_________________________________________ |
| Main machine: karron.med.nyu.edu (128.122.135.3) IRIS 85GT                  |
+-----------------------------------------------------------------------------+



More information about the Comp.sys.sgi mailing list