1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-19 15:14:48 +00:00

Merge branch 'master' into bundle-tools

This commit is contained in:
Calvin Rose 2024-06-12 18:28:23 -05:00
commit dbc5d688e2
2 changed files with 0 additions and 11 deletions

View File

@ -281,13 +281,9 @@ void janet_async_start(JanetStream *stream, JanetAsyncMode mode, JanetEVCallback
janet_assert(!fiber->ev_callback, "double async on fiber"); janet_assert(!fiber->ev_callback, "double async on fiber");
if (mode & JANET_ASYNC_LISTEN_READ) { if (mode & JANET_ASYNC_LISTEN_READ) {
stream->read_fiber = fiber; stream->read_fiber = fiber;
} else {
stream->read_fiber = NULL;
} }
if (mode & JANET_ASYNC_LISTEN_WRITE) { if (mode & JANET_ASYNC_LISTEN_WRITE) {
stream->write_fiber = fiber; stream->write_fiber = fiber;
} else {
stream->write_fiber = NULL;
} }
fiber->ev_callback = callback; fiber->ev_callback = callback;
fiber->ev_stream = stream; fiber->ev_stream = stream;

View File

@ -319,13 +319,6 @@ JANET_CORE_FN(cfun_table_new,
int32_t cap = janet_getnat(argv, 0); int32_t cap = janet_getnat(argv, 0);
return janet_wrap_table(janet_table(cap)); return janet_wrap_table(janet_table(cap));
} }
/*
uint32_t flags = janet_getflags(argv, 1, "kv");
if (flags == 0) return janet_wrap_table(janet_table(cap));
if (flags == 1) return janet_wrap_table(janet_table_weakk(cap));
if (flags == 2) return janet_wrap_table(janet_table_weakv(cap));
return janet_wrap_table(janet_table_weakkv(cap));
*/
JANET_CORE_FN(cfun_table_weak, JANET_CORE_FN(cfun_table_weak,
"(table/weak capacity)", "(table/weak capacity)",