Path: utzoo!utgpu!attcan!uunet!mcvax!ukc!strath-cs!glasgow!orr From: orr@cs.glasgow.ac.uk (Fraser Orr) Newsgroups: comp.lang.c++ Subject: Re: .h-file extractor from c++ source file available? Keywords: include file extraction Message-ID: <1566@crete.cs.glasgow.ac.uk> Date: 10 Aug 88 12:52:48 GMT References: <2192@hplabsz.HPL.HP.COM> <168@vertical.oz> Reply-To: orr%cs.glasgow.ac.uk@nss.ucl.ac.uk (Fraser Orr) Organization: Comp Sci, Glasgow Univ, Scotland Lines: 45 In article <168@vertical.oz> greg@vertical.oz (Greg Bond) writes: >In article <2192@hplabsz.HPL.HP.COM> collins@hplabsz.HPL.HP.COM (Patricia Collins) writes: >Do you know of a utility for extracting include files from c++ source >files? I'm in the process of developing a tool to do this. It requires a complete reorganisation of your program (this is not an unfortunate side effect, but the original purpose of the tool was and is to help better organize your programs and documentation, the automatic insertion fo declarations etc is a fortunate side effect). The program is organised into a series of typed SECTIONs, that are labeled with an name and a few other pieces of information. This is followed by a USES line that declares which other sections contain things used by this section. The system then inserts the appripriate declarations (which it collects and coolates itself). As an example consider a section that declares a function to do a linear search through an array of type AnyType. Function Search Declaration int Search ( AnyType Target ) Uses AnyType TheArray int Search ( AnyType Target ) { int i ; for (i=0; i