You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *dst;
|
|
|
|
T *src;
|
|
|
|
expression n;
|
|
|
|
@@
|
|
|
|
- memcpy(dst, src, n * sizeof(*dst));
|
|
|
|
+ COPY_ARRAY(dst, src, n);
|
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *dst;
|
|
|
|
T *src;
|
|
|
|
expression n;
|
|
|
|
@@
|
|
|
|
- memcpy(dst, src, n * sizeof(*src));
|
|
|
|
+ COPY_ARRAY(dst, src, n);
|
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *dst;
|
|
|
|
T *src;
|
|
|
|
expression n;
|
|
|
|
@@
|
|
|
|
- memcpy(dst, src, n * sizeof(T));
|
|
|
|
+ COPY_ARRAY(dst, src, n);
|
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *ptr;
|
|
|
|
expression n;
|
|
|
|
@@
|
|
|
|
- ptr = xmalloc(n * sizeof(*ptr));
|
|
|
|
+ ALLOC_ARRAY(ptr, n);
|
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *ptr;
|
|
|
|
expression n;
|
|
|
|
@@
|
|
|
|
- ptr = xmalloc(n * sizeof(T));
|
|
|
|
+ ALLOC_ARRAY(ptr, n);
|