diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-10-28 15:04:59 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-11-12 20:49:08 +0100 |
commit | 603ea229b54c858d12ffc80a478f1fb0f4023a72 (patch) | |
tree | ec371db7748fb9474da4b2c85d0d2b518215346f /test/cairo-test.h | |
parent | abced5b88281a2ada819ccfe670616024765b7f7 (diff) | |
download | cairo-603ea229b54c858d12ffc80a478f1fb0f4023a72.tar.gz |
test: Use cairo_test_list_t for the main test list
Instead of embedding the pointer in the test structure, consistently
use the cairo_test_list_t structure for test lists.
This cleans up the code as the reverse-list operation can be reused.
Moreover this makes the code clearer, because each test list is now
independent and has no way to know about other test lists.
Diffstat (limited to 'test/cairo-test.h')
-rw-r--r-- | test/cairo-test.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/cairo-test.h b/test/cairo-test.h index 5e342a4da..d41cd29b1 100644 --- a/test/cairo-test.h +++ b/test/cairo-test.h @@ -153,7 +153,6 @@ typedef cairo_test_status_t (cairo_test_draw_function_t) (cairo_t *cr, int width, int height); struct _cairo_test { - struct _cairo_test *next; const char *name; const char *description; const char *keywords; @@ -194,7 +193,7 @@ struct _cairo_test { void _register_##name (void); \ void _register_##name (void) { \ static cairo_test_t test = { \ - NULL, #name, description, \ + #name, description, \ keywords, requirements, \ width, height, \ preamble, draw \ |