Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!mit-eddie!bbn!rochester!ur-tut!ur-valhalla!galaxy.ee.rochester.edu!brown From: brown@galaxy.ee.rochester.edu (Eric Brown) Newsgroups: comp.lang.c++ Subject: Re: .h-file extractor from c++ source file available? Message-ID: <1417@valhalla.ee.rochester.edu> Date: 10 Aug 88 06:25:13 GMT References: <2192@hplabsz.HPL.HP.COM> <168@vertical.oz> Sender: usenet@valhalla.ee.rochester.edu Reply-To: brown@galaxy.ee.rochester.edu (Eric Brown) Organization: UR Dept. of Electrical Engg, Rochester NY 14627 Lines: 25 In article <168@vertical.oz> greg@vertical.oz (Greg Bond) writes: >What about a utility to extract ANSI/c++ typed function declarations? >I.e. given > char *fn(a, b, c) > int a; > double b; > char *c; > >produce > char *fn(int a, double b, char *c) > >Would need a fairly complete C grammar I would think. There is such a program - in fact I discovered it a year ago at work. It's called PrototypeMaker. Where can you get it you ask. Well, its for Lightspeed C on the Macintosh. As Lightspeed C has always required the strict prototyping as required in C++, it generates output exactly as you describe above. I do not know if it is public domain or not. -Eric. brown@galaxy.ee.rochester.edu broe@uhura.cc.rochester.edu