Skip to content
Snippets Groups Projects

features-4903

Merged Roman Khlopkov requested to merge features-4903 into develop
6 files
+ 87
46
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -122,8 +122,7 @@ typedef uint8_t byte_t;
#define DAP_NEW_Z_SIZE(a, b) DAP_CAST_REINT(a, rpcalloc(1,b))
#define DAP_REALLOC(a, b) rprealloc(a,b)
#define DAP_DELETE(a) rpfree(a)
#define DAP_DUP(a) ( __typeof(a) ret = memcpy(ret,a,sizeof(*a)) )
#define DAP_DUP_SIZE(a,b) ( __typeof(a) ret = memcpy(ret,a,b) )
#define DAP_DUP(a) memcpy(rpmalloc(sizeof(*a)), a, sizeof(*a))
#else
#define DAP_MALLOC(a) malloc(a)
#define DAP_FREE(a) free(a)
@@ -139,8 +138,7 @@ typedef uint8_t byte_t;
#define DAP_NEW_Z_SIZE(a, b) DAP_CAST_REINT(a, calloc(1,b))
#define DAP_REALLOC(a, b) realloc(a,b)
#define DAP_DELETE(a) free(a)
#define DAP_DUP(a) ( __typeof(a) ret = memcpy(ret,a,sizeof(*a)) )
#define DAP_DUP_SIZE(a,b) ( __typeof(a) memcpy(ret,a,b) )
#define DAP_DUP(a) memcpy(malloc(sizeof(*a)), a, sizeof(*a))
#endif
#define DAP_DEL_Z(a) if(a) { DAP_DELETE(a); a=NULL;}
Loading