2016-09-25 09:24:03 +02:00
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *dst;
|
|
|
|
T *src;
|
|
|
|
expression n;
|
|
|
|
@@
|
2017-10-01 17:12:08 +02:00
|
|
|
- memcpy(dst, src, (n) * sizeof(*dst));
|
2016-09-25 09:24:03 +02:00
|
|
|
+ COPY_ARRAY(dst, src, n);
|
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *dst;
|
|
|
|
T *src;
|
|
|
|
expression n;
|
|
|
|
@@
|
2017-10-01 17:12:08 +02:00
|
|
|
- memcpy(dst, src, (n) * sizeof(*src));
|
2016-09-25 09:24:03 +02:00
|
|
|
+ COPY_ARRAY(dst, src, n);
|
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *dst;
|
|
|
|
T *src;
|
|
|
|
expression n;
|
|
|
|
@@
|
2017-10-01 17:12:08 +02:00
|
|
|
- memcpy(dst, src, (n) * sizeof(T));
|
2016-09-25 09:24:03 +02:00
|
|
|
+ COPY_ARRAY(dst, src, n);
|
2017-02-25 11:30:03 +01:00
|
|
|
|
2017-07-15 21:36:20 +02:00
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *dst;
|
|
|
|
T *src;
|
|
|
|
expression n;
|
|
|
|
@@
|
|
|
|
(
|
|
|
|
- memmove(dst, src, (n) * sizeof(*dst));
|
|
|
|
+ MOVE_ARRAY(dst, src, n);
|
|
|
|
|
|
|
|
|
- memmove(dst, src, (n) * sizeof(*src));
|
|
|
|
+ MOVE_ARRAY(dst, src, n);
|
|
|
|
|
|
|
|
|
- memmove(dst, src, (n) * sizeof(T));
|
|
|
|
+ MOVE_ARRAY(dst, src, n);
|
|
|
|
)
|
|
|
|
|
2017-02-25 11:30:03 +01:00
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *ptr;
|
|
|
|
expression n;
|
|
|
|
@@
|
2017-10-01 17:12:08 +02:00
|
|
|
- ptr = xmalloc((n) * sizeof(*ptr));
|
2017-02-25 11:30:03 +01:00
|
|
|
+ ALLOC_ARRAY(ptr, n);
|
|
|
|
|
|
|
|
@@
|
|
|
|
type T;
|
|
|
|
T *ptr;
|
|
|
|
expression n;
|
|
|
|
@@
|
2017-10-01 17:12:08 +02:00
|
|
|
- ptr = xmalloc((n) * sizeof(T));
|
2017-02-25 11:30:03 +01:00
|
|
|
+ ALLOC_ARRAY(ptr, n);
|