Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!ukc!warwick!geoff From: geoff@cs.warwick.ac.uk (Geoff Rimmer) Newsgroups: comp.lang.c Subject: Re: mutual reference in structures Message-ID: <1822@ubu.warwick.UUCP> Date: 5 May 89 16:53:46 GMT References: <6712@medusa.cs.purdue.edu> Sender: news@warwick.UUCP Organization: Computer Science, Warwick University, UK Lines: 33 In-reply-to: bouma@cs.purdue.EDU's message of 4 May 89 23:12:32 GMT In article <6712@medusa.cs.purdue.edu> bouma@cs.purdue.EDU (William J. Bouma) writes: > Please tell me how to get C to accept the following or equivalent code: > > typedef union a { > b_ *pb; > } a_; > > typedef struct b { > a_ va; > } b_; > > Bill || ...!purdue!bouma typedef union a { struct b *pb; } a_; typedef struct b { a_ va; } b_; Geoff /---------------------------------------------------------------\ | GEOFF RIMMER - Friend of fax booths, ANSI C, PCBH, | | American Cable TV & MPFC & VCRs | | email : geoff@uk.ac.warwick.emerald | | address : Computer Science Dept, Warwick University, | | Coventry, England. | | PHONE : +44 203 692320 (10 lines) | | FAX : +44 865 726753 | \---------------------------------------------------------------/