Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
okay, semantic patches mostly doing what is probably the right thing, the next
authormarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Jan 2011 08:07:54 +0000 (08:07 +0000)
committermarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Jan 2011 08:07:54 +0000 (08:07 +0000)
order of business is to work on the #defines...

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9415 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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
 +)
 )
+...>
+}