🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1161

Re: Extract function names

#1161
From: Keith Cantrell
Date: Mon, 17 Sep 1990 18:52
51 lines
2285 bytes
In article <4cc48e05.12c9a@digital.sps.mot.com> chen@digital.sps.mot.com (Jinfu Chen) writes:
>I'm looking for a tool to extract names of function call in C files. A
>typical use of it is to build a cross-reference list for function calls. For
>example, given source files of RN, I would like to find out which file the
>ngdata_init() call is defined (and optionally) used.
>
>Shell scripts (including perl) are welcome.
>
>-- 
>Jinfu Chen                  (602)898-5338 
>Motorola, Inc.  SPS  Mesa, AZ
> ...uunet!motsps!digital!chen
>chen@digital.sps.mot.com
>CMS: RXFR30 at MESAVM
>----------

There was a program posted a while back (as in server years ago) call 'id'
that does an excellent job of exactly what you want.  It was written by
Greg McGary.  At the bottom of a README file I found the following:

-- Greg McGary
-- P.O. Box 286
-- Lincoln, MA  01773
--
-- 9/15/87
--
--     Until the end of 1987,
--     Consulting to Sun's East Coast Division:
--             gmcgary@ecd.sun.com
--             gmcgary@suneast.uu.net
--
--     After that, probably consulting in Europe...


so I am not sure what the current status of this program is.  This program
does have a copyright notice on it, so I don't just want to posted it
unless someone can convince me that I want get into any trouble :-).

Type at you later,

Keith Cantrell

-----------------------------------------------------------------------
Keith Cantrell                    Phones:  hm: 214-492-1088
Apollo Computer                            wk: 214-519-2399 @ DSC 
A Subsidiary of Hewlett-Packard
USMAIL:                          EMAIL:
2100 Sonata Ln                   kcantrel@digi.lonestar.org
Carrollton TX 75007                           or
                                  ...!uunet!digi!kcantrel
-----------------------------------------------------------------------
Technical Details
Message-ID: <984@digi.lonestar.org>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!newstop!texsun!digi.lonestar.org!kcantrel
References: <4cc48e05.12c9a@digital.sps.mot.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!newstop!texsun!digi.lonestar.org!kcantrel
From: kcantrel@digi.lonestar.org (Keith Cantrell)
Newsgroups: comp.unix.shell
Subject: Re: Extract function names
Message-ID: <984@digi.lonestar.org>
Date: 17 Sep 90 18:52:31 GMT
References: <4cc48e05.12c9a@digital.sps.mot.com>
Organization: DSC Communications, Plano Tx.
Lines: 51