Scott Moser - 2001-10-25

I don't know if this is possible or not, but I'm trying to get a list of all the functions in a given  .h file.
Right now, heres what I'm doing:
   cproto -x gtkbutton.h

That will list some the functions defined in gtkbutton.h, but will complain about not finding the header files, and won't list functions that have types defined in other included files. (ie 'GtkType        gtk_button_get_type       (void);' will give 'GtkType undefined' error, and won't be listed to stdout).

However, if I give it the -I flags required to find the include files:

cproto `gtk-config --cflags` -x gtkbutton.h

then it will list 1155 functions that are mostly defined in other included files.  Is there a way that I can get it to only list those explicitly defined in that one .h file, either by an 'ignore undefined types' flag, or getting a marker at the end of the functions found in #include'd files?