1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-13 03:58:06 +00:00

Add ev/to-stream.

This function is symmetrical to ev/to-file and can convert a blocking
file to a stream (with caveats).
This commit is contained in:
Calvin Rose
2025-04-11 21:10:04 -05:00
parent 647e218bed
commit 92a852f2df
3 changed files with 37 additions and 3 deletions

View File

@@ -596,6 +596,7 @@ typedef void *JanetAbstract;
#define JANET_STREAM_WRITABLE 0x400
#define JANET_STREAM_ACCEPTABLE 0x800
#define JANET_STREAM_UDPSERVER 0x1000
#define JANET_STREAM_NOT_CLOSEABLE 0x2000
#define JANET_STREAM_TOCLOSE 0x10000
typedef enum {