X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/27c7fbea86b5184b440537f27dfc0cfe726c6400..9e3bf4095effa793b9a28be8b13352b863d2482f:/src/smpi/replace_globals.cocci diff --git a/src/smpi/replace_globals.cocci b/src/smpi/replace_globals.cocci index a49237c80b..591f27dcce 100644 --- a/src/smpi/replace_globals.cocci +++ b/src/smpi/replace_globals.cocci @@ -32,16 +32,16 @@ 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 +51,8 @@ E local idexpression x; identifier globalvardecl.b; @@ +{ +<... ( x | @@ -58,3 +60,5 @@ x b +) ) +...> +}