cmark

My personal build of CMark ✏️

Commit
91910b094af8bedb08f612ec3e4036a25a748a0f
Parent
ebb36b078f9276372d04c1b6993fe4fa42d74d66
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed unnecessary C99-ism.

Diffstat

1 file changed, 5 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/print.c 7 5 2
diff --git 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(' ');
 		}