svn commit: samba r4687 - in branches/SAMBA_4_0/source/lib/talloc: .
metze at samba.org
metze at samba.org
Tue Jan 11 15:20:56 GMT 2005
Author: metze
Date: 2005-01-11 15:20:55 +0000 (Tue, 11 Jan 2005)
New Revision: 4687
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4687
Log:
use struct type and location for easier finding
metze
Modified:
branches/SAMBA_4_0/source/lib/talloc/talloc.h
Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/talloc.h
===================================================================
--- branches/SAMBA_4_0/source/lib/talloc/talloc.h 2005-01-11 15:19:32 UTC (rev 4686)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc.h 2005-01-11 15:20:55 UTC (rev 4687)
@@ -37,7 +37,7 @@
#endif
/* useful macros for creating type checked pointers */
-#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
+#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type ": " __location__)
#define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
#define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__)
More information about the samba-cvs
mailing list