baum

diff 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
line diff
     1.1 --- a/baum.c	Sun Mar 02 16:26:06 2008 +0100
     1.2 +++ b/baum.c	Sun Mar 02 16:32:52 2008 +0100
     1.3 @@ -276,16 +276,16 @@
     1.4  	read_input(argv[0]);
     1.5  
     1.6  	if (option_verbose) {
     1.7 -		fprintf(stderr, "\n\ntree read from input\n(should be the same without comments and empty lines)\n\n");
     1.8 -		printTree(root, 0);
     1.9 +		fprintf(stderr, "\n\ntree read from input:\n");
    1.10 +		printTree(root, 1);
    1.11  	}
    1.12  
    1.13  	shell_return = action(root);
    1.14  	fflush(stdout);
    1.15  
    1.16  	if (option_verbose) {
    1.17 -		fprintf(stderr, "\n\ntree after execution of the program\n\n");
    1.18 -		printTree(root, 0);
    1.19 +		fprintf(stderr, "\n\nmodified tree after execution:\n");
    1.20 +		printTree(root, 1);
    1.21  	}
    1.22  
    1.23  	delete(root);