2016-09-25 09:24:03 +02:00
|
|
|
@@
|
|
|
|
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);
|
2017-02-25 11:30:03 +01:00
|
|
|
|
|
|
|
@@
|
|
|
|
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);
|