From 788ddbd8e113cd4f9694aee779c5b5dcca26e30b Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 25 Apr 2020 11:38:29 -0700 Subject: feat: updated fasta code to allow for iteration --- sys/libbio/io/newick.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/libbio/io/newick.c') 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) { -- cgit v1.2.1