summaryrefslogtreecommitdiff
path: root/src/util/BinaryTree.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/BinaryTree.h')
-rw-r--r--src/util/BinaryTree.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/util/BinaryTree.h b/src/util/BinaryTree.h
index f4dce162..33e02b62 100644
--- a/src/util/BinaryTree.h
+++ b/src/util/BinaryTree.h
@@ -5,11 +5,16 @@
@desc
Prototypes and data definitions for binary tree routines.
@enddesc
+ @version $Header$
@@*/
#ifndef _BINARYTREE_H_
#define _BINARYTREE_H_
+#ifdef _cplusplus
+extern "C" {
+#endif
+
typedef struct T_TREE
{
struct T_TREE *left;
@@ -19,9 +24,6 @@ typedef struct T_TREE
void *data;
} t_tree;
-#ifdef _cplusplus
-extern "C" {
-#endif
t_tree *TreeStoreData(t_tree *root, t_tree *subtree, void *data, int (*compare)(const void *, const void *));
@@ -36,7 +38,7 @@ void TreePrintNodes(t_tree *root, int depth, void (*print_node)(void *, int));
t_tree *TreeFindNode(t_tree *root, void *data, int (*compare)(const void *, const void *));
#ifdef _cplusplus
- }
+ }
#endif
#endif