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
[trace] avoiding key clashes on paje links
[simgrid.git]
/
src
/
smpi
/
replace_globals.cocci
diff --git
a/src/smpi/replace_globals.cocci
b/src/smpi/replace_globals.cocci
index
da0e6ab
..
00a6ca5
100644
(file)
--- a/
src/smpi/replace_globals.cocci
+++ b/
src/smpi/replace_globals.cocci
@@
-95,10
+95,11
@@
var
// starting with the word static (exceptions?)
@staticvardecl@
type T;
// starting with the word static (exceptions?)
@staticvardecl@
type T;
-identifier var;
+identifier
func,
var;
expression value;
@@
expression value;
@@
-<...
+func(...) {
+...
( // default case
static T
- var
( // default case
static T
- var
@@
-110,13
+111,16
@@
T
+ *var = SMPI_VARINIT_STATIC_AND_SET(var, T, value)
;
)
+ *var = SMPI_VARINIT_STATIC_AND_SET(var, T, value)
;
)
-...>
+...
+}
//
@rewritestaticaccess@
type T;
//
@rewritestaticaccess@
type T;
-identifier staticvardecl.var;
+identifier staticvardecl.
func, staticvardecl.
var;
@@
@@
+func(...) {
+<...
( // declaration
T
var
( // declaration
T
var
@@
-126,3
+130,5
@@
var
var
+)
)
var
+)
)
+...>
+}