git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3cf873
)
r22541: Added talloc_size_strict macro.
author
Jeremy Allison
<jra@samba.org>
Fri, 27 Apr 2007 22:04:27 +0000
(22:04 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:19:43 +0000
(12:19 -0500)
Jeremy.
(This used to be commit
fcbfa2c99175780524d2258885410c79bbb12d6e
)
source3/lib/talloc/talloc.h
patch
|
blob
|
history
diff --git
a/source3/lib/talloc/talloc.h
b/source3/lib/talloc/talloc.h
index 357c9b507607d934c11c39a9230ee768b8326703..48bf4303c604be3ea550b34a0fbdcc24c54c742a 100644
(file)
--- a/
source3/lib/talloc/talloc.h
+++ b/
source3/lib/talloc/talloc.h
@@
-84,6
+84,7
@@
typedef void TALLOC_CTX;
/* useful macros for creating type checked pointers */
#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
#define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
+#define talloc_size_strict(ctx, size) talloc_strict(ctx, size, __location__)
#define talloc_ptrtype(ctx, ptr) (_TALLOC_TYPEOF(ptr))talloc_size(ctx, sizeof(*(ptr)))
#define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__)