3 /* xbt.h - Public interface to the xbt (gras's toolbox) */
5 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
13 #define max(a, b) (((a) > (b))?(a):(b))
14 #define min(a, b) (((a) < (b))?(a):(b))
19 #define XBT_MAX_CHANNEL 10 /* FIXME: killme */
20 /*! C++ users need love */
23 # define BEGIN_DECL extern "C" {
29 /*! C++ users need love */
37 /* End of cruft for C++ */
40 /* Dunno where to place this: needed by config and amok */
46 /* pointer to a function freeing something */
47 typedef void (void_f_ppvoid_t)(void**);
48 typedef void (void_f_pvoid_t) (void*);
50 /* The following two definitions concern the type of the keys used for
51 the heaps. That should be handled via configure (FIXME). */
52 typedef long double xbt_heap_float_t;
53 #define XBT_HEAP_FLOAT_T "%Lg" /* for printing purposes */
55 typedef long double xbt_maxmin_float_t;
56 #define XBT_MAXMIN_FLOAT_T "%Lg" /* for printing purposes */
61 #endif /* XBT_MISC_H */