static\r
void crawl_class\r
( struct ir_class_t* class )\r
-{ wprintf("%U/\n", class->name);\r
- if(chdir((char*)class->name))\r
- eprintf("CHDIR %U from %s\n",class->name,getcwd(NULL,255));\r
- if (class->nextchild != NULL)\r
- crawl_class(class->nextchild);\r
- if (class->root_set != NULL)\r
- crawl_set(class->root_set, 0);\r
- if (class->nextsib != NULL)\r
- { if (chdir(".."))\r
+{ struct ir_class_t* iter;\r
+ for (iter = class->nextchild; iter != NULL; iter = iter->nextsib)\r
+ { wprintf("%U/\n", iter->name);\r
+ if(chdir((char*)iter->name))\r
+ eprintf("CHDIR %U from %s\n",iter->name,getcwd(NULL,255));\r
+ crawl_class(iter);\r
+ if (iter->root_set != NULL)\r
+ crawl_set(iter->root_set, 0);\r
+ uprintf("%U\\\n",iter->name);\r
+ if (chdir(".."))\r
eprintf("CHDIR ..\n");\r
- crawl_class(class->nextsib);\r
- if(chdir((char*)class->name))\r
- eprintf("CHDIR %U from %s\n",class->name,getcwd(NULL,255));\r
}\r
- uprintf("%U\\\n",class->name);\r
- if (chdir(".."))\r
- eprintf("CHDIR ..\n");\r
}\r
\r
static\r