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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
src
/
mc
/
mc_set.cpp
diff --git
a/src/mc/mc_set.cpp
b/src/mc/mc_set.cpp
index
b04c1ff
..
03613c4
100644
(file)
--- a/
src/mc/mc_set.cpp
+++ b/
src/mc/mc_set.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-201
3
. The SimGrid Team.
+/* Copyright (c) 2007-201
4
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-12,7
+12,7
@@
typedef std::set<const void*>* mc_address_set_t;
extern "C" {
mc_address_set_t mc_address_set_new();
extern "C" {
mc_address_set_t mc_address_set_new();
-
mc_address_set_t
mc_address_set_free(mc_address_set_t* p);
+
void
mc_address_set_free(mc_address_set_t* p);
void mc_address_add(mc_address_set_t p, const void* value);
bool mc_address_test(mc_address_set_t p, const void* value);
void mc_address_add(mc_address_set_t p, const void* value);
bool mc_address_test(mc_address_set_t p, const void* value);
@@
-20,7
+20,7
@@
mc_address_set_t mc_address_set_new() {
return new std::set<const void*>();
}
return new std::set<const void*>();
}
-
mc_address_set_t
mc_address_set_free(mc_address_set_t* p) {
+
void
mc_address_set_free(mc_address_set_t* p) {
delete *p;
*p = NULL;
}
delete *p;
*p = NULL;
}