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
4be3ca52
Commit
4be3ca52
authored
Apr 20, 2012
by
mimaki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mruby/mruby
parents
d67cd99b
dc2c98ab
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
41 additions
and
36 deletions
+41
-36
COPYING
COPYING
+1
-1
INSTALL
INSTALL
+1
-1
README
README
+16
-16
README.ja
README.ja
+15
-14
include/mruby.h
include/mruby.h
+3
-0
include/mruby/object.h
include/mruby/object.h
+1
-1
src/parse.y
src/parse.y
+1
-0
src/pool.c
src/pool.c
+1
-1
src/transcode.c
src/transcode.c
+2
-2
No files found.
COPYING
View file @
4be3ca52
m
R
uby is copyrighted free software by mruby developers <info@mruby.org>.
m
r
uby is copyrighted free software by mruby developers <info@mruby.org>.
You can redistribute it and/or modify it under either the terms of the
You can redistribute it and/or modify it under either the terms of the
MIT license (see the file MITL), or the conditions below:
MIT license (see the file MITL), or the conditions below:
...
...
INSTALL
View file @
4be3ca52
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* lib
* lib
* include
* include
If an error occurs when compiling m
R
uby, it will be helpful for others if you
If an error occurs when compiling m
r
uby, it will be helpful for others if you
send a detailed report to the developers that includes the error log, machine,
send a detailed report to the developers that includes the error log, machine,
and OS type.
and OS type.
...
...
README
View file @
4be3ca52
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
Any suggestion of the modification are welcome,
Any suggestion of the modification are welcome,
but the response might be delayed. Sorry for that in advance.
but the response might be delayed. Sorry for that in advance.
* What's m
R
uby
* What's m
r
uby
m
R
uby is the light-weight implementation of the Ruby language complied to the ISO
m
r
uby is the light-weight implementation of the Ruby language complied to the ISO
standard to execute various environments. It can run in 'interpreter form' or
standard to execute various environments. It can run in 'interpreter form' or
'compile and execute on vm form' according to its module construction.
'compile and execute on vm form' according to its module construction.
...
@@ -14,7 +14,7 @@ This achievement is due to the Regional Innovation Creation R&D Programs of
...
@@ -14,7 +14,7 @@ This achievement is due to the Regional Innovation Creation R&D Programs of
the Ministry of Economy, Trade and Industry of Japan.
the Ministry of Economy, Trade and Industry of Japan.
* Features of m
R
uby
* Features of m
r
uby
|FIXME:
|FIXME:
| + Simple Syntax
| + Simple Syntax
...
@@ -30,34 +30,34 @@ the Ministry of Economy, Trade and Industry of Japan.
...
@@ -30,34 +30,34 @@ the Ministry of Economy, Trade and Industry of Japan.
| cf. http://redmine.ruby-lang.org/wiki/ruby-19/SupportedPlatforms
| cf. http://redmine.ruby-lang.org/wiki/ruby-19/SupportedPlatforms
* How to get m
R
uby
* How to get m
r
uby
The m
R
uby distribution files can be found in the following site:
The m
r
uby distribution files can be found in the following site:
https://github.com/mruby/mruby/zipball/master
https://github.com/mruby/mruby/zipball/master
The trunk of the m
R
uby source tree can be checked out with the
The trunk of the m
r
uby source tree can be checked out with the
following command:
following command:
$ git ...
$ git ...
.
There are some other branches under development. Try the following
There are some other branches under development. Try the following
command and see the list of branches:
command and see the list of branches:
$ git ...
$ git ...
.
* m
R
uby home-page (sorry, it's not launched yet. we're working on this)
* m
r
uby home-page (sorry, it's not launched yet. we're working on this)
The URL of the m
R
uby home-page is:
The URL of the m
r
uby home-page is:
http://www.mruby.org/
http://www.mruby.org/
* Mailing list
* Mailing list
There is a mailing list to talk about m
R
uby.
There is a mailing list to talk about m
r
uby.
To subscribe this list....
To subscribe this list....
[T.B.D.]
* How to compile and install
* How to compile and install
...
@@ -71,15 +71,15 @@ See the file COPYING.
...
@@ -71,15 +71,15 @@ See the file COPYING.
* About Contribution
* About Contribution
Thank you for considering of contribution for m
R
uby.
Thank you for considering of contribution for m
r
uby.
m
R
uby has chosen a MIT License as comparatively loose condition,
m
r
uby has chosen a MIT License as comparatively loose condition,
to expect to apply into various environment such as embedded system.
to expect to apply into various environment such as embedded system.
However, the license requires to display copyright notice and license
However, the license requires to display copyright notice and license
sentenses, for example manual or so. Especially for the recent bigger
sentenses, for example manual or so. Especially for the recent bigger
system, it is comlecated or very troublesome.
system, it is comlecated or very troublesome.
So, m
R
uby has decided to display "mruby developers" as copyright name
So, m
r
uby has decided to display "mruby developers" as copyright name
to make it simple conventionally.
to make it simple conventionally.
In the future, m
R
uby might ask you to distribute your new codes
In the future, m
r
uby might ask you to distribute your new codes
(that you will commit,) under MIT License as a member of
(that you will commit,) under MIT License as a member of
"mruby developers" with keeping copyright of you.
"mruby developers" with keeping copyright of you.
(We did not intend you to transfer or waive your copyright,
(We did not intend you to transfer or waive your copyright,
...
...
README.ja
View file @
4be3ca52
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
修正のご指摘は随時受け付けていますが、対応が遅くなるかもしれません。
修正のご指摘は随時受け付けていますが、対応が遅くなるかもしれません。
予めご了承ください。
予めご了承ください。
* m
R
ubyとは
* m
r
ubyとは
m
R
ubyはISO規格に準拠したRuby言語を様々な環境で動作可能となるように
m
r
ubyはISO規格に準拠したRuby言語を様々な環境で動作可能となるように
軽量化したものです。モジュール構成によりインタプリタ実行形式や
軽量化したものです。モジュール構成によりインタプリタ実行形式や
コンパイル&VM実行形式でも動作させることができます。
コンパイル&VM実行形式でも動作させることができます。
2010年度の経済産業省の地域イノベーション創出事業により開発されました。
2010年度の経済産業省の地域イノベーション創出事業により開発されました。
* m
R
ubyの特長
* m
r
ubyの特長
|MRI(Matz Ruby Implementation)版との互換性
|MRI(Matz Ruby Implementation)版との互換性
|
|
...
@@ -31,6 +31,7 @@ mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能と
...
@@ -31,6 +31,7 @@ mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能と
| 動くだけでなく,Windows, Mac OS X,BeOSなどの上でも動く
| 動くだけでなく,Windows, Mac OS X,BeOSなどの上でも動く
| cf. http://redmine.ruby-lang.org/wiki/ruby-19/SupportedPlatformsJa
| cf. http://redmine.ruby-lang.org/wiki/ruby-19/SupportedPlatformsJa
* 入手法
* 入手法
** Zipで
** Zipで
...
@@ -43,16 +44,16 @@ mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能と
...
@@ -43,16 +44,16 @@ mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能と
開発先端のソースコードは次のコマンドで取得できます.
開発先端のソースコードは次のコマンドで取得できます.
$ git
…
..
$ git
..
..
他に開発中のブランチの一覧は次のコマンドで見られます.
他に開発中のブランチの一覧は次のコマンドで見られます.
$ git
…
$ git
....
* ホームページ (まだ準備中です。ただいま鋭意製作中です。)
* ホームページ (まだ準備中です。ただいま鋭意製作中です。)
m
R
ubyのホームページのURLは
m
r
ubyのホームページのURLは
http://www.mruby.org/
http://www.mruby.org/
...
@@ -61,12 +62,12 @@ mRubyのホームページのURLは
...
@@ -61,12 +62,12 @@ mRubyのホームページのURLは
* メーリングリスト
* メーリングリスト
m
Rubyのメーリングリストがあります。参加希望の方は….
m
rubyのメーリングリストがあります。参加希望の方は....[T.B.D.]
Ruby開発者向けメーリングリストもあります。こちらではrubyのバ
mruby開発者向けメーリングリストもあります。こちらではrubyのバグ、
グ、
将来の仕様拡張など実装上の問題について議論されています。
将来の仕様拡張など実装上の問題について議論されています。
参加希望の方は
…
参加希望の方は
....[T.B.D.]
* コンパイル・インストール・移植
* コンパイル・インストール・移植
...
@@ -81,15 +82,15 @@ COPYING.ja ファイルを参照してください。
...
@@ -81,15 +82,15 @@ COPYING.ja ファイルを参照してください。
* コントリビュートについて
* コントリビュートについて
m
R
ubyへの貢献の検討をありがとうございます。
m
r
ubyへの貢献の検討をありがとうございます。
m
R
ubyは組込み機器などの様々な環境で利用させることを期待し、ライセンスを
m
r
ubyは組込み機器などの様々な環境で利用させることを期待し、ライセンスを
比較的制限の緩いMITライセンスにすることにいたしました。
比較的制限の緩いMITライセンスにすることにいたしました。
しかしながら、ライセンスの実行条件としてマニュアル等の何らかの形で
しかしながら、ライセンスの実行条件としてマニュアル等の何らかの形で
著作権表記及びライセンス文を記述する必要があります。
著作権表記及びライセンス文を記述する必要があります。
昨今の規模の大きくなったシステムではこれらの対応も相当の煩雑さを伴います。
昨今の規模の大きくなったシステムではこれらの対応も相当の煩雑さを伴います。
そこで、m
R
ubyではできる限り表記を簡便にするために、便宜上、著作権者名を
そこで、m
r
ubyではできる限り表記を簡便にするために、便宜上、著作権者名を
"mruby developers"とすることにいたしました。
"mruby developers"とすることにいたしました。
今後、新たにm
R
ubyへのコミットされるコードについては、著作権を保持したまま、
今後、新たにm
r
ubyへのコミットされるコードについては、著作権を保持したまま、
"mruby developers"の一員としてMITライセンスでの配布をお願いしたいと
"mruby developers"の一員としてMITライセンスでの配布をお願いしたいと
考えています。
考えています。
(コミットしたコードの著作権を譲渡や放棄をお願いするものではありません。
(コミットしたコードの著作権を譲渡や放棄をお願いするものではありません。
...
...
include/mruby.h
View file @
4be3ca52
...
@@ -441,11 +441,14 @@ void mrb_bug(const char *fmt, ...);
...
@@ -441,11 +441,14 @@ void mrb_bug(const char *fmt, ...);
#ifdef __GNUC__
#ifdef __GNUC__
# define NUM2CHR(x) __extension__ ({mrb_value num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
# define NUM2CHR(x) __extension__ ({mrb_value num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
#else
#else
/* TODO: there is no definitions of RSTRING_* here, so cannot compile.
static inline char
static inline char
NUM2CHR(mrb_value x)
NUM2CHR(mrb_value x)
{
{
return NUM2CHR_internal(x);
return NUM2CHR_internal(x);
}
}
*/
#define NUM2CHR(x) NUM2CHR_internal(x)
#endif
#endif
mrb_value
mrb_io_gets
(
mrb_state
*
mrb
,
mrb_value
);
mrb_value
mrb_io_gets
(
mrb_state
*
mrb
,
mrb_value
);
mrb_value
mrb_io_getbyte
(
mrb_state
*
mrb
,
mrb_value
);
mrb_value
mrb_io_getbyte
(
mrb_state
*
mrb
,
mrb_value
);
...
...
include/mruby/object.h
View file @
4be3ca52
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
int color:3;\
int color:3;\
unsigned int flags:21;\
unsigned int flags:21;\
struct RClass *c;\
struct RClass *c;\
struct RBasic *gcnext
;
struct RBasic *gcnext
/* white: 011, black: 100, gray: 000 */
/* white: 011, black: 100, gray: 000 */
...
...
src/parse.y
View file @
4be3ca52
...
@@ -4228,6 +4228,7 @@ parser_yylex(parser_state *p)
...
@@ -4228,6 +4228,7 @@ parser_yylex(parser_state *p)
else if (term == '[') term = ']';
else if (term == '[') term = ']';
else if (term == '{') term = '}';
else if (term == '{') term = '}';
else if (term == '<') term = '>';
else if (term == '<') term = '>';
p->sterm = term;
#if 0
#if 0
else paren = 0;
else paren = 0;
#endif
#endif
...
...
src/pool.c
View file @
4be3ca52
...
@@ -68,7 +68,7 @@ mrb_pool_alloc(mrb_pool *pool, size_t len)
...
@@ -68,7 +68,7 @@ mrb_pool_alloc(mrb_pool *pool, size_t len)
if
(
page
->
offset
+
len
<=
page
->
len
)
{
if
(
page
->
offset
+
len
<=
page
->
len
)
{
n
=
page
->
offset
;
n
=
page
->
offset
;
page
->
offset
+=
len
;
page
->
offset
+=
len
;
page
->
last
=
(
void
*
)
page
->
page
+
n
;
page
->
last
=
(
char
*
)
page
->
page
+
n
;
return
page
->
last
;
return
page
->
last
;
}
}
page
=
page
->
next
;
page
=
page
->
next
;
...
...
src/transcode.c
View file @
4be3ca52
...
@@ -632,14 +632,14 @@ transcode_restartable0(mrb_state *mrb,
...
@@ -632,14 +632,14 @@ transcode_restartable0(mrb_state *mrb,
}
}
continue
;
continue
;
case
FUNii
:
case
FUNii
:
next_info
=
(
mrb_value
)(
*
tr
->
func_ii
)(
TRANSCODING_STATE
(
tc
),
next_info
);
next_info
=
(
*
tr
->
func_ii
)(
TRANSCODING_STATE
(
tc
),
next_info
);
goto
follow_info
;
goto
follow_info
;
case
FUNsi
:
case
FUNsi
:
{
{
const
unsigned
char
*
char_start
;
const
unsigned
char
*
char_start
;
size_t
char_len
;
size_t
char_len
;
char_start
=
transcode_char_start
(
tc
,
*
in_pos
,
inchar_start
,
in_p
,
&
char_len
);
char_start
=
transcode_char_start
(
tc
,
*
in_pos
,
inchar_start
,
in_p
,
&
char_len
);
next_info
=
(
mrb_value
)(
*
tr
->
func_si
)(
TRANSCODING_STATE
(
tc
),
char_start
,
(
size_t
)
char_len
);
next_info
=
(
*
tr
->
func_si
)(
TRANSCODING_STATE
(
tc
),
char_start
,
(
size_t
)
char_len
);
goto
follow_info
;
goto
follow_info
;
}
}
case
FUNio
:
case
FUNio
:
...
...
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