From b9922f60d05b3a465f766be535baf55aef0a6651 Mon Sep 17 00:00:00 2001 From: Cristian Rosa Date: Fri, 7 Sep 2012 15:12:34 -0300 Subject: [PATCH] Add new type of scalar value 'STRING' for const char* --- src/simix/smx_smurf_private.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1