aboutsummaryrefslogtreecommitdiff
path: root/sys/libbio/io/newick.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-25 11:38:29 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-25 11:38:29 -0700
commit788ddbd8e113cd4f9694aee779c5b5dcca26e30b (patch)
tree32e2db53cf5cd3fb907e6b17ab9ef6bdab8d9f4c /sys/libbio/io/newick.c
parent1f166f0a4ed9ed32ade1ed21a571c9b2d0171ebc (diff)
feat: updated fasta code to allow for iteration
Diffstat (limited to 'sys/libbio/io/newick.c')
-rw-r--r--sys/libbio/io/newick.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/libbio/io/newick.c b/sys/libbio/io/newick.c
index 8b02446..0c9921b 100644
--- a/sys/libbio/io/newick.c
+++ b/sys/libbio/io/newick.c
@@ -309,7 +309,7 @@ ERROR:
}
bio·Tree
-bio·readnewick(io·Peeker stream, void *si, mem·Allocator heap, void *hi)
+bio·readnewick(io·Peeker stream, void *s, mem·Allocator heap, void *h)
{
error err;
struct Parser p;
@@ -319,9 +319,9 @@ bio·readnewick(io·Peeker stream, void *si, mem·Allocator heap, void *hi)
.lev = 0,
.root = nil,
.tok = (struct Token){ 0 },
- .fimpl = si,
+ .fimpl = s,
.file = stream,
- .himpl = hi,
+ .himpl = h,
.heap = heap,
};
err = parse(&p);
@@ -337,6 +337,7 @@ bio·readnewick(io·Peeker stream, void *si, mem·Allocator heap, void *hi)
// -----------------------------------------------------------------------
// Write
+static
error
dump(bio·Node *node, void *impl, io·Putter out)
{