baum
diff actions.c @ 36:b11ac43f3917
removed node blackhole and substituted by node number now executing its child
author | meillo@marmaro.de |
---|---|
date | Sat, 01 Mar 2008 17:51:25 +0100 |
parents | 4e60d96265f0 |
children | ff01f0f076e4 |
line diff
1.1 --- a/actions.c Sat Mar 01 17:49:33 2008 +0100 1.2 +++ b/actions.c Sat Mar 01 17:51:25 2008 +0100 1.3 @@ -9,7 +9,6 @@ 1.4 unsigned char action_number(struct Node* node); 1.5 unsigned char action_input(struct Node* node); 1.6 unsigned char action_times(struct Node* node); 1.7 -unsigned char action_blackhole(struct Node* node); 1.8 1.9 1.10 1.11 @@ -36,9 +35,6 @@ 1.12 } else if (strcmp(node->name, "times") == 0) { 1.13 return action_times(node); 1.14 1.15 - } else if (strcmp(node->name, "blackhole") == 0) { 1.16 - return action_blackhole(node); 1.17 - 1.18 } else { 1.19 fprintf(stderr, "unknown kind of node\n"); 1.20 exit(4); 1.21 @@ -71,6 +67,7 @@ 1.22 1.23 1.24 unsigned char action_number(struct Node* node) { 1.25 + action(node->down); 1.26 return node->value; 1.27 } 1.28 1.29 @@ -102,11 +99,3 @@ 1.30 } 1.31 return 0; 1.32 } 1.33 - 1.34 - 1.35 -unsigned char action_blackhole(struct Node* node) { 1.36 - action(node->down); 1.37 - return 0; 1.38 -} 1.39 - 1.40 -