From owner-freebsd-hackers Wed Apr 16 13:21:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA25429 for hackers-outgoing; Wed, 16 Apr 1997 13:21:29 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id NAA25396 for ; Wed, 16 Apr 1997 13:21:24 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id WAA07563 for hackers@freebsd.org; Wed, 16 Apr 1997 22:21:22 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id WAA04128; Wed, 16 Apr 1997 22:14:10 +0200 (MET DST) Message-ID: <19970416221410.DA50904@uriah.heep.sax.de> 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 ? References: <9704160922.AA06376@phi.Sinica.EDU.tw> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9704160922.AA06376@phi.Sinica.EDU.tw>; from Yen-Wei Liu on Apr 16, 1997 17:22:07 +0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. ;-)