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
933f8013
Commit
933f8013
authored
Mar 03, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mruby/mruby
parents
9a92b40a
55a43c78
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
+14
-6
include/mruby/compile.h
include/mruby/compile.h
+1
-1
include/mruby/data.h
include/mruby/data.h
+1
-1
mrbgems/mruby-random/src/random.c
mrbgems/mruby-random/src/random.c
+3
-3
tasks/mruby_build_gem.rake
tasks/mruby_build_gem.rake
+5
-1
test/t/string.rb
test/t/string.rb
+4
-0
No files found.
include/mruby/compile.h
View file @
933f8013
...
...
@@ -5,7 +5,7 @@
*/
#ifndef MRUBY_COMPILE_H
#define MRUBY_COMPILE_H
1
#define MRUBY_COMPILE_H
#if defined(__cplusplus)
extern
"C"
{
...
...
include/mruby/data.h
View file @
933f8013
...
...
@@ -5,7 +5,7 @@
*/
#ifndef MRUBY_DATA_H
#define MRUBY_DATA_H
1
#define MRUBY_DATA_H
#if defined(__cplusplus)
extern
"C"
{
...
...
mrbgems/mruby-random/src/random.c
View file @
933f8013
...
...
@@ -115,15 +115,15 @@ mrb_random_init(mrb_state *mrb, mrb_value self)
mrb_value
seed
;
mt_state
*
t
;
DATA_TYPE
(
self
)
=
&
mt_state_type
;
DATA_PTR
(
self
)
=
NULL
;
/* avoid memory leaks */
t
=
(
mt_state
*
)
DATA_PTR
(
self
);
if
(
t
)
{
mrb_free
(
mrb
,
t
);
}
DATA_TYPE
(
self
)
=
&
mt_state_type
;
DATA_PTR
(
self
)
=
NULL
;
t
=
(
mt_state
*
)
mrb_malloc
(
mrb
,
sizeof
(
mt_state
));
t
->
mti
=
N
+
1
;
...
...
tasks/mruby_build_gem.rake
View file @
933f8013
...
...
@@ -43,7 +43,11 @@ module MRuby
if
params
[
:github
]
params
[
:git
]
=
"https://github.com/
#{
params
[
:github
]
}
.git"
elsif
params
[
:bitbucket
]
params
[
:git
]
=
"https://bitbucket.org/
#{
params
[
:bitbucket
]
}
.git"
if
params
[
:method
]
==
"ssh"
params
[
:git
]
=
"git@bitbucket.org:
#{
params
[
:bitbucket
]
}
.git"
else
params
[
:git
]
=
"https://bitbucket.org/
#{
params
[
:bitbucket
]
}
.git"
end
end
if
params
[
:core
]
...
...
test/t/string.rb
View file @
933f8013
...
...
@@ -36,6 +36,10 @@ end
assert
(
'String#*'
,
'15.2.10.5.5'
)
do
assert_equal
'aaaaa'
,
'a'
*
5
assert_equal
''
,
'a'
*
0
assert_raise
(
ArgumentError
)
do
'a'
*
-
1
end
end
assert
(
'String#[]'
,
'15.2.10.5.6'
)
do
...
...
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