From: Cristian Rosa Date: Fri, 7 Sep 2012 18:12:34 +0000 (-0300) Subject: Add new type of scalar value 'STRING' for const char* X-Git-Tag: v3_9_rc1~86^2~237^2~8 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b9922f60d05b3a465f766be535baf55aef0a6651 Add new type of scalar value 'STRING' for const char* --- diff --git a/src/simix/smx_smurf_private.h b/src/simix/smx_smurf_private.h index f6e03892b3..03d330b047 100644 --- a/src/simix/smx_smurf_private.h +++ b/src/simix/smx_smurf_private.h @@ -658,6 +658,7 @@ const char *SIMIX_simcall_name(e_smx_simcall_t kind); /* Pack all possible scalar types in an union */ typedef union u_smx_scalar { char c; + const char* cc; short s; int i; long l; @@ -667,7 +668,7 @@ typedef union u_smx_scalar { unsigned long ul; float f; double d; - void *p; + void* p; } u_smx_scalar_t; /* @@ -675,6 +676,7 @@ typedef union u_smx_scalar { * These are used to wrap the arguments in SIMIX_simcall macro. */ #define CHAR(x) (c,x) +#define STRING(x) (cc,x) #define SHORT(x) (s,x) #define INT(x) (i,x) #define LONG(x) (l,x)