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 void*      Realloc(void* ptr, size_t size);
    static NS_EXPORT void       Free(void* ptr);
    static NS_EXPORT nsresult   HeapMinimize(PRBool aImmediate);
    static NS_EXPORT void*      Clone(const void* ptr, 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.

Ken



Reply via email to