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
0887fd15
Commit
0887fd15
authored
Apr 11, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2040 from take-cheeze/yield_const_argv
Qualify mrb_yield_*'s argv `const`.
parents
847b7c5e
9f24cd6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/mruby.h
include/mruby.h
+2
-2
src/vm.c
src/vm.c
+2
-2
No files found.
include/mruby.h
View file @
0887fd15
...
...
@@ -366,8 +366,8 @@ void mrb_print_error(mrb_state *mrb);
#define E_KEY_ERROR (mrb_class_get(mrb, "KeyError"))
mrb_value
mrb_yield
(
mrb_state
*
mrb
,
mrb_value
b
,
mrb_value
arg
);
mrb_value
mrb_yield_argv
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
mrb_value
*
argv
);
mrb_value
mrb_yield_with_class
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
mrb_value
*
argv
,
mrb_value
self
,
struct
RClass
*
c
);
mrb_value
mrb_yield_argv
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
const
mrb_value
*
argv
);
mrb_value
mrb_yield_with_class
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
const
mrb_value
*
argv
,
mrb_value
self
,
struct
RClass
*
c
);
void
mrb_gc_protect
(
mrb_state
*
mrb
,
mrb_value
obj
);
mrb_value
mrb_to_int
(
mrb_state
*
mrb
,
mrb_value
val
);
...
...
src/vm.c
View file @
0887fd15
...
...
@@ -487,7 +487,7 @@ mrb_f_send(mrb_state *mrb, mrb_value self)
}
mrb_value
mrb_yield_with_class
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
mrb_value
*
argv
,
mrb_value
self
,
struct
RClass
*
c
)
mrb_yield_with_class
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
const
mrb_value
*
argv
,
mrb_value
self
,
struct
RClass
*
c
)
{
struct
RProc
*
p
;
mrb_sym
mid
=
mrb
->
c
->
ci
->
mid
;
...
...
@@ -533,7 +533,7 @@ mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb
}
mrb_value
mrb_yield_argv
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
mrb_value
*
argv
)
mrb_yield_argv
(
mrb_state
*
mrb
,
mrb_value
b
,
int
argc
,
const
mrb_value
*
argv
)
{
struct
RProc
*
p
=
mrb_proc_ptr
(
b
);
...
...
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