summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 06:41:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:17 -0500
commitdbc2346de8b2f213d8bb7e647c4f187c6103e474 (patch)
tree10b975ec014419124eee3bff6ee23f857acb7a0f /source4/include
parentdf6dce1065d4323ebf8ca97b69f0a44804f19e11 (diff)
downloadsamba-dbc2346de8b2f213d8bb7e647c4f187c6103e474.tar.gz
samba-dbc2346de8b2f213d8bb7e647c4f187c6103e474.tar.bz2
samba-dbc2346de8b2f213d8bb7e647c4f187c6103e474.zip
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)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/talloc.h3
1 files changed, 3 insertions, 0 deletions
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