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
/
define_param.cocci
1
2
@ rule2 disable all @
3
expression E;
4
@@
5
6
- (sizeof(E)/sizeof(*E))
7
+ ARRAY_SIZE(E)
8
9
@ rule53 @
10
identifier NUM, x;
11
@@
12
13
- #define NUM(x) ARRAY_SIZE(x)
14
15
@@
16
expression E;
17
identifier rule53.NUM;
18
@@
19
20
- NUM(E)
21
+ ARRAY_SIZE(E)