From 0369b1505b019becfb74ccd9c82f9f7700af377a Mon Sep 17 00:00:00 2001 From: Nicholas Date: Fri, 12 Nov 2021 16:59:46 -0800 Subject: chore: error->int --- include/libbio.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'include/libbio.h') 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); -- cgit v1.2.1