aboutsummaryrefslogtreecommitdiff
path: root/libstorycode
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-09-30 21:21:11 +0200
committerThomas White <taw@physics.org>2019-10-05 17:03:43 +0200
commitfce8282ac36530de210985473f9d787f2d525e75 (patch)
tree6b1bc63efe4518a8c9f11d994dc10b98bb5c8e6a /libstorycode
parent514b3ba5b1efb7d1d00edddb8deaf92b37b8af32 (diff)
Remove debug
Diffstat (limited to 'libstorycode')
-rw-r--r--libstorycode/storycode.y6
1 files changed, 0 insertions, 6 deletions
diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y
index d654bd7..943ba27 100644
--- a/libstorycode/storycode.y
+++ b/libstorycode/storycode.y
@@ -182,10 +182,7 @@ void push_paragraph(struct many_paragraphs *mp, struct paragraph p)
mp->paras = nparas;
}
-printf("pushing para with %i runs\n", p.n_runs);
-
mp->paras[mp->n_paras++] = p;
- printf("now %i paras\n", mp->n_paras);
}
@@ -195,13 +192,10 @@ struct text_run **combine_paras(struct many_paragraphs mp, int **pn_runs)
int *n_runs;
int i;
- printf("combining %i paras\n", mp.n_paras);
combined_paras = malloc(mp.n_paras * sizeof(struct text_run *));
n_runs = malloc(mp.n_paras * sizeof(int));
for ( i=0; i<mp.n_paras; i++ ) {
- printf("para %i (%i runs)\n", i, mp.paras[i].n_runs);
for ( int j=0; j<mp.paras[i].n_runs; j++ ) {
- printf("run %i: '%s'\n", j, mp.paras[i].runs[j].text);
}
combined_paras[i] = mp.paras[i].runs;
n_runs[i] = mp.paras[i].n_runs;