Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move the asserts out of error.h in order to kill it afterward
[simgrid.git] / include / xbt / sysdep.h
index b405a7a..e6bec9d 100644 (file)
 
 #include <string.h>
 #include <stdlib.h> 
+#include <stdio.h>
+#include <stdarg.h> /* va_list */
    
 #include "xbt/misc.h"
-#include "xbt/error.h"
+#include "xbt/asserts.h"
   
 BEGIN_DECL()
+
 /** @addtogroup XBT_syscall
  *  @{
  */
@@ -91,6 +94,10 @@ static inline void *xbt_realloc(void*p,int s){
 
 /** @} */  
 
+/* FIXME: better place? */
+int vasprintf  (char **ptr, const char *fmt, va_list ap);
+char *bprintf(const char*fmt, ...) _XBT_GNUC_PRINTF(1,2);
+  
 END_DECL()
 
 #endif /* _XBT_SYSDEP_H */