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
While testing how to parse C and C++ code for function prototypes from a plugin
(see http://gcc.gnu.org/ml/gcc/2010-12/msg00179.html)
I noticed that print_generic_decl() seems to output wrong data.
Consider the following function definition:
--
void barfunc (int foo, int abc, ..