cvs.gedasymbols.org/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | Elliott Oti <oti AT phys DOT uu DOT nl> |
Subject: | Re: recursive structures? |
Sender: | usenet AT phys DOT uu DOT nl (News system Tijgertje) |
Message-ID: | <Pine.OSF.4.03.9811142135390.17232-100000@ruunat.phys.uu.nl> |
In-Reply-To: | <364DD66B.3CB7DAD1@nospam.student.tue.nl> |
Date: | Sat, 14 Nov 1998 20:36:38 GMT |
X-Nntp-Posting-Host: | ruunat.phys.uu.nl |
References: | <364DD66B DOT 3CB7DAD1 AT nospam DOT student DOT tue DOT nl> |
Mime-Version: | 1.0 |
Organization: | Physics and Astronomy, University of Utrecht, The Netherlands |
Lines: | 30 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Sat, 14 Nov 1998, Wouter Bijlsma wrote: > Hi, > > How can I define a recursive structure without getting parse errors or > 'incomplete data type' errors? > > typedef struct { > unsigned Tag; > Plane *RootPlane; > BSPNode *FrontNode,BackNode; > Polygon *Polygons; > } BSPNode; > > This does *not* work.... typedef struct _BSPNode { unsigned Tag; Plane *RootPlane; _BSPNode *FrontNode, *BackNode; Polygon *Polygons; } BSPNode; Cheers, Elliott Oti http://www.fys.ruu.nl/~oti Eh? Where's my sig?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |