comparison baum.h @ 26:f0856c177403

removed obsolete stuff; only relevant stuff is extern now; refactoring
author meillo@marmaro.de
date Tue, 19 Feb 2008 22:23:37 +0100
parents e2048e569891
children ff01f0f076e4
comparison
equal deleted inserted replaced
25:6f2c1f9dc08f 26:f0856c177403
1 1
2 void logit(char* text); 2 void logit(char* text);
3 3
4 struct Node* newNode(char* name, unsigned char value); 4 struct Node* newNode(char* name, unsigned char value);
5 void setValue(struct Node* node, unsigned char value);
6 void delete(struct Node* node);
7 void printNode(struct Node* node);
8 void printTree(struct Node* root);
9 void traverse(struct Node* root);
10
11 struct Node* nextNode(struct Node* node);
12 struct Node* lastNode(struct Node* node);
13 struct Node* insertLast(struct Node* node, struct Node* insert); 5 struct Node* insertLast(struct Node* node, struct Node* insert);
14 6
15 7
8 /* structs */
16 struct Node { 9 struct Node {
17 char name[256]; 10 char name[256];
18 unsigned char value; 11 unsigned char value;
19 struct Node* down; 12 struct Node* down;
20 struct Node* right; 13 struct Node* right;
21 }; 14 };
22 15
23
24 struct Stackitem { 16 struct Stackitem {
25 struct Node* node; 17 struct Node* node;
26 struct Stackitem* next; 18 struct Stackitem* next;
27 }; 19 };