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
1c574b06
Commit
1c574b06
authored
Jan 04, 2019
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `mrb_` prefix from static functions in `mruby-range-ext`; #4213
parent
53d87c59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mrbgems/mruby-range-ext/src/range.c
mrbgems/mruby-range-ext/src/range.c
+6
-6
No files found.
mrbgems/mruby-range-ext/src/range.c
View file @
1c574b06
...
...
@@ -40,7 +40,7 @@ r_lt(mrb_state *mrb, mrb_value a, mrb_value b)
* ("a".."z").cover?("cc") #=> true
*/
static
mrb_value
mrb_
range_cover
(
mrb_state
*
mrb
,
mrb_value
range
)
range_cover
(
mrb_state
*
mrb
,
mrb_value
range
)
{
mrb_value
val
;
struct
RRange
*
r
=
mrb_range_ptr
(
mrb
,
range
);
...
...
@@ -82,7 +82,7 @@ mrb_range_cover(mrb_state *mrb, mrb_value range)
* (10...20).last(3) #=> [17, 18, 19]
*/
static
mrb_value
mrb_
range_last
(
mrb_state
*
mrb
,
mrb_value
range
)
range_last
(
mrb_state
*
mrb
,
mrb_value
range
)
{
mrb_value
num
;
mrb_value
array
;
...
...
@@ -107,7 +107,7 @@ mrb_range_last(mrb_state *mrb, mrb_value range)
*/
static
mrb_value
mrb_
range_size
(
mrb_state
*
mrb
,
mrb_value
range
)
range_size
(
mrb_state
*
mrb
,
mrb_value
range
)
{
struct
RRange
*
r
=
mrb_range_ptr
(
mrb
,
range
);
mrb_value
beg
,
end
;
...
...
@@ -164,9 +164,9 @@ mrb_mruby_range_ext_gem_init(mrb_state* mrb)
{
struct
RClass
*
s
=
mrb_class_get
(
mrb
,
"Range"
);
mrb_define_method
(
mrb
,
s
,
"cover?"
,
mrb_
range_cover
,
MRB_ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
s
,
"last"
,
mrb_
range_last
,
MRB_ARGS_OPT
(
1
));
mrb_define_method
(
mrb
,
s
,
"size"
,
mrb_
range_size
,
MRB_ARGS_NONE
());
mrb_define_method
(
mrb
,
s
,
"cover?"
,
range_cover
,
MRB_ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
s
,
"last"
,
range_last
,
MRB_ARGS_OPT
(
1
));
mrb_define_method
(
mrb
,
s
,
"size"
,
range_size
,
MRB_ARGS_NONE
());
}
void
...
...
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