home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume35 / prpp / part01 / prpp.readme < prev   
Encoding:
Text File  |  1993-02-21  |  1.0 KB  |  25 lines

  1. prpp - Prototype Pre-preprocessor
  2.  
  3. "Well-written" C source code uses function prototypes, so the header that
  4. declares the prototype should be #included.  On my system at least, the manual
  5. pages often do not tell you what header to include, so I whipped up this program
  6. to help work around this problem.  Prpp reads C headers and only spits out the
  7. function prototypes from the header.  Then you can run the program on all your
  8. headers, and have all the prototypes from all the headers in a single file,
  9. so you can grep through them.  The program only works on header (.h) files --
  10. don't run it on source (.c) files.
  11.  
  12. After using the enclosed script to generate the file, you can use the other
  13. enclosed script "prlook" to find prototypes.  For example, here's what I get
  14. when I "prlook perror":
  15.  
  16. <X11/Xlibos.h> 165:  void perror();
  17. <errno.h> 47:  void perror(const char *);
  18. <stdio.h> 176:  void perror(const char *);
  19. <rpc/clnt.h> 310:  void clnt_perror(CLIENT *, const char *);
  20. <rpc/clnt.h> 311:  char *clnt_sperror(CLIENT *, const char *);
  21.  
  22. Comments welcome,
  23. Mike Gleason
  24.  
  25.