diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-21 10:43:02 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-21 10:43:02 -0700 |
commit | 06f60ae1b3c7d11092a5433186360fcbb1221309 (patch) | |
tree | edfdd5088daf0a4b7950ef868c1671707d3f41fe /sys/libn/test.c | |
parent | 4fbf50ddfeeb0e9d99d271e31dd35d545fb42ab6 (diff) |
chore: updated make rules to not link all made libraries
Diffstat (limited to 'sys/libn/test.c')
-rw-r--r-- | sys/libn/test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/libn/test.c b/sys/libn/test.c index 9d5eb81..3f97453 100644 --- a/sys/libn/test.c +++ b/sys/libn/test.c @@ -2,7 +2,7 @@ #include <libn.h> uintptr -printtest(coro *c, uintptr d) +printtest(Coro *c, uintptr d) { printf("--> Recieved %lu\n", d); d = coro·yield(c, d+10); @@ -12,7 +12,7 @@ printtest(coro *c, uintptr d) } uintptr -sequence(coro *c, uintptr start) +sequence(Coro *c, uintptr start) { int d = start; for (;;) { @@ -24,15 +24,15 @@ sequence(coro *c, uintptr start) struct PrimeMsg { - coro *seq; + Coro *seq; int p; }; uintptr -filter(coro *c, uintptr data) +filter(Coro *c, uintptr data) { int x, p; - coro *seq; + Coro *seq; struct PrimeMsg *msg; // Need to copy relevant variables onto the local stack @@ -55,7 +55,7 @@ int main() { int i; - coro *c[4]; + Coro *c[4]; uintptr d; printf("Starting singleton test\n"); @@ -86,7 +86,7 @@ main() /* Prime sieve */ printf("Starting prime test\n"); uintptr num; - coro *cur, *seq[50]; + Coro *cur, *seq[50]; num = 2; seq[0] = coro·new(4096, &sequence); |