Commit 4be3ca52 authored by mimaki's avatar mimaki

Merge branch 'master' of github.com:mruby/mruby

parents d67cd99b dc2c98ab
mRuby is copyrighted free software by mruby developers <info@mruby.org>. mruby 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:
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* lib * lib
* include * include
If an error occurs when compiling mRuby, it will be helpful for others if you If an error occurs when compiling mruby, 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.
......
...@@ -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 mRuby * What's mruby
mRuby is the light-weight implementation of the Ruby language complied to the ISO mruby 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 mRuby * Features of mruby
|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 mRuby * How to get mruby
The mRuby distribution files can be found in the following site: The mruby 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 mRuby source tree can be checked out with the The trunk of the mruby 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 ....
* mRuby home-page (sorry, it's not launched yet. we're working on this) * mruby home-page (sorry, it's not launched yet. we're working on this)
The URL of the mRuby home-page is: The URL of the mruby home-page is:
http://www.mruby.org/ http://www.mruby.org/
* Mailing list * Mailing list
There is a mailing list to talk about mRuby. There is a mailing list to talk about mruby.
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 mRuby. Thank you for considering of contribution for mruby.
mRuby has chosen a MIT License as comparatively loose condition, mruby 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, mRuby has decided to display "mruby developers" as copyright name So, mruby has decided to display "mruby developers" as copyright name
to make it simple conventionally. to make it simple conventionally.
In the future, mRuby might ask you to distribute your new codes In the future, mruby 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,
......
...@@ -5,16 +5,16 @@ ...@@ -5,16 +5,16 @@
修正のご指摘は随時受け付けていますが、対応が遅くなるかもしれません。 修正のご指摘は随時受け付けていますが、対応が遅くなるかもしれません。
予めご了承ください。 予めご了承ください。
* mRubyとは * mrubyとは
mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能となるように mrubyはISO規格に準拠したRuby言語を様々な環境で動作可能となるように
軽量化したものです。モジュール構成によりインタプリタ実行形式や 軽量化したものです。モジュール構成によりインタプリタ実行形式や
コンパイル&VM実行形式でも動作させることができます。 コンパイル&VM実行形式でも動作させることができます。
2010年度の経済産業省の地域イノベーション創出事業により開発されました。 2010年度の経済産業省の地域イノベーション創出事業により開発されました。
* mRubyの特長 * mrubyの特長
|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 ....
* ホームページ (まだ準備中です。ただいま鋭意製作中です。) * ホームページ (まだ準備中です。ただいま鋭意製作中です。)
mRubyのホームページのURLは mrubyのホームページのURLは
http://www.mruby.org/ http://www.mruby.org/
...@@ -61,12 +62,12 @@ mRubyのホームページのURLは ...@@ -61,12 +62,12 @@ mRubyのホームページのURLは
* メーリングリスト * メーリングリスト
mRubyのメーリングリストがあります。参加希望の方は…. mrubyのメーリングリストがあります。参加希望の方は....[T.B.D.]
Ruby開発者向けメーリングリストもあります。こちらではrubyのバ mruby開発者向けメーリングリストもあります。こちらではrubyのバグ、
グ、将来の仕様拡張など実装上の問題について議論されています。 将来の仕様拡張など実装上の問題について議論されています。
参加希望の方は 参加希望の方は....[T.B.D.]
* コンパイル・インストール・移植 * コンパイル・インストール・移植
...@@ -81,15 +82,15 @@ COPYING.ja ファイルを参照してください。 ...@@ -81,15 +82,15 @@ COPYING.ja ファイルを参照してください。
* コントリビュートについて * コントリビュートについて
mRubyへの貢献の検討をありがとうございます。 mrubyへの貢献の検討をありがとうございます。
mRubyは組込み機器などの様々な環境で利用させることを期待し、ライセンスを mrubyは組込み機器などの様々な環境で利用させることを期待し、ライセンスを
比較的制限の緩いMITライセンスにすることにいたしました。 比較的制限の緩いMITライセンスにすることにいたしました。
しかしながら、ライセンスの実行条件としてマニュアル等の何らかの形で しかしながら、ライセンスの実行条件としてマニュアル等の何らかの形で
著作権表記及びライセンス文を記述する必要があります。 著作権表記及びライセンス文を記述する必要があります。
昨今の規模の大きくなったシステムではこれらの対応も相当の煩雑さを伴います。 昨今の規模の大きくなったシステムではこれらの対応も相当の煩雑さを伴います。
そこで、mRubyではできる限り表記を簡便にするために、便宜上、著作権者名を そこで、mrubyではできる限り表記を簡便にするために、便宜上、著作権者名を
"mruby developers"とすることにいたしました。 "mruby developers"とすることにいたしました。
今後、新たにmRubyへのコミットされるコードについては、著作権を保持したまま、 今後、新たにmrubyへのコミットされるコードについては、著作権を保持したまま、
"mruby developers"の一員としてMITライセンスでの配布をお願いしたいと "mruby developers"の一員としてMITライセンスでの配布をお願いしたいと
考えています。 考えています。
(コミットしたコードの著作権を譲渡や放棄をお願いするものではありません。 (コミットしたコードの著作権を譲渡や放棄をお願いするものではありません。
......
...@@ -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);
......
...@@ -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 */
......
...@@ -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
......
...@@ -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;
......
...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment