From: Rusty Russell Date: Thu, 29 Dec 2016 04:33:19 +0000 (+1030) Subject: tal: support destructors with an extra argument. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=58277ab6c8b4dd6bb66638b88bd8505f46fdcb07;hp=58277ab6c8b4dd6bb66638b88bd8505f46fdcb07 tal: support destructors with an extra argument. There are several times I've wanted an extra arg to the destructor, and had to embed it in the thing destroyed. It's more efficient to put it into tal itself (since it allocates space anyway), but we make it conditional on a flag to avoid bloating every destructor. The infrastructure makes it easier to add an extra arg to the general notifiers later if we want. Signed-off-by: Rusty Russell ---