generator: Generators for C
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 25 Feb 2016 11:07:17 +0000 (22:07 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 25 Feb 2016 11:07:17 +0000 (22:07 +1100)
commit707a8c0a899a4b645bcf778f7ea79565d6f3f13e
tree69d2fb80a6404a6a1eddf95269964ab352430e6f
parentd4c7616d9ef5a55dd89ea878a07eedc7376d6973
generator: Generators for C

Generators are a limited form of co-routine, which people may be familiar
with from Python.  This module adds an implementation of generators for C.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
13 files changed:
Makefile-ccan
ccan/generator/LICENSE [new symlink]
ccan/generator/_info [new file with mode: 0644]
ccan/generator/generator.c [new file with mode: 0644]
ccan/generator/generator.h [new file with mode: 0644]
ccan/generator/test/api.c [new file with mode: 0644]
ccan/generator/test/compile_fail-1.c [new file with mode: 0644]
ccan/generator/test/compile_fail-2.c [new file with mode: 0644]
ccan/generator/test/compile_fail-3.c [new file with mode: 0644]
ccan/generator/test/compile_fail-4.c [new file with mode: 0644]
ccan/generator/test/compile_fail-5.c [new file with mode: 0644]
ccan/generator/test/example-gens.c [new file with mode: 0644]
ccan/generator/test/example-gens.h [new file with mode: 0644]