Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
cc54257d
Unverified
Commit
cc54257d
authored
Nov 10, 2019
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Nov 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4814 from shuujii/fix-argument-specs-to-IO
Fix argument specs to `IO`
parents
e50344b5
a7291754
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mrbgems/mruby-io/src/io.c
mrbgems/mruby-io/src/io.c
+7
-7
No files found.
mrbgems/mruby-io/src/io.c
View file @
cc54257d
...
...
@@ -1321,23 +1321,23 @@ mrb_init_io(mrb_state *mrb)
MRB_SET_INSTANCE_TT
(
io
,
MRB_TT_DATA
);
mrb_include_module
(
mrb
,
io
,
mrb_module_get
(
mrb
,
"Enumerable"
));
/* 15.2.20.3 */
mrb_define_class_method
(
mrb
,
io
,
"_popen"
,
mrb_io_s_popen
,
MRB_ARGS_A
NY
(
));
mrb_define_class_method
(
mrb
,
io
,
"_popen"
,
mrb_io_s_popen
,
MRB_ARGS_A
RG
(
1
,
2
));
mrb_define_class_method
(
mrb
,
io
,
"_sysclose"
,
mrb_io_s_sysclose
,
MRB_ARGS_REQ
(
1
));
mrb_define_class_method
(
mrb
,
io
,
"for_fd"
,
mrb_io_s_for_fd
,
MRB_ARGS_A
NY
(
));
mrb_define_class_method
(
mrb
,
io
,
"select"
,
mrb_io_s_select
,
MRB_ARGS_A
NY
(
));
mrb_define_class_method
(
mrb
,
io
,
"sysopen"
,
mrb_io_s_sysopen
,
MRB_ARGS_A
NY
(
));
mrb_define_class_method
(
mrb
,
io
,
"for_fd"
,
mrb_io_s_for_fd
,
MRB_ARGS_A
RG
(
1
,
2
));
mrb_define_class_method
(
mrb
,
io
,
"select"
,
mrb_io_s_select
,
MRB_ARGS_A
RG
(
1
,
3
));
mrb_define_class_method
(
mrb
,
io
,
"sysopen"
,
mrb_io_s_sysopen
,
MRB_ARGS_A
RG
(
1
,
2
));
#if !defined(_WIN32) && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
mrb_define_class_method
(
mrb
,
io
,
"_pipe"
,
mrb_io_s_pipe
,
MRB_ARGS_NONE
());
#endif
mrb_define_method
(
mrb
,
io
,
"initialize"
,
mrb_io_initialize
,
MRB_ARGS_A
NY
(
));
/* 15.2.20.5.21 (x)*/
mrb_define_method
(
mrb
,
io
,
"initialize"
,
mrb_io_initialize
,
MRB_ARGS_A
RG
(
1
,
2
));
/* 15.2.20.5.21 (x)*/
mrb_define_method
(
mrb
,
io
,
"initialize_copy"
,
mrb_io_initialize_copy
,
MRB_ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
io
,
"_check_readable"
,
mrb_io_check_readable
,
MRB_ARGS_NONE
());
mrb_define_method
(
mrb
,
io
,
"isatty"
,
mrb_io_isatty
,
MRB_ARGS_NONE
());
mrb_define_method
(
mrb
,
io
,
"sync"
,
mrb_io_sync
,
MRB_ARGS_NONE
());
mrb_define_method
(
mrb
,
io
,
"sync="
,
mrb_io_set_sync
,
MRB_ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
io
,
"sysread"
,
mrb_io_sysread
,
MRB_ARGS_A
NY
(
));
mrb_define_method
(
mrb
,
io
,
"sysseek"
,
mrb_io_sysseek
,
MRB_ARGS_
REQ
(
1
));
mrb_define_method
(
mrb
,
io
,
"sysread"
,
mrb_io_sysread
,
MRB_ARGS_A
RG
(
1
,
1
));
mrb_define_method
(
mrb
,
io
,
"sysseek"
,
mrb_io_sysseek
,
MRB_ARGS_
ARG
(
1
,
1
));
mrb_define_method
(
mrb
,
io
,
"syswrite"
,
mrb_io_syswrite
,
MRB_ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
io
,
"close"
,
mrb_io_close
,
MRB_ARGS_NONE
());
/* 15.2.20.5.1 */
mrb_define_method
(
mrb
,
io
,
"close_write"
,
mrb_io_close_write
,
MRB_ARGS_NONE
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment