Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!flute.cs.uiuc.edu!grunwald From: grunwald@flute.cs.uiuc.edu (Dirk Grunwald) Newsgroups: comp.lang.c++ Subject: Re: munch Message-ID: Date: 31 Jul 89 21:21:25 GMT References: <24096@genrad.UUCP> <9698@alice.UUCP> <218@ssp1.idca.tds.philips.nl> Sender: news@brutus.cs.uiuc.edu Reply-To: grunwald@flute.cs.uiuc.edu Organization: University of Illinois, Urbana-Champaign Lines: 26 In-reply-to: roelof@idca.tds.PHILIPS.nl's message of 31 Jul 89 15:50:29 GMT In article <218@ssp1.idca.tds.philips.nl> roelof@idca.tds.PHILIPS.nl (R. Vuurboom) writes: For (1) allow extern declarations (used as forward references) to determine construction order: extern int you; extern int me; -- unless you mung the symbols into some other name, munch, which reads `nm' output won't see them in the same order. You could do something like: void *StaticConstructorOrder = { (void *) &you, (void *) &me }; and have munch look for StaticConstructorOrder. -- Dirk Grunwald -- Univ. of Illinois (grunwald@flute.cs.uiuc.edu)