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
bd877996
Unverified
Commit
bd877996
authored
Nov 18, 2019
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Nov 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4825 from shuujii/fix-argument-specs-to-Kernel
Fix argument specs to `Kernel`
parents
74310f41
04baaab3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
mrbgems/mruby-eval/src/eval.c
mrbgems/mruby-eval/src/eval.c
+1
-1
mrbgems/mruby-kernel-ext/src/kernel.c
mrbgems/mruby-kernel-ext/src/kernel.c
+1
-1
mrbgems/mruby-metaprog/src/metaprog.c
mrbgems/mruby-metaprog/src/metaprog.c
+2
-2
mrbgems/mruby-proc-ext/src/proc.c
mrbgems/mruby-proc-ext/src/proc.c
+2
-2
mrbgems/mruby-sprintf/src/kernel.c
mrbgems/mruby-sprintf/src/kernel.c
+2
-2
src/kernel.c
src/kernel.c
+1
-1
No files found.
mrbgems/mruby-eval/src/eval.c
View file @
bd877996
...
...
@@ -390,7 +390,7 @@ void
mrb_mruby_eval_gem_init
(
mrb_state
*
mrb
)
{
mrb_define_module_function
(
mrb
,
mrb
->
kernel_module
,
"eval"
,
f_eval
,
MRB_ARGS_ARG
(
1
,
3
));
mrb_define_method
(
mrb
,
mrb_class_get
(
mrb
,
"BasicObject"
),
"instance_eval"
,
f_instance_eval
,
MRB_ARGS_
ARG
(
1
,
2
));
mrb_define_method
(
mrb
,
mrb_class_get
(
mrb
,
"BasicObject"
),
"instance_eval"
,
f_instance_eval
,
MRB_ARGS_
OPT
(
3
)
|
MRB_ARGS_BLOCK
(
));
}
void
...
...
mrbgems/mruby-kernel-ext/src/kernel.c
View file @
bd877996
...
...
@@ -213,7 +213,7 @@ mrb_mruby_kernel_ext_gem_init(mrb_state *mrb)
mrb_define_module_function
(
mrb
,
krn
,
"fail"
,
mrb_f_raise
,
MRB_ARGS_OPT
(
2
));
mrb_define_module_function
(
mrb
,
krn
,
"caller"
,
mrb_f_caller
,
MRB_ARGS_OPT
(
2
));
mrb_define_method
(
mrb
,
krn
,
"__method__"
,
mrb_f_method
,
MRB_ARGS_NONE
());
mrb_define_module_function
(
mrb
,
krn
,
"Integer"
,
mrb_f_integer
,
MRB_ARGS_A
NY
(
));
mrb_define_module_function
(
mrb
,
krn
,
"Integer"
,
mrb_f_integer
,
MRB_ARGS_A
RG
(
1
,
1
));
#ifndef MRB_WITHOUT_FLOAT
mrb_define_module_function
(
mrb
,
krn
,
"Float"
,
mrb_f_float
,
MRB_ARGS_REQ
(
1
));
#endif
...
...
mrbgems/mruby-metaprog/src/metaprog.c
View file @
bd877996
...
...
@@ -694,8 +694,8 @@ mrb_mruby_metaprog_gem_init(mrb_state* mrb)
mrb_define_method
(
mrb
,
krn
,
"protected_methods"
,
mrb_obj_protected_methods
,
MRB_ARGS_OPT
(
1
));
/* 15.3.1.3.37 */
mrb_define_method
(
mrb
,
krn
,
"public_methods"
,
mrb_obj_public_methods
,
MRB_ARGS_OPT
(
1
));
/* 15.3.1.3.38 */
mrb_define_method
(
mrb
,
krn
,
"singleton_methods"
,
mrb_obj_singleton_methods_m
,
MRB_ARGS_OPT
(
1
));
/* 15.3.1.3.45 */
mrb_define_method
(
mrb
,
krn
,
"define_singleton_method"
,
mod_define_singleton_method
,
MRB_ARGS_
ANY
());
mrb_define_method
(
mrb
,
krn
,
"send"
,
mrb_f_send
,
MRB_ARGS_
ANY
());
/* 15.3.1.3.44 */
mrb_define_method
(
mrb
,
krn
,
"define_singleton_method"
,
mod_define_singleton_method
,
MRB_ARGS_
REQ
(
1
)
|
MRB_ARGS_BLOCK
());
mrb_define_method
(
mrb
,
krn
,
"send"
,
mrb_f_send
,
MRB_ARGS_
REQ
(
1
)
|
MRB_ARGS_REST
()
|
MRB_ARGS_BLOCK
());
/* 15.3.1.3.44 */
mrb_define_method
(
mrb
,
mod
,
"class_variables"
,
mrb_mod_class_variables
,
MRB_ARGS_OPT
(
1
));
/* 15.2.2.4.19 */
mrb_define_method
(
mrb
,
mod
,
"remove_class_variable"
,
mrb_mod_remove_cvar
,
MRB_ARGS_REQ
(
1
));
/* 15.2.2.4.39 */
...
...
mrbgems/mruby-proc-ext/src/proc.c
View file @
bd877996
...
...
@@ -175,8 +175,8 @@ mrb_mruby_proc_ext_gem_init(mrb_state* mrb)
mrb_define_method
(
mrb
,
p
,
"inspect"
,
mrb_proc_inspect
,
MRB_ARGS_NONE
());
mrb_define_method
(
mrb
,
p
,
"parameters"
,
mrb_proc_parameters
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
mrb
->
kernel_module
,
"proc"
,
mrb_kernel_proc
,
MRB_ARGS_NONE
());
mrb_define_method
(
mrb
,
mrb
->
kernel_module
,
"proc"
,
mrb_kernel_proc
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
mrb
->
kernel_module
,
"proc"
,
mrb_kernel_proc
,
MRB_ARGS_NONE
()
|
MRB_ARGS_BLOCK
()
);
mrb_define_method
(
mrb
,
mrb
->
kernel_module
,
"proc"
,
mrb_kernel_proc
,
MRB_ARGS_NONE
()
|
MRB_ARGS_BLOCK
()
);
}
void
...
...
mrbgems/mruby-sprintf/src/kernel.c
View file @
bd877996
...
...
@@ -18,8 +18,8 @@ mrb_mruby_sprintf_gem_init(mrb_state* mrb)
}
krn
=
mrb
->
kernel_module
;
mrb_define_method
(
mrb
,
krn
,
"sprintf"
,
mrb_f_sprintf
,
MRB_ARGS_
ANY
());
mrb_define_method
(
mrb
,
krn
,
"format"
,
mrb_f_sprintf
,
MRB_ARGS_
ANY
());
mrb_define_method
(
mrb
,
krn
,
"sprintf"
,
mrb_f_sprintf
,
MRB_ARGS_
REQ
(
1
)
|
MRB_ARGS_REST
());
mrb_define_method
(
mrb
,
krn
,
"format"
,
mrb_f_sprintf
,
MRB_ARGS_
REQ
(
1
)
|
MRB_ARGS_REST
());
}
void
...
...
src/kernel.c
View file @
bd877996
...
...
@@ -794,7 +794,7 @@ mrb_init_kernel(mrb_state *mrb)
mrb_define_method
(
mrb
,
krn
,
"object_id"
,
mrb_obj_id_m
,
MRB_ARGS_NONE
());
/* 15.3.1.3.33 */
mrb_define_method
(
mrb
,
krn
,
"raise"
,
mrb_f_raise
,
MRB_ARGS_ANY
());
/* 15.3.1.3.40 */
mrb_define_method
(
mrb
,
krn
,
"remove_instance_variable"
,
mrb_obj_remove_instance_variable
,
MRB_ARGS_REQ
(
1
));
/* 15.3.1.3.41 */
mrb_define_method
(
mrb
,
krn
,
"respond_to?"
,
obj_respond_to
,
MRB_ARGS_A
NY
(
));
/* 15.3.1.3.43 */
mrb_define_method
(
mrb
,
krn
,
"respond_to?"
,
obj_respond_to
,
MRB_ARGS_A
RG
(
1
,
1
));
/* 15.3.1.3.43 */
mrb_define_method
(
mrb
,
krn
,
"to_s"
,
mrb_any_to_s
,
MRB_ARGS_NONE
());
/* 15.3.1.3.46 */
mrb_define_method
(
mrb
,
krn
,
"__case_eqq"
,
mrb_obj_ceqq
,
MRB_ARGS_REQ
(
1
));
/* internal */
mrb_define_method
(
mrb
,
krn
,
"__to_int"
,
mrb_to_int
,
MRB_ARGS_NONE
());
/* internal */
...
...
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