home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5725 < prev    next >
Encoding:
Text File  |  1992-09-04  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!stephsf.com!wengland
  3. From: wengland@stephsf.com (Bill England)
  4. Subject: Re: C cross referencer (was Re: locsym)
  5. References: <1992Aug.163742.18050@abigale.uucp> <22274@venera.isi.edu>
  6. Message-ID: <1992Sep3.184615.4144@stephsf.com>
  7. Date: Fri, 4 Sep 1992 01:46:15 GMT
  8. Organization: Stephen Software Systems Inc., Tacoma/Seattle, +1 800 829 1684
  9. X-Bytes: 1373
  10. Lines: 30
  11.  
  12. In article <22274@venera.isi.edu> rod@venera.isi.edu (Rodney Doyle Van Meter III) writes:
  13. >[...]
  14. >
  15. >The next tool I'm looking for is a C cross referencer that will
  16. >handle ANSI syntax.  Perl is the obvious choice for writing
  17. >such a tool; has anyone done it?  I invested about two hours
  18. >in an extremely primitive one myself, but I don't want to
  19. >reinvent the wheel if somebody has designed and written one
  20. >already.
  21.  
  22.    Hmm, I'm not sure what you mean by "handle ANSI syntax."
  23.    The easy way is to let your C compiler do the work and then
  24.    pull the symbols out of the object files and libraries.
  25.  
  26.    The current version of GCC will produce "file.X" output
  27.    that includes all function calls to a program, (properly
  28.    protoized even. )  I did hack a quick perl function
  29.    to combine a bunch of .X's into a single prototype.h file 
  30.    for an application.  -I'll try and post that tomorrow-
  31.  
  32. >I like to use it as I'm writing. cxref supplied w/ SunOS
  33. >barfs on my ragged code, and can't handle ANSI.
  34.  
  35.    True.  Which compiler are you using on your Sun?
  36. -- 
  37.  +-  Bill England,  wengland@stephsf.COM -----------------------------------+
  38.  |   * *      H -> He +24MeV                                                |
  39.  |  * * * ... Oooo, we're having so much fun making itty bitty suns *       |
  40.  |__ * * ___________________________________________________________________| 
  41.