let us set the size of the heap in a sane way
[c11tester.git] / mymemory.h
index 481e081e380942bec5333b00a2b3de7bf1ef5404..2bec138381e45768d9d6f2129824eca9ebdc23e9 100644 (file)
 
 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 {
@@ -105,7 +108,6 @@ template <class T>
      return false;
  }
 
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -114,6 +116,7 @@ extern void* mspace_malloc(mspace msp, size_t bytes);
 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