From: mquinson Date: Thu, 22 Jul 2004 21:56:58 +0000 (+0000) Subject: Adapt gras_userdata_new to the change in gras_userdata_set X-Git-Tag: v3.3~5028 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/12db01eef510f93c84230ba3301c53508fdade57?ds=sidebyside Adapt gras_userdata_new to the change in gras_userdata_set git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@320 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/gras/process.h b/include/gras/process.h index 76c2659805..5b528a4abf 100644 --- 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. */ -void *gras_userdata_set(void *ud); +void gras_userdata_set(void *ud); /** * gras_userdata_new: @@ -77,7 +77,7 @@ void *gras_userdata_set(void *ud); * 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