X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Frfc822%2Frfc822.h;h=e770115c5c6a03fb0e700542752e057ead80d76f;hb=96dcdfbf1a400f7cb43cf3f0761f52fd6de9ff65;hp=24fb3cc37e74e2b58a8a0a1f4d00225708fe9d95;hpb=127c7534fc4aaa9499c552fdd3e4e9e56c16ca40;p=ccan diff --git a/ccan/rfc822/rfc822.h b/ccan/rfc822/rfc822.h index 24fb3cc3..e770115c 100644 --- a/ccan/rfc822/rfc822.h +++ b/ccan/rfc822/rfc822.h @@ -22,6 +22,9 @@ struct rfc822_msg; * callback is called with a string describing where the failure * occurred, which can be used to log a more useful error message. * + * Note that tal also has a default function which calls abort() on allocation + * failure: see tal_set_backend(). + * * Example: * static void my_handler(const char *str) * { @@ -53,15 +56,15 @@ static inline bool rfc822_iswsp(char c) * inconsistent, and the function will abort. If the state of the * structure is valid it returns it unchanged. * - * Returns the list head if the list is consistent, NULL if not (it - * can never return NULL if @abortstr is set). + * Returns the @msg if the message is consistent, NULL if not (it can + * never return NULL if @abortstr is set). */ struct rfc822_msg *rfc822_check(const struct rfc822_msg *msg, const char *abortstr); /** * rfc822_start - start parsing a new rfc822 message - * @ctx: talloc context to make allocations in + * @ctx: tal context to make allocations in (or talloc #ifdef TAL_USE_TALLOC) * @p: pointer to a buffer containing the message text * @len: length of the message text *