aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-22 18:15:17 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-22 18:15:17 -0700
commitfb4c4ceba416376751196cdbbdb5f7240e08a405 (patch)
treebb874085d6d7715c24da544e9f71ef05e6a2a80a /include
parent583656a3537bc43a28c58111520143df04bf27f2 (diff)
fix: bug squashing with newick parser
Diffstat (limited to 'include')
-rw-r--r--include/libbio.h4
-rw-r--r--include/libn.h1
2 files changed, 4 insertions, 1 deletions
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);
// -----------------------------------------------------------------------------