From: David Gibson Date: Fri, 12 Feb 2016 12:49:49 +0000 (+1100) Subject: generator: Allow generators to take arguments X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=bb88463014092a5550ea4c51a037e12e49446722;hp=bb88463014092a5550ea4c51a037e12e49446722 generator: Allow generators to take arguments Using some serious macro magic, this patch extends generators to allow them to take arbitrary arguments. The arguments are marshalled into a structure placed at the far end of the generator's stack when it is created. Then, they're unmarshalled back into C parameters when we first context switch into the generator. Signed-off-by: David Gibson ---