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-rc8
[bpt/coccinelle.git]
/
tests
/
define_param.cocci
Commit
Line
Data
34e49164
C
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)