aboutsummaryrefslogtreecommitdiff
path: root/tests/render_test.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-01-17 10:13:46 +0100
committerThomas White <taw@bitwiz.org.uk>2014-01-17 10:13:46 +0100
commit93956372d317fc90f8751e6b319e0055507c2519 (patch)
tree9c290978d9ad8a05a1da66ffc4839232b3102899 /tests/render_test.c
parentbc49b9f3fd00ebc3bd62a51bb2321822618e838d (diff)
Unwrapped text belongs to frame, not interpreter
Diffstat (limited to 'tests/render_test.c')
-rw-r--r--tests/render_test.c6
1 files changed, 2 insertions, 4 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");