From: markls Date: Mon, 17 Jan 2011 13:23:07 +0000 (+0000) Subject: oh, hey, got everything but the array initializers now... X-Git-Tag: v3.6_beta2~509 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b0b805a773d2c5ed7f2f8bbff2cd80eaae0c4967 oh, hey, got everything but the array initializers now... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9419 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/smpi/replace_globals.cocci b/src/smpi/replace_globals.cocci index d64b380267..59e8aa6db4 100644 --- a/src/smpi/replace_globals.cocci +++ b/src/smpi/replace_globals.cocci @@ -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) ; )