On 14.12.2011 02:10, Igor Stasenko wrote:
On 14 December 2011 01:17, Fernando Olivero<fernando.oliv...@usi.ch>  wrote:
Igor, is this a bug?

When parsing methods that send native functions withouth arguments ,
void, theres a DNU.
For example in the following method:

^ self pangoCairoNbCall:#(PangoCairoFontMap
pango_cairo_font_map_get_default ( void ) )


I fixed it like this:

usesMethodArguments
"first check wether my single argument is void"
^(fnSpec arguments size = 1 ==>  [fnSpec arguments first class ~=
NBVoid]) and:[ fnSpec arguments anySatisfy: [:type | type loader
usesSTStack ] ]


Well, the function signature syntax are not strictly following C.
Just use empty parens for functions with no arguments. This is quite
archaic C syntax, which is really not important to support.

Or i can add this patch if you insist. :)

So you would say f.ex.
http://david.tribble.com/text/cdiffs.htm#C99-empty-parm
is incorrect?

Cheers,
Henry

Reply via email to