wrong output of print_generic_decl() called from a plugin
Joachim Wieland
joe@mcknight.de
Wed Dec 8 21:26:00 GMT 2010
On Wed, Dec 8, 2010 at 1:52 PM, I wrote:
> This outputs "static void barfunc (int);" but the function is neither
> static nor does it expect only one int parameter...
here's another example where print_generic_decl() fails:
-----------------------
typedef void (*Handler)( int , void * );
Handler GetFunctionPointer();
-----------------------
This would output "extern void (*Handler) (int, void *)
GetFunctionPointer (void);"
Any other function I could use that is more reliable?
Thanks,
Joachim
More information about the Gcc
mailing list