changeset 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 3e93e66ff8d3
children 29172b6e802a
files actions.c
diffstat 1 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/actions.c	Sat Mar 01 17:49:33 2008 +0100
+++ b/actions.c	Sat Mar 01 17:51:25 2008 +0100
@@ -9,7 +9,6 @@
 unsigned char action_number(struct Node* node);
 unsigned char action_input(struct Node* node);
 unsigned char action_times(struct Node* node);
-unsigned char action_blackhole(struct Node* node);
 
 
 
@@ -36,9 +35,6 @@
 	} else if (strcmp(node->name, "times") == 0) {
 		return action_times(node);
 
-	} else if (strcmp(node->name, "blackhole") == 0) {
-		return action_blackhole(node);
-
 	} else {
 		fprintf(stderr, "unknown kind of node\n");
 		exit(4);
@@ -71,6 +67,7 @@
 
 
 unsigned char action_number(struct Node* node) {
+	action(node->down);
 	return node->value;
 }
 
@@ -102,11 +99,3 @@
 	}
 	return 0;
 }
-
-
-unsigned char action_blackhole(struct Node* node) {
-	action(node->down);
-	return 0;
-}
-
-