X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5a97de8c98502af9f74cfceb924fa02e0fd80925..afb806d0615c22ac119575596b71691f4e2bc9d1:/src/mc/mc_mmalloc.h diff --git a/src/mc/mc_mmalloc.h b/src/mc/mc_mmalloc.h index 4ceecbd9df..9fe096893e 100644 --- a/src/mc/mc_mmalloc.h +++ b/src/mc/mc_mmalloc.h @@ -1,12 +1,13 @@ -/* Copyright (c) 2007-2014. The SimGrid Team. +/* Copyright (c) 2007-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef MC_MMALLOC_H -#define MC_MMALLOC_H +#ifndef SIMGRID_MC_MMALLOC_H +#define SIMGRID_MC_MMALLOC_H +#include #include /** file @@ -16,9 +17,8 @@ * Normally the system should operate in std, for switching to raw mode * you must wrap the code between MC_SET_RAW_MODE and MC_UNSET_RAW_MODE. */ - -extern xbt_mheap_t std_heap; -extern xbt_mheap_t mc_heap; + +SG_BEGIN_DECL() /* FIXME: Horrible hack! because the mmalloc library doesn't provide yet of */ /* an API to query about the status of a heap, we simply call mmstats and */ @@ -32,7 +32,6 @@ extern xbt_mheap_t mc_heap; /* size_t bytes_free; /\* Byte total of chunks in the free list. *\/ */ /* }; */ -#define MC_SET_MC_HEAP mmalloc_set_current_heap(mc_heap) -#define MC_SET_STD_HEAP mmalloc_set_current_heap(std_heap) +SG_END_DECL() #endif