1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-04 10:32:29 +00:00

Merge pull request #181 from andrewchambers/fileno

Add missing fileno method to file, sort method list.
This commit is contained in:
Calvin Rose
2019-11-27 21:06:30 -05:00
committed by GitHub

View File

@@ -345,10 +345,11 @@ static Janet cfun_io_fseek(int32_t argc, Janet *argv) {
static JanetMethod io_file_methods[] = {
{"close", cfun_io_fclose},
{"read", cfun_io_fread},
{"write", cfun_io_fwrite},
{"fileno", cfun_io_fileno},
{"flush", cfun_io_fflush},
{"read", cfun_io_fread},
{"seek", cfun_io_fseek},
{"write", cfun_io_fwrite},
{NULL, NULL}
};