diff options
author | Nicholas <nbnoll@eml.cc> | 2021-11-12 16:59:46 -0800 |
---|---|---|
committer | Nicholas <nbnoll@eml.cc> | 2021-11-12 16:59:46 -0800 |
commit | 0369b1505b019becfb74ccd9c82f9f7700af377a (patch) | |
tree | 2aee8181da2e419d882cae1d5a3ff5a2c45bcc93 /src/libbio/phylo.c | |
parent | ce05175372a9ddca1a225db0765ace1127a39293 (diff) |
chore: error->int
Diffstat (limited to 'src/libbio/phylo.c')
-rw-r--r-- | src/libbio/phylo.c | 26 |
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; |