talloc_stack.c?
Volker Lendecke
Volker.Lendecke at SerNet.DE
Mon Jul 2 11:32:18 GMT 2007
On Mon, Jul 02, 2007 at 05:36:54PM +1000, tridge at samba.org wrote:
> If what you really want this for is DEBUG() then maybe a varient of
> DEBUG() that allocates a _tmp_ctx would make sense? Eg:
>
> #define DEBUG_TMP_CTX(level, xx) do { \
> TALLOC_CTX *_tmp_ctx = talloc_new(NULL); \
> DEBUG(level, xx); \
> talloc_free(_tmp_ctx); \
> } while(0)
>
> then use _tmp_ctx in the debug args.
>
> would that help with the current static string uses?
Sure it would, I already have that as an attempt coded up.
But I don't know if loading DEBUG with yet another macro
expansion is really what I want. I tried to find a
compromise between memory usage and backwards compatibility.
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070702/122d33e2/attachment.bin
More information about the samba-technical
mailing list