diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-30 11:54:19 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-30 11:54:19 -0700 |
commit | 9e83bf8c3656b736ba3a14d9b7b8af61b48415f4 (patch) | |
tree | 4417ac3eafdd744d7a944a6da6bf630844ef5f90 /sys/libn/test.c | |
parent | 86134ccf82dcafe338e68c14e483ec98cfc94925 (diff) |
chore: move from new to make prefix of constructors
Diffstat (limited to 'sys/libn/test.c')
-rw-r--r-- | sys/libn/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/libn/test.c b/sys/libn/test.c index 5ee230f..3a21a71 100644 --- a/sys/libn/test.c +++ b/sys/libn/test.c @@ -63,7 +63,7 @@ test·coro() printf("Starting singleton test\n"); for (i = 0; i < arrlen(c); i++) { - c[i] = coro·new(0, &printtest); + c[i] = coro·make(0, &printtest); } /* Singleton test */ @@ -91,12 +91,12 @@ test·coro() Coro *cur, *seq[50]; num = 2; - seq[0] = coro·new(4096, &sequence); + seq[0] = coro·make(4096, &sequence); cur = *seq; num = coro·yield(cur, num); for (i = 1; i < arrlen(seq); i++) { - seq[i] = coro·new(4096, &filter); + seq[i] = coro·make(4096, &filter); struct PrimeMsg msg = { .seq = cur, .p = num, |