repo.or.cz
/
tor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
release: ChangeLog and ReleaseNotes for 0.4.8.5
[tor.git]
/
scripts
/
coccinelle
/
malloc_cast.cocci
blob
20321d4fd0107302e97085bc2dbdc5d02eb8fde4
1
@cast_malloc@
2
expression e;
3
type T;
4
@@
5
- (T *)tor_malloc(e)
6
+ tor_malloc(e)
7
8
@cast_malloc_zero@
9
expression e;
10
type T;
11
identifier func;
12
@@
13
- (T *)tor_malloc_zero(e)
14
+ tor_malloc_zero(e)
15
16
@cast_calloc@
17
expression a, b;
18
type T;
19
identifier func;
20
@@
21
- (T *)tor_calloc(a, b)
22
+ tor_calloc(a, b)
23
24
@cast_realloc@
25
expression e;
26
expression p;
27
type T;
28
@@
29
- (T *)tor_realloc(p, e)
30
+ tor_realloc(p, e)
31
32
@cast_reallocarray@
33
expression a,b;
34
expression p;
35
type T;
36
@@
37
- (T *)tor_reallocarray(p, a, b)
38
+ tor_reallocarray(p, a, b)