From dbc2346de8b2f213d8bb7e647c4f187c6103e474 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 06:41:59 +0000 Subject: r2653: - data_blob() and data_blob_talloc() now get automatic names - talloc_strdup() and related functions get automatic names (This used to be commit 0cf427d14fe0a19cb3e85b6191be220f3d81080a) --- source4/include/talloc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/include') diff --git a/source4/include/talloc.h b/source4/include/talloc.h index 9f7281f427..e329bdb308 100644 --- a/source4/include/talloc.h +++ b/source4/include/talloc.h @@ -38,6 +38,7 @@ typedef void TALLOC_CTX; #define talloc_p(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) #define talloc_array_p(ctx, type, count) (type *)talloc_array(ctx, sizeof(type), count, __location__) #define talloc_realloc_p(p, type, count) (type *)talloc_realloc_array(p, sizeof(type), count, __location__) +#define talloc_memdup(t, p, size) _talloc_memdup(t, p, size, __location__) #define talloc_destroy(ctx) talloc_free(ctx) @@ -45,5 +46,7 @@ typedef void TALLOC_CTX; #define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count) #define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count) +#define data_blob(ptr, size) data_blob_named(ptr, size, __location__) + #endif -- cgit