A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MSVC] 32bits/64bits is declared that way on this arch
[simgrid.git]
/
src
/
xbt
/
setset.c
diff --git
a/src/xbt/setset.c
b/src/xbt/setset.c
index
79d2557
..
2b0ec89
100644
(file)
--- a/
src/xbt/setset.c
+++ b/
src/xbt/setset.c
@@
-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 <stddef.h>
#include <stdio.h>
#include <string.h>
#include "setset_private.h"
#include "xbt/sysdep.h"
-#include "
gras
_config.h" /*_XBT_WIN32*/
+#include "
internal
_config.h" /*_XBT_WIN32*/
/*The function ffs doesn't exist for windows*/
#ifdef _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_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_assert
0
(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);
first_elm =
(xbt_setset_elm_entry_t) xbt_dynar_get_ptr(setset->elm_array, 0);