projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of github.com:alshopov/git-po into git-po-master
[git]
/
contrib
/
coccinelle
/
hashmap.cocci
1
@ hashmap_entry_init_usage @
2
expression E;
3
struct hashmap_entry HME;
4
@@
5
- HME.hash = E;
6
+ hashmap_entry_init(&HME, E);
7
8
@@
9
identifier f !~ "^hashmap_entry_init$";
10
expression E;
11
struct hashmap_entry *HMEP;
12
@@
13
f(...) {<...
14
- HMEP->hash = E;
15
+ hashmap_entry_init(HMEP, E);
16
...>}