HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Coccinelle release 1.0.0-rc1
[bpt/coccinelle.git]
/
tests
/
const_array.cocci
1
@@
2
type T;
3
T[] E;
4
@@
5
6
- sizeof(E)/sizeof(T)
7
+ ARRAY_SIZE(E)
8
9
@@
10
type T;
11
const T*[] E;
12
@@
13
14
- sizeof(E)/sizeof(T*)
15
+ ARRAY_SIZE(E)