From fb4c4ceba416376751196cdbbdb5f7240e08a405 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 22 Apr 2020 18:15:17 -0700 Subject: fix: bug squashing with newick parser --- include/libbio.h | 4 +++- include/libn.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libbio.h b/include/libbio.h index d8430b3..58540d4 100644 --- a/include/libbio.h +++ b/include/libbio.h @@ -16,7 +16,8 @@ typedef struct bio·Node struct bio·Node *sibling; } bio·Node; -error phylo·addchild(bio·Node* parent, bio·Node* child); +error phylo·addchild(bio·Node *parent, bio·Node* child); +bool phylo·isleaf(bio·Node *node); typedef struct bio·Tree { @@ -24,6 +25,7 @@ typedef struct bio·Tree } bio·Tree; bio·Tree bio·readnewick(Stream *file, mem·Allocator heap); +error bio·writenewick(bio·Tree tree, Stream *out); // ----------------------------------------------------------------------- // Sequences diff --git a/include/libn.h b/include/libn.h index 203a477..c8d510f 100644 --- a/include/libn.h +++ b/include/libn.h @@ -104,6 +104,7 @@ int io·readln(Stream *s, int n, byte* buf); error io·putbyte(Stream *s, byte c); int io·putstring(Stream *s, string str); vlong io·write(Stream *s, int sz, int n, void *buf); +int io·flush(Stream *s); int io·seek(Stream *s, long off, enum SeekPos origin); // ----------------------------------------------------------------------------- -- cgit v1.2.1