comparison baum.c @ 53:036779d5da75

"sum" node clears its value now everytime it gets called
author meillo@marmaro.de
date Sun, 02 Mar 2008 16:32:52 +0100
parents c31b5bb6d493
children 6e46b106c334
comparison
equal deleted inserted replaced
52:201b4603671a 53:036779d5da75
274 } 274 }
275 275
276 read_input(argv[0]); 276 read_input(argv[0]);
277 277
278 if (option_verbose) { 278 if (option_verbose) {
279 fprintf(stderr, "\n\ntree read from input\n(should be the same without comments and empty lines)\n\n"); 279 fprintf(stderr, "\n\ntree read from input:\n");
280 printTree(root, 0); 280 printTree(root, 1);
281 } 281 }
282 282
283 shell_return = action(root); 283 shell_return = action(root);
284 fflush(stdout); 284 fflush(stdout);
285 285
286 if (option_verbose) { 286 if (option_verbose) {
287 fprintf(stderr, "\n\ntree after execution of the program\n\n"); 287 fprintf(stderr, "\n\nmodified tree after execution:\n");
288 printTree(root, 0); 288 printTree(root, 1);
289 } 289 }
290 290
291 delete(root); 291 delete(root);
292 exit(shell_return); 292 exit(shell_return);
293 } 293 }