-
-
-static void display_node (const struct TreeNode *tn, int depth) {
-
- int i;
- const struct TreeNode *s;
-
-
- for (i=0; i<depth; ++i) {
- putchar('\t');
- }
-
- puts(tn->name);
-
- if ( tn->sub==NULL ) return;
-
- for (s=tn->sub; s->name!=NULL; ++s) {
- display_node(s, depth+1);
- }
-
-
+static void display_node (const struct TreeNode *tn, int depth)
+{
+ int i;
+ const struct TreeNode *s;
+
+
+ for (i = 0; i < depth; i++)
+ putchar('\t');
+ puts(tn->name);
+
+ if (tn->sub == NULL)
+ return;
+
+ for (s = tn->sub; s->name != NULL; s++)
+ display_node(s, depth + 1);