aboutsummaryrefslogtreecommitdiff
path: root/src/libbio/phylo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbio/phylo.c')
-rw-r--r--src/libbio/phylo.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libbio/phylo.c b/src/libbio/phylo.c
index d50934f..41b0f04 100644
--- a/src/libbio/phylo.c
+++ b/src/libbio/phylo.c
@@ -8,7 +8,7 @@
// NOTE: As of now these don't update nnode & nleaf stats.
// It is the caller's responsibility to refresh counts.
-error
+int
phylo·addchild(bio·Node* parent, bio·Node* child)
{
bio·Node *it, *sibling;
@@ -28,7 +28,7 @@ SUCCESS:
return 0;
}
-error
+int
phylo·rmchild(bio·Node *parent, bio·Node *child)
{
bio·Node *it, *prev;
@@ -59,11 +59,11 @@ FOUND:
// -----------------------------------------------------------------------
// subtree statistics
-error
+int
phylo·countnodes(bio·Node *node, int *n)
{
- int m;
- error err;
+ int m;
+ int err;
bio·Node *child;
m = *n;
@@ -79,10 +79,10 @@ phylo·countnodes(bio·Node *node, int *n)
return 0;
}
-error
+int
phylo·countleafs(bio·Node *node, int *n)
{
- error err;
+ int err;
bio·Node *child;
if (!node->nchild) {
@@ -182,11 +182,11 @@ sortnodelist(bio·Node **head, bio·Node *next)
*head = tmp.sibling;
}
-error
+int
phylo·ladderize(bio·Node *root)
{
- int i;
- error err;
+ int i;
+ int err;
bio·Node *child, *sorted, *sibling;
if (!root->nchild) return 0;
@@ -347,10 +347,10 @@ phylo·diameter(bio·Tree tree, int *len, bio·Node **path)
* reroot a tree on a new node
*/
static
-error
+int
rotateparent(bio·Node *node, bio·Node *to)
{
- error err;
+ int err;
// NOTE: will this ever be taken?
if (node->parent == to) {
@@ -385,7 +385,7 @@ RMCHILD:
}
#define PREC .00000001
-error
+int
phylo·reroot(bio·Tree *tree, bio·Node *node, double d)
{
bio·Node *new;