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
f6837783
Commit
f6837783
authored
Apr 26, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2123 from take-cheeze/mrb_int_arg
Use mrb_int in mrbgem rest arguments getting.
parents
c236d779
b5028421
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
9 deletions
+10
-9
mrbgems/mruby-hash-ext/src/hash-ext.c
mrbgems/mruby-hash-ext/src/hash-ext.c
+2
-1
mrbgems/mruby-object-ext/src/object.c
mrbgems/mruby-object-ext/src/object.c
+1
-1
mrbgems/mruby-sprintf/src/sprintf.c
mrbgems/mruby-sprintf/src/sprintf.c
+1
-1
mrbgems/mruby-string-ext/src/string.c
mrbgems/mruby-string-ext/src/string.c
+2
-2
mrbgems/mruby-string-utf8/src/string.c
mrbgems/mruby-string-utf8/src/string.c
+2
-2
mrbgems/mruby-struct/src/struct.c
mrbgems/mruby-struct/src/struct.c
+2
-2
No files found.
mrbgems/mruby-hash-ext/src/hash-ext.c
View file @
f6837783
...
...
@@ -23,7 +23,8 @@ static mrb_value
hash_values_at
(
mrb_state
*
mrb
,
mrb_value
hash
)
{
mrb_value
*
argv
,
result
;
int
argc
,
i
,
ai
;
mrb_int
argc
,
i
;
int
ai
;
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
result
=
mrb_ary_new_capa
(
mrb
,
argc
);
...
...
mrbgems/mruby-object-ext/src/object.c
View file @
f6837783
...
...
@@ -63,7 +63,7 @@ static mrb_value
mrb_obj_instance_exec
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_value
*
argv
;
int
argc
;
mrb_
int
argc
;
mrb_value
blk
;
struct
RClass
*
c
;
...
...
mrbgems/mruby-sprintf/src/sprintf.c
View file @
f6837783
...
...
@@ -471,7 +471,7 @@ get_hash(mrb_state *mrb, mrb_value *hash, int argc, const mrb_value *argv)
mrb_value
mrb_f_sprintf
(
mrb_state
*
mrb
,
mrb_value
obj
)
{
int
argc
;
mrb_
int
argc
;
mrb_value
*
argv
;
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
...
...
mrbgems/mruby-string-ext/src/string.c
View file @
f6837783
...
...
@@ -113,7 +113,7 @@ static mrb_value
mrb_str_start_with
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_value
*
argv
,
sub
;
int
argc
,
i
;
mrb_
int
argc
,
i
;
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
...
...
@@ -142,7 +142,7 @@ static mrb_value
mrb_str_end_with
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_value
*
argv
,
sub
;
int
argc
,
i
;
mrb_
int
argc
,
i
;
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
...
...
mrbgems/mruby-string-utf8/src/string.c
View file @
f6837783
...
...
@@ -356,7 +356,7 @@ static mrb_value
mrb_str_index_m
(
mrb_state
*
mrb
,
mrb_value
str
)
{
mrb_value
*
argv
;
int
argc
;
mrb_
int
argc
;
mrb_value
sub
;
mrb_int
pos
;
...
...
@@ -440,7 +440,7 @@ static mrb_value
mrb_str_rindex_m
(
mrb_state
*
mrb
,
mrb_value
str
)
{
mrb_value
*
argv
;
int
argc
;
mrb_
int
argc
;
mrb_value
sub
;
mrb_value
vpos
;
mrb_int
pos
,
len
=
RSTRING_LEN
(
str
);
...
...
mrbgems/mruby-struct/src/struct.c
View file @
f6837783
...
...
@@ -347,7 +347,7 @@ mrb_struct_s_def(mrb_state *mrb, mrb_value klass)
mrb_value
b
,
st
;
mrb_sym
id
;
mrb_value
*
argv
;
int
argc
;
mrb_
int
argc
;
name
=
mrb_nil_value
();
rest
=
mrb_nil_value
();
...
...
@@ -428,7 +428,7 @@ static mrb_value
mrb_struct_initialize_m
(
mrb_state
*
mrb
,
/*int argc, mrb_value *argv,*/
mrb_value
self
)
{
mrb_value
*
argv
;
int
argc
;
mrb_
int
argc
;
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
return
mrb_struct_initialize_withArg
(
mrb
,
argc
,
argv
,
self
);
...
...
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