Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
oh, hey, got everything but the array initializers now...
authormarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Jan 2011 13:23:07 +0000 (13:23 +0000)
committermarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Jan 2011 13:23:07 +0000 (13:23 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9419 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/smpi/replace_globals.cocci

index d64b380..59e8aa6 100644 (file)
@@ -1,7 +1,5 @@
 // FIXME: problems
-//   - cannot change type on multiple variable declaration
 //   - does not match array initializers
-//   - dereferencing outside access macro? (maybe not an issue...)
 
 // Function prototype looks like variable dec, but has parentheses
 @funcproto@
@@ -42,14 +40,13 @@ expression E;
 @@
 (
 T@p 
-var
-+ = SMPI_INITIALIZE_GLOBAL(T)
+var
++ *var = SMPI_INITIALIZE_GLOBAL(T)
 ;
 |
 T@p
-var = 
-- E
-+ SMPI_INITIALIZE_AND_SET_GLOBAL(T, E)
+- var = E
++ *var = SMPI_INITIALIZE_AND_SET_GLOBAL(T, E)
 ;
 )