repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Git 2.46.2
[git.git]
/
contrib
/
coccinelle
/
hashmap.cocci
blob
c5dbb4557b56b130d1ed518af1ccdff6c112d7a6
1
@@
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
...>}