home *** CD-ROM | disk | FTP | other *** search
- prpp - Prototype Pre-preprocessor
-
- "Well-written" C source code uses function prototypes, so the header that
- declares the prototype should be #included. On my system at least, the manual
- pages often do not tell you what header to include, so I whipped up this program
- to help work around this problem. Prpp reads C headers and only spits out the
- function prototypes from the header. Then you can run the program on all your
- headers, and have all the prototypes from all the headers in a single file,
- so you can grep through them. The program only works on header (.h) files --
- don't run it on source (.c) files.
-
- After using the enclosed script to generate the file, you can use the other
- enclosed script "prlook" to find prototypes. For example, here's what I get
- when I "prlook perror":
-
- <X11/Xlibos.h> 165: void perror();
- <errno.h> 47: void perror(const char *);
- <stdio.h> 176: void perror(const char *);
- <rpc/clnt.h> 310: void clnt_perror(CLIENT *, const char *);
- <rpc/clnt.h> 311: char *clnt_sperror(CLIENT *, const char *);
-
- Comments welcome,
- Mike Gleason
-
-