summaryrefslogtreecommitdiff
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:52:58 -0800
commit187149ec3efa72c8ea931e15690943698214d748 (patch)
treec7b10bc623ad00bc12ba98bba1c571d90a5996ef
parent96dd58ea314cc73a155911ecbf21c36dcec37b06 (diff)
Removed unnecessary C99-ism.
-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(' ');
}