macro removal
authorken <ken@mihrtec.com>
Sat, 21 Jan 2017 23:34:26 +0000 (15:34 -0800)
committerken <ken@mihrtec.com>
Sat, 21 Jan 2017 23:34:26 +0000 (15:34 -0800)
src/ir.c

index d0abf1f..cb5fafd 100644 (file)
--- a/src/ir.c
+++ b/src/ir.c
@@ -666,9 +666,10 @@ static void crawl_set(struct ir_set_t*,int);
 void     ir_test(void)\r
 { uprintf("IR From Directory: %s\n",getcwd(NULL,255));\r
   crawl_class(&root_class);\r
+  if (root_class.root_set != NULL)\r
+    crawl_set(root_class.root_set, 0);\r
 }\r
 \r
-#define pspace(num) for (i = 0; i < (num); i++) putchar('.')\r
 static\r
 void crawl_class\r
 ( struct ir_class_t* class )\r
@@ -692,8 +693,9 @@ void crawl_set
   int depth\r
 )\r
 { struct ir_set_t* setlist[64], ** slp, * iter;\r
-  int i;\r
-  pspace(depth * 12);\r
+  int i = depth * 12;\r
+  while (i--)\r
+    putchar('.');\r
   i = depth;\r
   slp = setlist;\r
   for(iter = set; iter != NULL; iter = iter->nextchild)\r