Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new type of scalar value 'STRING' for const char*
authorCristian Rosa <cristian@rtfm.org.ar>
Fri, 7 Sep 2012 18:12:34 +0000 (15:12 -0300)
committershenshei <paul.bedaride@gmail.com>
Wed, 28 Nov 2012 08:17:53 +0000 (09:17 +0100)
src/simix/smx_smurf_private.h

index f6e0389..03d330b 100644 (file)
@@ -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;
 /* Pack all possible scalar types in an union */
 typedef union u_smx_scalar {
   char            c;
+  const char*     cc;
   short           s;
   int             i;
   long            l;
   short           s;
   int             i;
   long            l;
@@ -667,7 +668,7 @@ typedef union u_smx_scalar {
   unsigned long   ul;
   float           f;
   double          d;
   unsigned long   ul;
   float           f;
   double          d;
-  void            *p;
+  void*           p;
 } u_smx_scalar_t;
 
 /*
 } 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)
  * 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)
 #define SHORT(x) (s,x)
 #define INT(x) (i,x)
 #define LONG(x) (l,x)