> The code should handle all variations of functions such as
> void and varargs.
> If you come across a crash or case where compilation breaks,
> let me know.
Attached is a small patch that fixes one minor bug +
makes the documentation consistant with offical
and unoffical (or rather commonly used)
documentation guidelines.
> In some cases prototypes cannot be found when they are
> present, but the
> average seems to be very high (Patrik, I'll be sending some
> examples soon).
Good.
> running it on CRTDLL, for example, leaves only 107 out of 521
> functions as
> stubs, and a lot of those just dont have definitions in the headers...
OK, some comments. Your application is quite slow because it calls
my application once for each function.
This can be fixed by giving it all functions you need in one call by doing
./function_grep '^(Function1|Function2|Function3)$' header.h
but it will give a slightly more complex semantics on your side.
The advantage of doing this is since when I know the names of the functions
wanted I can use a slightly more clever heuristics that will catch more
cases. This is not implemented yet however.
Perhaps it is not worth the effort, it depends. Just a thought.
specmaker.diff