diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-01-17 10:13:46 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-01-17 10:13:46 +0100 |
commit | 93956372d317fc90f8751e6b319e0055507c2519 (patch) | |
tree | 9c290978d9ad8a05a1da66ffc4839232b3102899 /tests | |
parent | bc49b9f3fd00ebc3bd62a51bb2321822618e838d (diff) |
Unwrapped text belongs to frame, not interpreter
Diffstat (limited to 'tests')
-rw-r--r-- | tests/render_test.c | 6 | ||||
-rw-r--r-- | tests/render_test_sc1.c | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/tests/render_test.c b/tests/render_test.c index 79d1110..88bcf6a 100644 --- a/tests/render_test.c +++ b/tests/render_test.c @@ -3,7 +3,7 @@ * * Rendering test * - * Copyright © 2012-2013 Thomas White <taw@bitwiz.org.uk> + * Copyright © 2012-2014 Thomas White <taw@bitwiz.org.uk> * * This file is part of Colloquium. * @@ -79,10 +79,8 @@ int main(int argc, char *argv[]) gtk_init(&argc, &argv); - fr = calloc(1, sizeof(struct frame)); + fr = frame_new(); if ( fr == NULL ) return 1; - fr->children = NULL; - fr->num_children = 0; fr->scblocks = sc_parse(sc); if ( fr->scblocks == NULL ) { fprintf(stderr, "SC parse failed.\n"); diff --git a/tests/render_test_sc1.c b/tests/render_test_sc1.c index f84c13a..63c59d7 100644 --- a/tests/render_test_sc1.c +++ b/tests/render_test_sc1.c @@ -77,10 +77,8 @@ int main(int argc, char *argv[]) gtk_init(&argc, &argv); - fr = calloc(1, sizeof(struct frame)); + fr = frame_new(); if ( fr == NULL ) return 1; - fr->children = NULL; - fr->num_children = 0; fr->scblocks = sc_parse(sc); if ( fr->scblocks == NULL ) { fprintf(stderr, "SC parse failed.\n"); |