Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
okay, semantic patches mostly doing what is probably the right thing, the next
[simgrid.git] / src / smpi / replace_globals.cocci
index a49237c..f93cafc 100644 (file)
@@ -32,16 +32,14 @@ position p != { localvardecl.p, funcproto.p };
 expression E;
 @@
 (
--T 
-+T*
+T 
 b@p
-+ = SMPI_INITIALIZE_GLOBAL(T)
++ = SMPI_INITIALIZE_GLOBAL(b, T)
 ;
 |
--T 
-+T*
+T 
 b@p = 
-+ SMPI_INITIALIZE_AND_SET_GLOBAL(T,
++ SMPI_INITIALIZE_AND_SET_GLOBAL(b, T,
 E
 +)
 ;
@@ -51,6 +49,8 @@ E
 local idexpression x;
 identifier globalvardecl.b;
 @@
+{
+<...
 (
 x
 |
@@ -58,3 +58,5 @@ x
 b
 +)
 )
+...>
+}