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
model-checker : new structure reached_pair_stateless for acceptance cyle detection
[simgrid.git]
/
doc
/
gtut-files
/
09-datatype-dump.c
diff --git
a/doc/gtut-files/09-datatype-dump.c
b/doc/gtut-files/09-datatype-dump.c
index
31e54bf
..
8124064
100644
(file)
--- a/
doc/gtut-files/09-datatype-dump.c
+++ b/
doc/gtut-files/09-datatype-dump.c
@@
-1,3
+1,9
@@
+/* Copyright (c) 2006, 2010. 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 <gras.h>
#include <stdio.h>
#include <gras.h>
#include <stdio.h>
@@
-5,18
+11,19
@@
extern const char *_gras_procname;
/* This is a private data of gras/Datadesc we want to explore */
extern const char *_gras_procname;
/* This is a private data of gras/Datadesc we want to explore */
-xbt_set_t gras_datadesc_set_local
=
NULL;
+xbt_set_t gras_datadesc_set_local
=
NULL;
-int main(int argc, char *argv[]) {
+int main(int argc, char *argv[])
+{
xbt_set_elm_t elm;
xbt_set_cursor_t cursor;
xbt_set_elm_t elm;
xbt_set_cursor_t cursor;
- gras_init(&argc,argv);
-
+ gras_init(&argc,
argv);
+
xbt_set_foreach(gras_datadesc_set_local, cursor, elm) {
xbt_set_foreach(gras_datadesc_set_local, cursor, elm) {
-
printf("%s\n",
elm->name);
+
printf("%s\n",
elm->name);
}
}
-
-
+
+
gras_exit();
return 0;
}
gras_exit();
return 0;
}