diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-04 20:44:58 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-04 20:44:58 +0000 |
commit | 60b45d66a082bc7bf84575907723397ce52dff3a (patch) | |
tree | 95fed523a75f51e202828171fca81b1f290b37b7 /src/include/SKBinTree.h | |
parent | 3a49de09ea001f18d6e58d236c80e2b39a4b78d0 (diff) |
Stuff for the ActiveThorns parameter.
Now need to specify ActiveThorns before any other parameters to list those
thorns which are active. No parameters or startup or rfr routines are
available from inactive thorns.
Note that this isn't quite working yet but I hope to track it down by morning.
In the meantime either don't update or be prepared for things to be slightly
broken.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@645 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/SKBinTree.h')
-rw-r--r-- | src/include/SKBinTree.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/include/SKBinTree.h b/src/include/SKBinTree.h new file mode 100644 index 00000000..6ff6153b --- /dev/null +++ b/src/include/SKBinTree.h @@ -0,0 +1,47 @@ + /*@@ + @header BinaryTree.h + @date Mon Oct 5 11:01:20 1998 + @author Tom Goodale + @desc + Prototypes and data definitions for binary tree routines. + @enddesc + @@*/ + +#ifndef _SKBINTREE_H_ +#define _SKBINTREE_H_ + +typedef struct T_SKTREE +{ + struct T_SKTREE *left; + struct T_SKTREE *right; + struct T_SKTREE *next; + + char *key; + + void *data; +} t_sktree; + +#ifdef _cplusplus +extern "C" { +#endif + +t_sktree *SKTreeStoreData(t_sktree *root, + t_sktree *subtree, + const char *key, + void *data); + +int SKTreeTraverseInorder(t_sktree *root, int (*process)(void *, void *), void *info); + +int SKTreeTraversePreorder(t_sktree *root, int (*process)(void *, void *), void *info); + +int SKTreeTraversePostorder(t_sktree *root, int (*process)(void *, void *), void *info); + +void SKTreePrintNodes(t_sktree *root, int depth, void (*print_node)(void *, int)); + +t_sktree *SKTreeFindNode(t_sktree *root, const char *key); + +#ifdef _cplusplus + } +#endif + +#endif |