Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fixed licence and copyright. No more reference to da GRAS possee or the
[simgrid.git] / include / xbt / misc.h
index be295b5..98e18f9 100644 (file)
@@ -2,11 +2,10 @@
 
 /* xbt.h - Public interface to the xbt (gras's toolbox)                   */
 
-/* Authors: Martin Quinson                                                  */
-/* Copyright (C) 2004 the OURAGAN project.                                  */
+/* Copyright (c) 2004 Arnaud Legrand. 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. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 #ifndef XBT_MISC_H
 #define XBT_MISC_H
@@ -44,6 +43,19 @@ typedef struct {
    int port;
 } 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
 
 #endif /* XBT_MISC_H */