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
4e50e54c
Commit
4e50e54c
authored
Jan 12, 2013
by
Yukihiro Matz Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mruby/mruby
parents
c1387b86
06fec34e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
43 deletions
+7
-43
Rakefile
Rakefile
+4
-3
doc/compile/README.md
doc/compile/README.md
+1
-1
src/string.c
src/string.c
+0
-39
tasks/mrbgems.rake
tasks/mrbgems.rake
+2
-0
No files found.
Rakefile
View file @
4e50e54c
...
@@ -8,7 +8,8 @@ load 'tasks/mruby_gem_spec.rake'
...
@@ -8,7 +8,8 @@ load 'tasks/mruby_gem_spec.rake'
##############################
##############################
# compile flags
# compile flags
load
File
.
expand_path
(
ENV
[
'CONFIG'
]
||
'./build_config.rb'
)
MRUBY_CONFIG
=
File
.
expand_path
(
ENV
[
'MRUBY_CONFIG'
]
||
'./build_config.rb'
)
load
MRUBY_CONFIG
load
'tasks/rules.rake'
load
'tasks/rules.rake'
load
'src/mruby_core.rake'
load
'src/mruby_core.rake'
...
@@ -37,9 +38,9 @@ depfiles = MRuby.targets['host'].bins.map do |bin|
...
@@ -37,9 +38,9 @@ depfiles = MRuby.targets['host'].bins.map do |bin|
install_path
install_path
end
end
depfiles
+=
MRuby
.
targets
.
reject
{
|
n
,
t
|
n
==
'host'
}.
map
do
|
n
,
t
|
depfiles
+=
MRuby
.
targets
.
reject
{
|
n
,
t
|
n
==
'host'
}.
map
{
|
n
,
t
|
[
"
#{
t
.
build_dir
}
/lib/libmruby.a"
]
+
t
.
bins
.
map
{
|
bin
|
exefile
(
"
#{
t
.
build_dir
}
/bin/
#{
bin
}
"
)
}
[
"
#{
t
.
build_dir
}
/lib/libmruby.a"
]
+
t
.
bins
.
map
{
|
bin
|
exefile
(
"
#{
t
.
build_dir
}
/bin/
#{
bin
}
"
)
}
end
}.
flatten
desc
"build all targets, install (locally) in-repo"
desc
"build all targets, install (locally) in-repo"
task
:all
=>
depfiles
task
:all
=>
depfiles
...
...
doc/compile/README.md
View file @
4e50e54c
...
@@ -83,7 +83,7 @@ MRuby::CrossBuild.new('i386') do |conf|
...
@@ -83,7 +83,7 @@ MRuby::CrossBuild.new('i386') do |conf|
end
end
```
```
You can configurate the same options as for a normal build.
You can configurate the same options as for a normal build.
You can specified your own build_config.rb with *$MRUBY_CONFIG*.
## Build process
## Build process
...
...
src/string.c
View file @
4e50e54c
...
@@ -1114,44 +1114,6 @@ mrb_str_downcase(mrb_state *mrb, mrb_value self)
...
@@ -1114,44 +1114,6 @@ mrb_str_downcase(mrb_state *mrb, mrb_value self)
return
str
;
return
str
;
}
}
/* 15.2.10.5.15 */
/*
* call-seq:
* str.each(separator=$/) {|substr| block } => str
* str.each_line(separator=$/) {|substr| block } => str
*
* Splits <i>str</i> using the supplied parameter as the record separator
* (<code>$/</code> by default), passing each substring in turn to the supplied
* block. If a zero-length record separator is supplied, the string is split
* into paragraphs delimited by multiple successive newlines.
*
* print "Example one\n"
* "hello\nworld".each {|s| p s}
* print "Example two\n"
* "hello\nworld".each('l') {|s| p s}
* print "Example three\n"
* "hello\n\n\nworld".each('') {|s| p s}
*
* <em>produces:</em>
*
* Example one
* "hello\n"
* "world"
* Example two
* "hel"
* "l"
* "o\nworl"
* "d"
* Example three
* "hello\n\n\n"
* "world"
*/
static
mrb_value
mrb_str_each_line
(
mrb_state
*
mrb
,
mrb_value
str
)
{
return
mrb_nil_value
();
}
/* 15.2.10.5.16 */
/* 15.2.10.5.16 */
/*
/*
* call-seq:
* call-seq:
...
@@ -3033,7 +2995,6 @@ mrb_init_string(mrb_state *mrb)
...
@@ -3033,7 +2995,6 @@ mrb_init_string(mrb_state *mrb)
mrb_define_method
(
mrb
,
s
,
"chop!"
,
mrb_str_chop_bang
,
ARGS_REQ
(
1
));
/* 15.2.10.5.12 */
mrb_define_method
(
mrb
,
s
,
"chop!"
,
mrb_str_chop_bang
,
ARGS_REQ
(
1
));
/* 15.2.10.5.12 */
mrb_define_method
(
mrb
,
s
,
"downcase"
,
mrb_str_downcase
,
ARGS_NONE
());
/* 15.2.10.5.13 */
mrb_define_method
(
mrb
,
s
,
"downcase"
,
mrb_str_downcase
,
ARGS_NONE
());
/* 15.2.10.5.13 */
mrb_define_method
(
mrb
,
s
,
"downcase!"
,
mrb_str_downcase_bang
,
ARGS_NONE
());
/* 15.2.10.5.14 */
mrb_define_method
(
mrb
,
s
,
"downcase!"
,
mrb_str_downcase_bang
,
ARGS_NONE
());
/* 15.2.10.5.14 */
mrb_define_method
(
mrb
,
s
,
"each_line"
,
mrb_str_each_line
,
ARGS_REQ
(
1
));
/* 15.2.10.5.15 */
mrb_define_method
(
mrb
,
s
,
"empty?"
,
mrb_str_empty_p
,
ARGS_NONE
());
/* 15.2.10.5.16 */
mrb_define_method
(
mrb
,
s
,
"empty?"
,
mrb_str_empty_p
,
ARGS_NONE
());
/* 15.2.10.5.16 */
mrb_define_method
(
mrb
,
s
,
"eql?"
,
mrb_str_eql
,
ARGS_REQ
(
1
));
/* 15.2.10.5.17 */
mrb_define_method
(
mrb
,
s
,
"eql?"
,
mrb_str_eql
,
ARGS_REQ
(
1
));
/* 15.2.10.5.17 */
#ifdef ENABLE_REGEXP
#ifdef ENABLE_REGEXP
...
...
tasks/mrbgems.rake
View file @
4e50e54c
...
@@ -29,5 +29,7 @@ mrb_init_mrbgems(mrb_state *mrb) {
...
@@ -29,5 +29,7 @@ mrb_init_mrbgems(mrb_state *mrb) {
__EOF__
__EOF__
end
end
end
end
file
"
#{
build_dir
}
/mrbgems/gem_init.c"
=>
MRUBY_CONFIG
end
end
end
end
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