X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Frun_tests.c;h=d9696081f753654dd457b8b8c2a413af6132a1de;hp=b4125424a60859f71bb50e7bfaf9384e54a0e1c2;hb=914fa0bf6ec0bbe165ddf917e73a1e207743ba1d;hpb=6b73d11998591ec50e726cc2d4105ca85f38d87d diff --git a/tools/run_tests.c b/tools/run_tests.c index b4125424..d9696081 100644 --- a/tools/run_tests.c +++ b/tools/run_tests.c @@ -16,23 +16,20 @@ static struct test *tests = NULL; static struct obj *objs = NULL; static int verbose; -struct test_type -{ +struct test_type { const char *name; void (*buildfn)(const char *dir, struct test_type *t, const char *name, const char *apiobj); void (*runfn)(const char *name); }; -struct test -{ +struct test { struct test *next; struct test_type *type; char *name; }; -struct obj -{ +struct obj { struct obj *next; bool generate; char *name;