summaryrefslogtreecommitdiff
path: root/ccan/antithread
AgeCommit message (Collapse)Author
2014-06-16ccan: Correct some poor conventions in _info includesDavid Gibson
There are a couple of small problems with the includes used in most of ccan's _info files. * _info routinely uses printf(), and so should include <stdio.h>, but only some of them do. We get away with it, because they do include <string.h>, which apparently includes <stdio.h> indirectly, but we should be explicit about it. * Most _info files were including config.h after the system headers. That _seems_ sensible, but actually causes problems. Because config.h defines _GNU_SOURCE it can change the behaviour of the system headers. More specifically it can make them behave differently to how the individual module headers (which have included config.h) expects them to behave. This patch adjusts all the existing _info files and, more importantly, the template constructed by ccanlint. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2014-05-27antithread: correctly list ccan/typesafe_cb as dependency.Rusty Russell
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-11-22alloc: move into antithread/alloc.Rusty Russell
Our first nested module; easy because noone else relies on it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-09antithread, failtest: use ccan/err instead of err.h.Rusty Russell
2011-07-21various: add LICENSE comments.Rusty Russell
2011-07-19various: make the _info License: wording uniform for GPL variants.Rusty Russell
GPL versions 2 and 3 both specifically mention "any later version" as the phrase which allows the user to choose to upgrade the license. Make sure we use that phrase, and make the format consistent across modules.
2011-06-20antithread: patch to antithread arabella exampleRussell Steicke
I've been using the antithread arabella example to generate some "arty" portraits for decoration. I've made a few changes to it (triangle sizes and number of generations before giving up), and may send those as patches later. Because some of the images I'm generating have taken quite a while (many days) I've needed to restart the run after rebooting machines for other reasons, and noticed that arabella restarted the generation count from zero. I wanted to continue the generation count, so here's a patch to do just that.
2011-04-07typesafe_cb: simplify, preserve namespace.Rusty Russell
Get rid of many variants, which were just confusing for most people. Keep typesafe_cb(), typesafe_cb_preargs() and typesafe_cb_postarts(), and rework cast_if_type() into typesafe_cb_cast() so we stay in our namespace. I should have done this as soon as I discovered the limitation that the types have to be defined if I want const-taking callbacks.
2011-04-02To compile ccan under DragonFly BSD some additional includes are required.Andreas Schlick
2011-03-22antithread: fix -Wwrite-strings warning in test, and trailing whitespace.Rusty Russell
2011-03-22antithread: avoid arithmetic on void pointersRusty Russell
2010-11-04antithread, foreach, grab_file, hashtable, str_talloc: fix _info depends.Rusty Russell
For str_talloc and grab_file, avoid using ccan/str (it's just for tests).
2010-10-21license: more changing of licence -> license.Rusty Russell
2010-10-17licence->license: US English is the standard for code.Rusty Russell
If a Swedish-speaking Finn writes code in English, why should I complain about a few weird spellings?
2010-09-26antithread: flesh out _info, update licence to GPLv3.Rusty Russell
2010-09-26antithread: update example Makefile and arabella example.Rusty Russell
2010-08-06Add author and maintainer fields.Rusty Russell
2010-08-06Add licences/ dir and symlinks for a bit more clarity.Rusty Russell
2010-01-06Remove old run-tests, clean up #includes to all be <ccan/...Rusty Russell
2009-05-28Rename _info.c to _info: this means we can simple compile *.c.Rusty Russell
2009-02-25Major cleanup of makefiles, api tests.Rusty Russell
We no longer use libccan for tests, but explicit object lists. This will catch missing dependencies. API tests *do* get the module object linked in now. In addition, makefiles now correctly rebuild when a dependency changes (gcc's -MD here), and when _info.c changes.
2009-01-14Fix antithread example compile.Rusty Russell
2009-01-14Fix saving & loading of state.Rusty Russell
Mutate whole triangles sometimes for better results.
2009-01-13Adapt antithread to new talloc locking, and fix so talloc destructor Rusty Russell
works.
2009-01-13Much nicer example: genetic algo to approximate jpegRusty Russell
(And cute image!)
2008-11-14Fix new glibc warnings about warn_unused_result.Rusty Russell
2008-11-10Simplify -I lines: change includes to ccan/Rusty Russell
2008-09-12Document license requirements.Rusty Russell
2008-08-14Add antithread. Not finished, but useful as example of module whose Rusty Russell
dependents have dependents.