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
e935d20a
Commit
e935d20a
authored
Dec 11, 2018
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `mrb_` prefix to `iv_foreach_func`.
parent
a0df27d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/mruby/variable.h
include/mruby/variable.h
+2
-2
src/variable.c
src/variable.c
+2
-2
No files found.
include/mruby/variable.h
View file @
e935d20a
...
...
@@ -132,8 +132,8 @@ size_t mrb_gc_mark_iv_size(mrb_state*, struct RObject*);
void
mrb_gc_free_iv
(
mrb_state
*
,
struct
RObject
*
);
/* return non zero to break the loop */
typedef
int
(
iv_foreach_func
)(
mrb_state
*
,
mrb_sym
,
mrb_value
,
void
*
);
MRB_API
void
mrb_iv_foreach
(
mrb_state
*
mrb
,
mrb_value
obj
,
iv_foreach_func
*
func
,
void
*
p
);
typedef
int
(
mrb_
iv_foreach_func
)(
mrb_state
*
,
mrb_sym
,
mrb_value
,
void
*
);
MRB_API
void
mrb_iv_foreach
(
mrb_state
*
mrb
,
mrb_value
obj
,
mrb_
iv_foreach_func
*
func
,
void
*
p
);
MRB_END_DECL
...
...
src/variable.c
View file @
e935d20a
...
...
@@ -156,7 +156,7 @@ iv_del(mrb_state *mrb, iv_tbl *t, mrb_sym sym, mrb_value *vp)
/* Iterates over the instance variable table. */
static
void
iv_foreach
(
mrb_state
*
mrb
,
iv_tbl
*
t
,
iv_foreach_func
*
func
,
void
*
p
)
iv_foreach
(
mrb_state
*
mrb
,
iv_tbl
*
t
,
mrb_
iv_foreach_func
*
func
,
void
*
p
)
{
segment
*
seg
;
size_t
i
;
...
...
@@ -360,7 +360,7 @@ mrb_obj_iv_set(mrb_state *mrb, struct RObject *obj, mrb_sym sym, mrb_value v)
/* Iterates over the instance variable table. */
MRB_API
void
mrb_iv_foreach
(
mrb_state
*
mrb
,
mrb_value
obj
,
iv_foreach_func
*
func
,
void
*
p
)
mrb_iv_foreach
(
mrb_state
*
mrb
,
mrb_value
obj
,
mrb_
iv_foreach_func
*
func
,
void
*
p
)
{
if
(
!
obj_iv_p
(
obj
))
return
;
iv_foreach
(
mrb
,
mrb_obj_ptr
(
obj
)
->
iv
,
func
,
p
);
...
...
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