Date: Wed, 16 Apr 1997 22:14:10 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.org Subject: Re: How to extract function prototypes from source code ? Message-ID: <19970416221410.DA50904@uriah.heep.sax.de> In-Reply-To: <9704160922.AA06376@phi.Sinica.EDU.tw>; from Yen-Wei Liu on Apr 16, 1997 17:22:07 %2B0800 References: <9704160922.AA06376@phi.Sinica.EDU.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
As Yen-Wei Liu wrote: > I do remember there is a switch in GCC that can extract function > prototypes (declarations) from source code to a seperate file so > it's easier to build up header files, but however I cannot find it > anymore. protoize(1) is the tool that uses this switch: j@uriah 76% locate protoize.c /usr/src/contrib/gcc/protoize.c /usr/src/contrib/gcc/unprotoize.c ...so you only gotta build it. Btw., ``-aux-info'' is the switch to gcc (but i didn't remember either, i just ran strings(1) on protoize :). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970416221410.DA50904>