Hello
> I found another instance of this. nsMemory. It is defined as:
> class nsMemory
> {
> public:
>     static NS_EXPORT void*      Alloc(size_t size);
>     static NS_EXPORT nsIMemory* GetGlobalMemoryService();       // AddRefs
> };
> 
> What would be nice would be, again, a C function wrapper around these guys
> so that they can be linked to in a compiler independant fashion.
There are plenty of then - nsString, nsVoidArray, nsVoidBTree etc... 
What you propose is to declare *everything* as an interface and create a C API 
function to create some of them - sort of hardcoded class factory. But I think 
nsIString is not what we have in mind :) So using mozilla with different 
compiler is a pure theory... 

-- 
--
Regards,
Waleri

Reply via email to