summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-06 22:52:58 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-06 22:53:33 -0800
commit91910b094af8bedb08f612ec3e4036a25a748a0f (patch)
tree85c7baed23120b89fcbd9f899ad349ae50fea5b5 /src/print.c
parentebb36b078f9276372d04c1b6993fe4fa42d74d66 (diff)
Removed unnecessary C99-ism.
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(' ');
}