void *MYMALLOC(size_t size);
void MYFREE(void *ptr);
-
/*
The following code example is taken from the book
The C++ Standard Library - A Tutorial and Reference
by Nicolai M. Josuttis, Addison-Wesley, 1999
© Copyright Nicolai M. Josuttis 1999
+Permission to copy, use, modify, sell and distribute this software
+is granted provided this copyright notice appears in all copies.
+This software is provided "as is" without express or implied
+warranty, and with no claim as to its suitability for any purpose.
*/
template <class T>
class MyAlloc {
return false;
}
-
#ifdef __cplusplus
extern "C" {
#endif
extern void mspace_free(mspace msp, void* mem);
extern mspace create_mspace_with_base(void* base, size_t capacity, int locked);
extern mspace create_mspace(size_t capacity, int locked);
+extern mspace mySpace;
#ifdef __cplusplus
}; /* end of extern "C" */
#endif