3 /* xbt.h - Public interface to the xbt (gras's toolbox) */
5 /* Authors: Martin Quinson */
6 /* Copyright (C) 2004 the OURAGAN project. */
8 /* This program is free software; you can redistribute it and/or modify it
9 under the terms of the license (GNU LGPL) which comes with this package. */
14 #define max(a, b) (((a) > (b))?(a):(b))
15 #define min(a, b) (((a) < (b))?(a):(b))
20 #define XBT_MAX_CHANNEL 10 /* FIXME: killme */
21 /*! C++ users need love */
24 # define BEGIN_DECL extern "C" {
30 /*! C++ users need love */
38 /* End of cruft for C++ */
41 /* Dunno where to place this: needed by config and amok */
47 /* pointer to a function freeing something */
48 typedef void (void_f_ppvoid_t)(void**);
49 typedef void (void_f_pvoid_t) (void*);
51 /* The following two definitions concern the type of the keys used for
52 the heaps. That should be handled via configure (FIXME). */
53 typedef long double xbt_heap_float_t;
54 #define XBT_HEAP_FLOAT_T "%Lg" /* for printing purposes */
56 typedef long double xbt_maxmin_float_t;
57 #define XBT_MAXMIN_FLOAT_T "%Lg" /* for printing purposes */
62 #endif /* XBT_MISC_H */