summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index be3bced..b5ef056 100644
--- a/src/print.c
+++ b/src/print.c
@@ -35,8 +35,10 @@ static void print_str(const unsigned char *s, int len)
// Prettyprint an inline list, for debugging.
static void print_inlines(node_inl* ils, int indent)
{
+ int i;
+
while(ils != NULL) {
- for (int i=0; i < indent; i++) {
+ for (i=0; i < indent; i++) {
putchar(' ');
}
switch(ils->tag) {
@@ -93,9 +95,10 @@ static void print_inlines(node_inl* ils, int indent)
static void print_blocks(node_block* b, int indent)
{
struct ListData *data;
+ int i;
while(b != NULL) {
- for (int i=0; i < indent; i++) {
+ for (i=0; i < indent; i++) {
putchar(' ');
}