1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-27 15:43:17 +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
commit 5b9e37e2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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