X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e38d01e7b27d128a6d756194166ce8e0445a33b2..ffcbccef3ac04b965677cd5c55192b3eb104d6f4:/include/xbt/misc.h?ds=sidebyside diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 7cb25f54e9..af16b984b4 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -17,7 +17,7 @@ #define TRUE 1 #define FALSE 0 -#define GRAS_MAX_CHANNEL 10 /* FIXME: killme */ +#define XBT_MAX_CHANNEL 10 /* FIXME: killme */ /*! C++ users need love */ #ifndef BEGIN_DECL # ifdef __cplusplus @@ -42,7 +42,20 @@ BEGIN_DECL typedef struct { char *name; int port; -} gras_host_t; +} xbt_host_t; + +/* pointer to a function freeing something */ +typedef void (void_f_ppvoid_t)(void**); +typedef void (void_f_pvoid_t) (void*); + +/* The following two definitions concern the type of the keys used for + the heaps. That should be handled via configure (FIXME). */ +typedef long double xbt_heap_float_t; +#define XBT_HEAP_FLOAT_T "%Lg" /* for printing purposes */ + +typedef long double xbt_maxmin_float_t; +#define XBT_MAXMIN_FLOAT_T "%Lg" /* for printing purposes */ + END_DECL