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
Adapt gras_userdata_new to the change in gras_userdata_set
[simgrid.git]
/
include
/
gras
/
process.h
diff --git
a/include/gras/process.h
b/include/gras/process.h
index
76c2659
..
5b528a4
100644
(file)
--- a/
include/gras/process.h
+++ b/
include/gras/process.h
@@
-69,7
+69,7
@@
void *gras_userdata_get(void);
*
* Set the data associated with the current process.
*/
*
* Set the data associated with the current process.
*/
-void
*
gras_userdata_set(void *ud);
+void gras_userdata_set(void *ud);
/**
* gras_userdata_new:
/**
* gras_userdata_new:
@@
-77,7
+77,7
@@
void *gras_userdata_set(void *ud);
* Malloc and set the data associated with the current process.
*/
* Malloc and set the data associated with the current process.
*/
-#define gras_userdata_new(type)
gras_userdata_set(malloc(sizeof(type)
))
+#define gras_userdata_new(type)
(gras_userdata_set(malloc(sizeof(type))),gras_userdata_get(
))
END_DECL
END_DECL