From d70049dbb173ba7c16fbfa4071047ba56936ae96 Mon Sep 17 00:00:00 2001 From: "J.-F. Cap" Date: Wed, 27 Feb 2019 10:54:10 +0100 Subject: [PATCH] Register core/file abstract type --- src/core/io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/io.c b/src/core/io.c index 0a6534d4..3540dd40 100644 --- a/src/core/io.c +++ b/src/core/io.c @@ -416,4 +416,7 @@ void janet_lib_io(JanetTable *env) { janet_core_def(env, "stdin", makef(stdin, IO_READ | IO_NOT_CLOSEABLE | IO_SERIALIZABLE), JDOC("The standard input file.")); + + janet_register_abstract_type(&cfun_io_filetype); + }