baum

diff actions.c @ 10:0e15841ae111

s/list/stack/g because thats what it is
author meillo@marmaro.de
date Sat, 09 Feb 2008 16:49:29 +0100
parents c202ccccedb5
children 8a8da74530dd
line diff
     1.1 --- a/actions.c	Sat Feb 09 16:41:41 2008 +0100
     1.2 +++ b/actions.c	Sat Feb 09 16:49:29 2008 +0100
     1.3 @@ -74,7 +74,8 @@
     1.4  unsigned char action_input(struct Node* node) {
     1.5  	/*
     1.6  	unsigned char input = (unsigned char) getchar();
     1.7 -	getchar();  /* catches the newline */
     1.8 +	getchar();
     1.9 +	*/
    1.10  
    1.11  	/* reads a number which is treated as ASCII value */
    1.12  	int input;
    1.13 @@ -90,7 +91,7 @@
    1.14  	struct Node* tp;
    1.15  	unsigned char i;
    1.16  	tp = node->down;
    1.17 -	for (i; i < node->value; i++) {
    1.18 +	for (i = 0; i < node->value; i++) {
    1.19  		/* deep copy */
    1.20  	}
    1.21  	return 0;