Mercurial > baum
annotate baum.h @ 43:c7dca4a1dc37
added test programs; added another example program
author | meillo@marmaro.de |
---|---|
date | Sat, 01 Mar 2008 21:13:12 +0100 |
parents | 1ad3d7305e5d |
children | 0b82169d4129 |
rev | line source |
---|---|
38
ff01f0f076e4
option_verbose is now global; stuff about warning when (expected) nodes are not there
meillo@marmaro.de
parents:
26
diff
changeset
|
1 int option_verbose; |
2 | 2 |
3
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
3 struct Node* newNode(char* name, unsigned char value); |
15
e2048e569891
insertLast returns now new inserted node; very dumb implementation for action_times
meillo@marmaro.de
parents:
10
diff
changeset
|
4 struct Node* insertLast(struct Node* node, struct Node* insert); |
2 | 5 |
6 | |
26
f0856c177403
removed obsolete stuff; only relevant stuff is extern now; refactoring
meillo@marmaro.de
parents:
15
diff
changeset
|
7 /* structs */ |
1
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
8 struct Node { |
9
c020b0d1cfca
read input is now finished in first version; removed init; added push and pull; name is now array instead of pointer
meillo@marmaro.de
parents:
3
diff
changeset
|
9 char name[256]; |
3
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
10 unsigned char value; |
1
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
11 struct Node* down; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
12 struct Node* right; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
13 }; |