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
yet another cleaning pass
[simgrid.git]
/
examples
/
msg
/
chainsend
/
iterator.h
diff --git
a/examples/msg/chainsend/iterator.h
b/examples/msg/chainsend/iterator.h
index
3267913
..
5d3d06d
100644
(file)
--- a/
examples/msg/chainsend/iterator.h
+++ b/
examples/msg/chainsend/iterator.h
@@
-1,7
+1,11
@@
-#ifndef KADEPLOY_ITERATOR_H
-#define KADEPLOY_ITERATOR_H
+/* Copyright (c) 2012-2014. The SimGrid Team.
+ * All rights reserved. */
-#include <stdlib.h>
+/* 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. */
+
+#ifndef ITERATOR_H
+#define ITERATOR_H
#include "xbt/dynar.h"
#include "xbt/sysdep.h"
#include "xbt/dynar.h"
#include "xbt/sysdep.h"
@@
-30,7
+34,6
@@
xbt_dynar_t random_indices_list(int size);
/* Shuffle */
/**************************************/
/* Shuffle */
/**************************************/
-static int rand_int(int n);
void xbt_dynar_shuffle_in_place(xbt_dynar_t indices_list);
#define xbt_dynar_swap_elements(d, type, i, j) \
void xbt_dynar_shuffle_in_place(xbt_dynar_t indices_list);
#define xbt_dynar_swap_elements(d, type, i, j) \
@@
-40,4
+43,4
@@
void xbt_dynar_shuffle_in_place(xbt_dynar_t indices_list);
xbt_dynar_get_as(indices_list, (unsigned int)i, type)); \
xbt_dynar_set_as(indices_list, (unsigned int)i, type, tmp);
xbt_dynar_get_as(indices_list, (unsigned int)i, type)); \
xbt_dynar_set_as(indices_list, (unsigned int)i, type, tmp);
-#endif /*
KADEPLOY_
ITERATOR_H */
+#endif /* ITERATOR_H */