A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change the type of globals to pointer-of-the-type.
[simgrid.git]
/
src
/
smpi
/
replace_globals.cocci
diff --git
a/src/smpi/replace_globals.cocci
b/src/smpi/replace_globals.cocci
index
a49237c
..
591f27d
100644
(file)
--- a/
src/smpi/replace_globals.cocci
+++ b/
src/smpi/replace_globals.cocci
@@
-32,16
+32,16
@@
position p != { localvardecl.p, funcproto.p };
expression E;
@@
(
expression E;
@@
(
-
-
T
-+
T
*
+T
++
*
b@p
b@p
-+ = SMPI_INITIALIZE_GLOBAL(T)
++ = SMPI_INITIALIZE_GLOBAL(
b,
T)
;
|
;
|
--T
-+
T
*
+T
++
*
b@p =
b@p =
-+ SMPI_INITIALIZE_AND_SET_GLOBAL(T,
++ SMPI_INITIALIZE_AND_SET_GLOBAL(
b,
T,
E
+)
;
E
+)
;
@@
-51,6
+51,8
@@
E
local idexpression x;
identifier globalvardecl.b;
@@
local idexpression x;
identifier globalvardecl.b;
@@
+{
+<...
(
x
|
(
x
|
@@
-58,3
+60,5
@@
x
b
+)
)
b
+)
)
+...>
+}