Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adapt gras_userdata_new to the change in gras_userdata_set
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Jul 2004 21:56:58 +0000 (21:56 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Jul 2004 21:56:58 +0000 (21:56 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@320 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/gras/process.h

index 76c2659..5b528a4 100644 (file)
@@ -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