Path: utzoo!attcan!uunet!mcvax!ukc!warwick!geoff From: geoff@warwick.UUCP (Geoff Rimmer) Newsgroups: comp.lang.c Subject: Wanted - Auto function prototype generator Message-ID: <943@ubu.warwick.UUCP> Date: 23 Jan 89 08:09:25 GMT References: <1989Jan18.092522.14499@gpu.utcs.toronto.edu> Sender: news@warwick.UUCP Reply-To: geoff@emerald.UUCP (Geoff Rimmer) Organization: Computer Science, Warwick University, UK Lines: 28 Has anyone written, or are they in the middle of writing a program that vaguely fits the following description? The program should scan thru a set of C source files, checking each function definition. If the function is extern, it should place a function prototype in the relevant header file (if it was in foo.c, put the proto in foo.h). If the function is static, it should place a prototype at the top of that .c file. In fact, why not go a stage further, and make it check which functions call which other functions, and hence put the necessary #include lines at the head of each source file. Can this be done? Or is it just pie in the ozone layer? Geoff ------------------------------------------------------------ Geoff Rimmer, Computer Science, Warwick University, England. geoff@uk.ac.warwick.emerald "Not work then?" "No, my Dad's dying." [shrug] "Your Dad's dying? This could be tre`s bona news." "Filthy, I must say I find your at a trifle cal." - Filthy Rich and Catflap, 1986. ------------------------------------------------------------