projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'jc/push-default-explicit' into maint
[git]
/
contrib
/
coccinelle
/
array.cocci
1
@@
2
type T;
3
T *dst;
4
T *src;
5
expression n;
6
@@
7
- memcpy(dst, src, n * sizeof(*dst));
8
+ COPY_ARRAY(dst, src, n);
9
10
@@
11
type T;
12
T *dst;
13
T *src;
14
expression n;
15
@@
16
- memcpy(dst, src, n * sizeof(*src));
17
+ COPY_ARRAY(dst, src, n);
18
19
@@
20
type T;
21
T *dst;
22
T *src;
23
expression n;
24
@@
25
- memcpy(dst, src, n * sizeof(T));
26
+ COPY_ARRAY(dst, src, n);