Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
#include "xbt/error.h" /* needed for xbt_die */
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 Nov 2004 17:11:35 +0000 (17:11 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 Nov 2004 17:11:35 +0000 (17:11 +0000)
Mt. At some places, I was using xbt_new0 without including xbt/error.h and
it failed. It seems to me that a .h should be self-contained but I also may
have not understood the way you handle your errors. I've added the previous
#include at the end of sysdep.h. You probably won't like it but tell me why
please.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@516 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/swag.h
include/xbt/sysdep.h

index c235387..d4533a0 100644 (file)
@@ -11,6 +11,8 @@
 /* Whenever a new object with this struct is created, all fields have
    to be set to NULL */
 
 /* Whenever a new object with this struct is created, all fields have
    to be set to NULL */
 
+#include "xbt/sysdep.h"
+
 typedef struct xbt_swag_hookup {
   void *next;
   void *prev;
 typedef struct xbt_swag_hookup {
   void *next;
   void *prev;
index f98dbd3..6c2df2f 100644 (file)
@@ -84,5 +84,6 @@ double strtod(const char *nptr, char **endptr);
 int atoi(const char *nptr);
 
 END_DECL   
 int atoi(const char *nptr);
 
 END_DECL   
+#include "xbt/error.h" /* needed for xbt_die */
 
 #endif /* _XBT_SYSDEP_H */
 
 #endif /* _XBT_SYSDEP_H */