Mercurial > baum
comparison baum.c @ 40:5c13e29bc6fd
removed debug output of read_input
author | meillo@marmaro.de |
---|---|
date | Sat, 01 Mar 2008 20:15:20 +0100 |
parents | ff01f0f076e4 |
children | 1ad3d7305e5d |
comparison
equal
deleted
inserted
replaced
39:96e2d58bc346 | 40:5c13e29bc6fd |
---|---|
151 } | 151 } |
152 } | 152 } |
153 | 153 |
154 if (c == '\n') { /* end of line: create node */ | 154 if (c == '\n') { /* end of line: create node */ |
155 if (strlen(name) > 0) { | 155 if (strlen(name) > 0) { |
156 if (option_verbose) { | |
157 fprintf(stderr, " %d - %s - %d\n", indent, name, value); | |
158 } | |
159 /* create node */ | 156 /* create node */ |
160 node = newNode((char*) name, value); | 157 node = newNode((char*) name, value); |
161 if (indent > last_indent) { /* down */ | 158 if (indent > last_indent) { /* down */ |
162 /* if it goes more than one level down -> error */ | 159 /* if it goes more than one level down -> error */ |
163 if (indent > last_indent + 1) { | 160 if (indent > last_indent + 1) { |