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
9f7651fa
Commit
9f7651fa
authored
May 11, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2234 from suzukaze/refactor
Refactor functions in kernel.c
parents
434f0a6d
d973bcff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
src/kernel.c
src/kernel.c
+3
-12
No files found.
src/kernel.c
View file @
9f7651fa
...
...
@@ -93,24 +93,18 @@ static mrb_value
mrb_obj_equal_m
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_value
arg
;
mrb_bool
eql_p
;
mrb_get_args
(
mrb
,
"o"
,
&
arg
);
eql_p
=
mrb_obj_equal
(
mrb
,
self
,
arg
);
return
mrb_bool_value
(
eql_p
);
return
mrb_bool_value
(
mrb_obj_equal
(
mrb
,
self
,
arg
));
}
static
mrb_value
mrb_obj_not_equal_m
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_value
arg
;
mrb_bool
eql_p
;
mrb_get_args
(
mrb
,
"o"
,
&
arg
);
eql_p
=
mrb_equal
(
mrb
,
self
,
arg
);
return
mrb_bool_value
(
!
eql_p
);
return
mrb_bool_value
(
!
mrb_equal
(
mrb
,
self
,
arg
));
}
/* 15.3.1.3.2 */
...
...
@@ -126,12 +120,9 @@ static mrb_value
mrb_equal_m
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_value
arg
;
mrb_bool
equal_p
;
mrb_get_args
(
mrb
,
"o"
,
&
arg
);
equal_p
=
mrb_equal
(
mrb
,
self
,
arg
);
return
mrb_bool_value
(
equal_p
);
return
mrb_bool_value
(
mrb_equal
(
mrb
,
self
,
arg
));
}
/* 15.3.1.3.3 */
...
...
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