HCoop
/
bpt
/
coccinelle.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
coccinelle release 0.2.5
[bpt/coccinelle.git]
/
demos
/
iso-kzalloc.cocci
Commit
Line
Data
34e49164
C
1
// A*B is not just a toy isomorphism :) it's really useful sometimes.
2
3
@@
4
expression E;
5
constant c;
6
type T;
7
@@
8
9
-kzalloc(c * sizeof(T), E)
10
+kcalloc(c, sizeof(T), E)