public inbox for ccan@ozlabs.org
 help / color / mirror / Atom feed
* [PATCH 0/3] generators in C
@ 2016-02-15 12:13 David Gibson
  2016-02-15 12:13 ` [PATCH 1/3] configurator: Add test for ucontext.h David Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Gibson @ 2016-02-15 12:13 UTC (permalink / raw)
  To: ccan, rusty

This series add's the 'generator' module which implements Python-like
generators in C.  By use of some extremely hairy macros, it's able to
have a surprisingly natural interface, even with arbitrary parameters
and return types.

David Gibson (3):
  configurator: Add test for ucontext.h
  generator: Generators for C
  generator: Allow generators to take arguments

 ccan/generator/LICENSE               |   1 +
 ccan/generator/_info                 |  72 +++++++++++
 ccan/generator/generator.c           |  54 ++++++++
 ccan/generator/generator.h           | 239 +++++++++++++++++++++++++++++++++++
 ccan/generator/test/api.c            |  98 ++++++++++++++
 ccan/generator/test/compile_fail-1.c |  21 +++
 ccan/generator/test/compile_fail-2.c |  21 +++
 ccan/generator/test/compile_fail-3.c |  24 ++++
 ccan/generator/test/compile_fail-4.c |  23 ++++
 ccan/generator/test/compile_fail-5.c |  21 +++
 ccan/generator/test/example-gens.c   |  28 ++++
 ccan/generator/test/example-gens.h   |  10 ++
 tools/configurator/configurator.c    |  46 +++++++
 13 files changed, 658 insertions(+)
 create mode 120000 ccan/generator/LICENSE
 create mode 100644 ccan/generator/_info
 create mode 100644 ccan/generator/generator.c
 create mode 100644 ccan/generator/generator.h
 create mode 100644 ccan/generator/test/api.c
 create mode 100644 ccan/generator/test/compile_fail-1.c
 create mode 100644 ccan/generator/test/compile_fail-2.c
 create mode 100644 ccan/generator/test/compile_fail-3.c
 create mode 100644 ccan/generator/test/compile_fail-4.c
 create mode 100644 ccan/generator/test/compile_fail-5.c
 create mode 100644 ccan/generator/test/example-gens.c
 create mode 100644 ccan/generator/test/example-gens.h

-- 
2.5.0

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-25 11:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 12:13 [PATCH 0/3] generators in C David Gibson
2016-02-15 12:13 ` [PATCH 1/3] configurator: Add test for ucontext.h David Gibson
2016-02-15 12:13 ` [PATCH 2/3] generator: Generators for C David Gibson
2016-02-15 12:13 ` [PATCH 3/3] generator: Allow generators to take arguments David Gibson
2016-02-25 11:26 ` [PATCH 0/3] generators in C David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox