aboutsummaryrefslogtreecommitdiff
path: root/include/libbio.h
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-12 16:59:46 -0800
committerNicholas <nbnoll@eml.cc>2021-11-12 16:59:46 -0800
commit0369b1505b019becfb74ccd9c82f9f7700af377a (patch)
tree2aee8181da2e419d882cae1d5a3ff5a2c45bcc93 /include/libbio.h
parentce05175372a9ddca1a225db0765ace1127a39293 (diff)
chore: error->int
Diffstat (limited to 'include/libbio.h')
-rw-r--r--include/libbio.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/libbio.h b/include/libbio.h
index 9438b74..2e043fb 100644
--- a/include/libbio.h
+++ b/include/libbio.h
@@ -23,15 +23,15 @@ typedef struct bio·Tree
} bio·Tree;
/* clade manipulation */
-error phylo·addchild(bio·Node* parent, bio·Node* child);
-error phylo·rmchild(bio·Node* parent, bio·Node* child);
+int phylo·addchild(bio·Node* parent, bio·Node* child);
+int phylo·rmchild(bio·Node* parent, bio·Node* child);
/* clade statistics */
-error phylo·countnodes(bio·Node *node, int *n);
-error phylo·countleafs(bio·Node *node, int *n);
+int phylo·countnodes(bio·Node *node, int *n);
+int phylo·countleafs(bio·Node *node, int *n);
/* topological sorting */
-error phylo·ladderize(bio·Node *root);
+int phylo·ladderize(bio·Node *root);
double phylo·diameter(bio·Tree tree, int *len, bio·Node **path);
/* generic computation on tree */
@@ -42,8 +42,8 @@ void *phylo·preorder(bio·Node *clade, void *(*op)(bio·Node*, void*), void *ct
void phylo·getleafs(bio·Tree tree, bio·Node **leafs);
/* newick i/o */
-error bio·readnewick(io·Peeker io, void* rdr, bio·Tree* tree);
-error bio·writenewick(bio·Tree tree, io·Putter out, void*);
+int bio·readnewick(io·Peeker io, void* rdr, bio·Tree* tree);
+int bio·writenewick(bio·Tree tree, io·Putter out, void*);
// -----------------------------------------------------------------------
// Sequences
@@ -60,10 +60,10 @@ typedef struct bio·Seq
} bio·Seq;
bio·SeqReader *bio·openseq(io·Reader io, void *rdr, mem·Allocator mem, void *heap);
-error bio·closeseq(bio·SeqReader *rdr);
+int bio·closeseq(bio·SeqReader *rdr);
-error bio·readfasta(bio·SeqReader *rdr, bio·Seq *seq);
-error bio·readfastq(bio·SeqReader *rdr, bio·Seq *seq);
+int bio·readfasta(bio·SeqReader *rdr, bio·Seq *seq);
+int bio·readfastq(bio·SeqReader *rdr, bio·Seq *seq);
-error bio·writefasta(io·Writer io, void *wtr, bio·Seq seq);
-error bio·writefastq(io·Writer io, void *wtr, bio·Seq seq);
+int bio·writefasta(io·Writer io, void *wtr, bio·Seq seq);
+int bio·writefastq(io·Writer io, void *wtr, bio·Seq seq);