Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use surf_parse_error() rather than xbt_die() during surf parsing
[simgrid.git] / src / xbt / setset.c
index 7ab1933..2b0ec89 100644 (file)
@@ -1,9 +1,15 @@
+/* Copyright (c) 2010-2012, 2014. The SimGrid Team.
+ * 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. */
+
 #include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 #include "setset_private.h"
 #include "xbt/sysdep.h"
-#include "simgrid_config.h" /*_XBT_WIN32*/
+#include "internal_config.h" /*_XBT_WIN32*/
 
 /*The function ffs doesn't exist for windows*/
 #ifdef _XBT_WIN32
@@ -64,7 +70,7 @@ void xbt_setset_elm_add(xbt_setset_t setset, void *obj)
   xbt_setset_elm_entry_t new_entry = NULL;
   xbt_setset_elm_entry_t first_elm = NULL;
   xbt_setset_elm_t e = (xbt_setset_elm_t) obj;
-  xbt_assert0(e->ID == 0, "Adding element with non NULL ID");
+  xbt_assert(e->ID == 0, "Adding element with non NULL ID");
   first_elm =
       (xbt_setset_elm_entry_t) xbt_dynar_get_ptr(setset->elm_array, 0);