Mercurial > baum
annotate baum.h @ 52:201b4603671a
documented "if" and "while" in the man page; new error code 7
author | meillo@marmaro.de |
---|---|
date | Sun, 02 Mar 2008 16:26:06 +0100 |
parents | c31b5bb6d493 |
children |
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); |
46 | 5 struct Node* copyTree(struct Node* node); |
2 | 6 |
47
c31b5bb6d493
merged header files into only one (removed actions.h)
meillo@marmaro.de
parents:
46
diff
changeset
|
7 unsigned char action(struct Node* node); /* in actions.c */ |
2 | 8 |
26
f0856c177403
removed obsolete stuff; only relevant stuff is extern now; refactoring
meillo@marmaro.de
parents:
15
diff
changeset
|
9 /* structs */ |
1
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
10 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
|
11 char name[256]; |
3
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
12 unsigned char value; |
1
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
13 struct Node* down; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
14 struct Node* right; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
15 }; |