aboutsummaryrefslogtreecommitdiff
path: root/sys/libbio/io/newick.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-30 11:54:19 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-30 11:54:19 -0700
commit9e83bf8c3656b736ba3a14d9b7b8af61b48415f4 (patch)
tree4417ac3eafdd744d7a944a6da6bf630844ef5f90 /sys/libbio/io/newick.c
parent86134ccf82dcafe338e68c14e483ec98cfc94925 (diff)
chore: move from new to make prefix of constructors
Diffstat (limited to 'sys/libbio/io/newick.c')
-rw-r--r--sys/libbio/io/newick.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/libbio/io/newick.c b/sys/libbio/io/newick.c
index 038b41c..f9be2d2 100644
--- a/sys/libbio/io/newick.c
+++ b/sys/libbio/io/newick.c
@@ -229,7 +229,7 @@ parse(struct Parser *p)
errorf("incorrect format: comment found in disallowed region");
goto ERROR;
}
- node->comment = str·new("");
+ node->comment = str·make("");
while (tok.kind != tok·rbrak) {
tok = lex_nospace(p->file, p->fimpl);
if (tok.kind == tok·eof || tok.kind == tok·nil) {
@@ -268,7 +268,7 @@ parse(struct Parser *p)
errorf("parse error: attempting to set name of nil node");
goto ERROR;
}
- node->name = str·new(tok.lit.s);
+ node->name = str·make(tok.lit.s);
} else {
if (p->tok.kind != tok·lparen && p->tok.kind != tok·comma) {
errorf("format error: misplaced identifier for leaf found");
@@ -282,7 +282,7 @@ parse(struct Parser *p)
node = p->heap.alloc(p->himpl, 1, sizeof(*node));
memset(node, 0, sizeof(*node));
- node->name = str·new(tok.lit.s);
+ node->name = str·make(tok.lit.s);
phylo·addchild(p->root, node);
}