mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge branch 'master' of github.com:mruby/mruby
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
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
|
||||
MIT license (see the file MITL), or the conditions below:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* lib
|
||||
* 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,
|
||||
and OS type.
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
Any suggestion of the modification are welcome,
|
||||
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
|
||||
'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
|
||||
the Ministry of Economy, Trade and Industry of Japan.
|
||||
|
||||
|
||||
* Features of mRuby
|
||||
* Features of mruby
|
||||
|
||||
|FIXME:
|
||||
| + Simple Syntax
|
||||
@@ -30,34 +30,34 @@ the Ministry of Economy, Trade and Industry of Japan.
|
||||
| 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
|
||||
|
||||
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:
|
||||
|
||||
$ git ...
|
||||
$ git ....
|
||||
|
||||
There are some other branches under development. Try the following
|
||||
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/
|
||||
|
||||
|
||||
* Mailing list
|
||||
|
||||
There is a mailing list to talk about mRuby.
|
||||
To subscribe this list....
|
||||
There is a mailing list to talk about mruby.
|
||||
To subscribe this list....[T.B.D.]
|
||||
|
||||
* How to compile and install
|
||||
|
||||
@@ -71,15 +71,15 @@ See the file COPYING.
|
||||
|
||||
* About Contribution
|
||||
|
||||
Thank you for considering of contribution for mRuby.
|
||||
mRuby has chosen a MIT License as comparatively loose condition,
|
||||
Thank you for considering of contribution for mruby.
|
||||
mruby has chosen a MIT License as comparatively loose condition,
|
||||
to expect to apply into various environment such as embedded system.
|
||||
However, the license requires to display copyright notice and license
|
||||
sentenses, for example manual or so. Especially for the recent bigger
|
||||
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.
|
||||
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
|
||||
"mruby developers" with keeping copyright of you.
|
||||
(We did not intend you to transfer or waive your copyright,
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
修正のご指摘は随時受け付けていますが、対応が遅くなるかもしれません。
|
||||
予めご了承ください。
|
||||
|
||||
* mRubyとは
|
||||
* mrubyとは
|
||||
|
||||
mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能となるように
|
||||
mrubyはISO規格に準拠したRuby言語を様々な環境で動作可能となるように
|
||||
軽量化したものです。モジュール構成によりインタプリタ実行形式や
|
||||
コンパイル&VM実行形式でも動作させることができます。
|
||||
|
||||
2010年度の経済産業省の地域イノベーション創出事業により開発されました。
|
||||
|
||||
|
||||
* mRubyの特長
|
||||
* mrubyの特長
|
||||
|
||||
|MRI(Matz Ruby Implementation)版との互換性
|
||||
|
|
||||
@@ -31,6 +31,7 @@ mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能と
|
||||
| 動くだけでなく,Windows, Mac OS X,BeOSなどの上でも動く
|
||||
| cf. http://redmine.ruby-lang.org/wiki/ruby-19/SupportedPlatformsJa
|
||||
|
||||
|
||||
* 入手法
|
||||
|
||||
** Zipで
|
||||
@@ -43,16 +44,16 @@ mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能と
|
||||
|
||||
開発先端のソースコードは次のコマンドで取得できます.
|
||||
|
||||
$ git …..
|
||||
$ git ....
|
||||
|
||||
他に開発中のブランチの一覧は次のコマンドで見られます.
|
||||
|
||||
$ git …
|
||||
$ git ....
|
||||
|
||||
|
||||
* ホームページ (まだ準備中です。ただいま鋭意製作中です。)
|
||||
|
||||
mRubyのホームページのURLは
|
||||
mrubyのホームページのURLは
|
||||
|
||||
http://www.mruby.org/
|
||||
|
||||
@@ -61,12 +62,12 @@ mRubyのホームページのURLは
|
||||
|
||||
* メーリングリスト
|
||||
|
||||
mRubyのメーリングリストがあります。参加希望の方は….
|
||||
mrubyのメーリングリストがあります。参加希望の方は....[T.B.D.]
|
||||
|
||||
|
||||
Ruby開発者向けメーリングリストもあります。こちらではrubyのバ
|
||||
グ、将来の仕様拡張など実装上の問題について議論されています。
|
||||
参加希望の方は…
|
||||
mruby開発者向けメーリングリストもあります。こちらではrubyのバグ、
|
||||
将来の仕様拡張など実装上の問題について議論されています。
|
||||
参加希望の方は....[T.B.D.]
|
||||
|
||||
|
||||
* コンパイル・インストール・移植
|
||||
@@ -81,15 +82,15 @@ COPYING.ja ファイルを参照してください。
|
||||
|
||||
* コントリビュートについて
|
||||
|
||||
mRubyへの貢献の検討をありがとうございます。
|
||||
mRubyは組込み機器などの様々な環境で利用させることを期待し、ライセンスを
|
||||
mrubyへの貢献の検討をありがとうございます。
|
||||
mrubyは組込み機器などの様々な環境で利用させることを期待し、ライセンスを
|
||||
比較的制限の緩いMITライセンスにすることにいたしました。
|
||||
しかしながら、ライセンスの実行条件としてマニュアル等の何らかの形で
|
||||
著作権表記及びライセンス文を記述する必要があります。
|
||||
昨今の規模の大きくなったシステムではこれらの対応も相当の煩雑さを伴います。
|
||||
そこで、mRubyではできる限り表記を簡便にするために、便宜上、著作権者名を
|
||||
そこで、mrubyではできる限り表記を簡便にするために、便宜上、著作権者名を
|
||||
"mruby developers"とすることにいたしました。
|
||||
今後、新たにmRubyへのコミットされるコードについては、著作権を保持したまま、
|
||||
今後、新たにmrubyへのコミットされるコードについては、著作権を保持したまま、
|
||||
"mruby developers"の一員としてMITライセンスでの配布をお願いしたいと
|
||||
考えています。
|
||||
(コミットしたコードの著作権を譲渡や放棄をお願いするものではありません。
|
||||
|
||||
@@ -441,11 +441,14 @@ void mrb_bug(const char *fmt, ...);
|
||||
#ifdef __GNUC__
|
||||
# define NUM2CHR(x) __extension__ ({mrb_value num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
|
||||
#else
|
||||
/* TODO: there is no definitions of RSTRING_* here, so cannot compile.
|
||||
static inline char
|
||||
NUM2CHR(mrb_value x)
|
||||
{
|
||||
return NUM2CHR_internal(x);
|
||||
}
|
||||
*/
|
||||
#define NUM2CHR(x) NUM2CHR_internal(x)
|
||||
#endif
|
||||
mrb_value mrb_io_gets(mrb_state *mrb, mrb_value);
|
||||
mrb_value mrb_io_getbyte(mrb_state *mrb, mrb_value);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
int color:3;\
|
||||
unsigned int flags:21;\
|
||||
struct RClass *c;\
|
||||
struct RBasic *gcnext;
|
||||
struct RBasic *gcnext
|
||||
|
||||
|
||||
/* white: 011, black: 100, gray: 000 */
|
||||
|
||||
@@ -4228,6 +4228,7 @@ parser_yylex(parser_state *p)
|
||||
else if (term == '[') term = ']';
|
||||
else if (term == '{') term = '}';
|
||||
else if (term == '<') term = '>';
|
||||
p->sterm = term;
|
||||
#if 0
|
||||
else paren = 0;
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ mrb_pool_alloc(mrb_pool *pool, size_t len)
|
||||
if (page->offset + len <= page->len) {
|
||||
n = page->offset;
|
||||
page->offset += len;
|
||||
page->last = (void*)page->page+n;
|
||||
page->last = (char*)page->page+n;
|
||||
return page->last;
|
||||
}
|
||||
page = page->next;
|
||||
|
||||
+2
-2
@@ -632,14 +632,14 @@ transcode_restartable0(mrb_state *mrb,
|
||||
}
|
||||
continue;
|
||||
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;
|
||||
case FUNsi:
|
||||
{
|
||||
const unsigned char *char_start;
|
||||
size_t 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;
|
||||
}
|
||||
case FUNio:
|
||||
|
||||
Reference in New Issue
Block a user