X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Ftal.h;h=af3943eebafec9b593e15a8fe5c951cc138a2481;hp=713db118819c4d7ce128bab723d62f924566ca8c;hb=ba89419ac9074d930eec7ba72c378831c56ed060;hpb=0fe2d094b262f6e8bed798930e8c4716d33d5dc7 diff --git a/ccan/tal/tal.h b/ccan/tal/tal.h index 713db118..af3943ee 100644 --- a/ccan/tal/tal.h +++ b/ccan/tal/tal.h @@ -56,7 +56,8 @@ typedef void tal_t; * children (recursively) before finally freeing the memory. It returns * NULL, for convenience. * - * Note: errno is preserved by this call. + * Note: errno is preserved by this call, and also saved and restored + * for any destructors or notifiers. * * Example: * p = tal_free(p); @@ -194,6 +195,7 @@ enum tal_notify_type { * TAL_NOTIFY_FREE is called when @ptr is freed, either directly or * because an ancestor is freed: @info is the argument to tal_free(). * It is exactly equivalent to a destructor, with more information. + * errno is set to the value it was at the call of tal_free(). * * TAL_NOTIFY_STEAL is called when @ptr's parent changes: @info is the * new parent.