if(enable_model-checking AND HAVE_MMAP)
SET(HAVE_MC 1)
- SET(MMALLOC_WANT_OVERIDE_LEGACY 1)
+ SET(MMALLOC_WANT_OVERRIDE_LEGACY 1)
else(enable_model-checking AND HAVE_MMAP)
SET(HAVE_MC 0)
- SET(MMALLOC_WANT_OVERIDE_LEGACY 0)
+ SET(MMALLOC_WANT_OVERRIDE_LEGACY 0)
endif(enable_model-checking AND HAVE_MMAP)
#--------------------------------------------------------------------------------------------------
#endif
#endif
/* Set to true if enable_model-checking is true */
-#cmakedefine MMALLOC_WANT_OVERIDE_LEGACY @MMALLOC_WANT_OVERIDE_LEGACY@
+#cmakedefine MMALLOC_WANT_OVERRIDE_LEGACY @MMALLOC_WANT_OVERRIDE_LEGACY@
#cmakedefine HAVE_MC @HAVE_MC@
/* Set to true if have the mergesort function */
/*
- * All the callback lists that can be overiden anywhere.
+ * All the callback lists that can be overridden anywhere.
* (this list should probably be reduced to the bare minimum to allow the models to work)
*/
__mmalloc_current_heap = new_heap;
}
-#ifdef MMALLOC_WANT_OVERIDE_LEGACY
+#ifdef MMALLOC_WANT_OVERRIDE_LEGACY
void *malloc(size_t n)
{
xbt_mheap_t mdp = __mmalloc_current_heap ?: (xbt_mheap_t) mmalloc_preinit();
static void xbt_preinit(void)
{
-#ifdef MMALLOC_WANT_OVERIDE_LEGACY
+#ifdef MMALLOC_WANT_OVERRIDE_LEGACY
mmalloc_preinit();
#endif
xbt_log_preinit();
xbt_os_thread_mod_postexit();
free(xbt_binary_name);
-#ifdef MMALLOC_WANT_OVERIDE_LEGACY
+#ifdef MMALLOC_WANT_OVERRIDE_LEGACY
mmalloc_postexit();
#endif
}