@@ -362,6 +362,23 @@ mi_decl_export void mi_collect_reduce(size_t target_thread_owned) mi_attr_noexce
362362#define mi_heap_recalloc_tp (hp,p,tp,n ) ((tp*)mi_heap_recalloc(hp,p,n,sizeof (tp)))
363363
364364
365+ // ------------------------------------------------------
366+ // Compatibility with v3
367+ // ------------------------------------------------------
368+
369+ typedef mi_heap_t mi_theap_t ;
370+
371+ #define mi_theap_get_default () mi_heap_get_default()
372+ #define mi_theap_set_default (hp ) mi_heap_set_default(hp)
373+ #define mi_theap_collect (hp,force ) mi_heap_collect(hp,force)
374+ #define mi_theap_malloc (hp,sz ) mi_heap_malloc(hp,sz)
375+ #define mi_theap_zalloc (hp,sz ) mi_heap_zalloc(hp,sz)
376+ #define mi_theap_calloc (hp,cnt,sz ) mi_heap_malloc(hp,cnt,sz)
377+ #define mi_theap_malloc_small (hp,sz ) mi_heap_malloc_small(hp,sz)
378+ #define mi_theap_malloc_aligned (hp,sz,a ) mi_heap_malloc_aligned(hp,sz,a)
379+ #define mi_theap_realloc (hp,p,newsz ) mi_heap_realloc(hp,p,newsz)
380+
381+
365382// ------------------------------------------------------
366383// Options
367384// ------------------------------------------------------
0 commit comments