Couple of bugs

Tom Hughes tom at compton.nu
Fri Sep 21 10:41:38 BST 2007


In message <e5d2bd254f.Jo at hobbes.bass-software.com>
        John Tytgat <John.Tytgat at aaug.net> wrote:

> In message <dc92b6224f.christian at venice.lab>
>           Christian Ludlam <christian at recoil.org> wrote:
>
>> * draganobject_function is an anonymous structure, which means Norcroft
>>   generates "cast between function and non-function" warnings. Does DefMod
>>   not provide a "function" fundamental type?
>
> It does.  The "function" type is also used in the PCI swi interface file
> but it is not clear to me if this is the same APCS interface as for
> DragAnAobject swi.

The problem is that DefMod doesn't have a syntax to fully describe
functions and their arguments so it can't spit out a proper prototype
and instead the function type in DefMod is just mapped to void * in
the C output I think.

A lot of the function points taken by SWIs are not very amenable to
being represented as C prototypes anyway I suspect...

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/



More information about the oslib-user mailing list