1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-14 01:20:27 +00:00

Add missing fileno method to file, sort method list.

This commit is contained in:
Andrew Chambers 2019-11-28 14:43:46 +13:00
parent 74d51ab08b
commit 88f28773da

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}
};