[comp.lang.c] Automatic prototype generator

mnc@m10ux.UUCP (Michael Condict) (03/14/89)

I received several comments and bug reports on my sed scripts that
automatically generate function prototype declarations from old-style
function definitions.  This indicated sufficient interest so that I
decided to fix the bugs and make the thing portable to all major versions
of UNIX (yes, they all have different quirks in their sed's).  I've
now got it ready for anyone who wants it.  System V users have to delete
the comments from the sed scripts, but that's all (I removed the other
incompatibilities.)  Sun and BSD people can use as is.

If someone will send me one of those silly little shell archive makers,
I'll post the latest version to comp.unix.sources, otherwise, I'll mail
a copy to anyone who requests one (offer is limited to the first 100
requestors).

The latest enhancements are that it can handle [] in type declarations,
as well as * and struct/union, etc.  Still can't handle declarations that
use parens.  These are rare except for args that are function pointers.
Also, it now outputs f(void) for argless functions, instead of f().
-- 
Michael Condict		{att|allegra}!m10ux!mnc
AT&T Bell Labs		(201)582-5911    MH 3B-416
Murray Hill, NJ