Mercurial > baum
annotate baum.h @ 38:ff01f0f076e4
option_verbose is now global; stuff about warning when (expected) nodes are not there
author | meillo@marmaro.de |
---|---|
date | Sat, 01 Mar 2008 20:04:08 +0100 |
parents | f0856c177403 |
children | 1ad3d7305e5d |
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 void logit(char* text); | |
4 | |
3
15d7d6b9766f
added input; added nextNode, lastNode, insertLast
meillo@marmaro.de
parents:
2
diff
changeset
|
5 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
|
6 struct Node* insertLast(struct Node* node, struct Node* insert); |
2 | 7 |
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 }; |
3da0ff17c8e7
added features (print, sum, number); split in header file
meillo@marmaro.de
parents:
diff
changeset
|
16 |
10 | 17 struct Stackitem { |
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
|
18 struct Node* node; |
10 | 19 struct Stackitem* next; |
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
|
20 }; |