diff options
| -rw-r--r-- | COPYING | 14 | ||||
| -rw-r--r-- | INSTALL | 11 | ||||
| -rw-r--r-- | INSTALL.ja | 1 | ||||
| -rw-r--r-- | LEGAL | 2 | ||||
| -rw-r--r-- | MITL | 19 | ||||
| -rw-r--r-- | MITL.ja | 16 | ||||
| -rw-r--r-- | README | 43 | ||||
| -rw-r--r-- | README.ja | 33 | ||||
| -rw-r--r-- | TODO | 15 | ||||
| -rw-r--r-- | TODO.ja (renamed from Todo.txt) | 6 | ||||
| -rw-r--r-- | src/error.c | 2 | ||||
| -rw-r--r-- | src/load.c | 2 |
12 files changed, 132 insertions, 32 deletions
@@ -11,8 +11,8 @@ MIT license (see the file MITL), or the conditions below: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said - modifications to Usenet or an equivalent medium, or by allowing - the author to include your modifications in the software. + modifications to Usenet or an equivalent medium, or by allowing + the author to include your modifications in the software. b) use the modified software only within your corporation or organization. @@ -26,11 +26,11 @@ MIT license (see the file MITL), or the conditions below: provided that you do at least ONE of the following: a) distribute the binaries and library files of the software, - together with instructions (in the manual page or equivalent) - on where to get the original distribution. + together with instructions (in the manual page or equivalent) + on where to get the original distribution. b) accompany the distribution with the machine-readable source of - the software. + the software. c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. @@ -44,9 +44,9 @@ MIT license (see the file MITL), or the conditions below: For the list of those files and their copying conditions, see the file LEGAL. - 5. The scripts and library files supplied as input to or produced as + 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the - copyright of the software, but belong to whomever generated them, + copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. @@ -1,19 +1,20 @@ * Compilation and Installation - 1. Run make in top directory. + 1. Run make in the top directory. - This command will create following directories and + This command will create the following directories and store libraries and binaries files into them. * bin * lib * include -If you fail to compile ruby, please send the detailed error report with -the error log and machine/OS type, to help others. +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. -* Porting to other platforms +* Porting to other platforms That's all. diff --git a/INSTALL.ja b/INSTALL.ja index 94671f711..032f91f41 100644 --- a/INSTALL.ja +++ b/INSTALL.ja @@ -8,6 +8,7 @@ * bin * lib + * include もし,コンパイル時にエラーが発生した場合にはエラーのログとマ シン,OSの種類を含むできるだけ詳しいレポートを作者に送ってく @@ -5,4 +5,4 @@ All the files in this distribution are covered under the MIT license (see the file COPYING) except some files mentioned below: -(currently no item are listed.) +(Currently no items are listed.) @@ -1,7 +1,20 @@ Copyright (c) 2012 mruby developers -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -1,7 +1,17 @@ Copyright (c) 2012 mruby developers -以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)の複製を取得するすべての人に対し、ソフトウェアを無制限に扱うことを無償で許可します。これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、サブライセンス、および/または販売する権利、およびソフトウェアを提供する相手に同じことを許可する権利も無制限に含まれます。 +以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウ +ェア」)の複製を取得するすべての人に対し、ソフトウェアを無制限に扱うことを無償 +で許可します。これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、 +サブライセンス、および/または販売する権利、およびソフトウェアを提供する相手に +同じことを許可する権利も無制限に含まれます。 -上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分に記載するものとします。 +上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分 +に記載するものとします。 -ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、何らの保証もなく提供されます。ここでいう保証とは、商品性、特定の目的への適合性、および権利非侵害についての保証も含みますが、それに限定されるものではありません。 作者または著作権者は、契約行為、不法行為、またはそれ以外であろうと、ソフトウェアに起因または関連し、あるいはソフトウェアの使用またはその他の扱いによって生じる一切の請求、損害、その他の義務について何らの責任も負わないものとします。 +ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、何らの保証も +なく提供されます。ここでいう保証とは、商品性、特定の目的への適合性、および権利 +非侵害についての保証も含みますが、それに限定されるものではありません。 +作者または著作権者は、契約行為、不法行為、またはそれ以外であろうと、ソフトウェ +アに起因または関連し、あるいはソフトウェアの使用またはその他の扱いによって生じ +る一切の請求、損害、その他の義務について何らの責任も負わないものとします。 @@ -1,9 +1,17 @@ +!!Notice!! This is a preliminary release for internal team reviewing. + The URL and address discribed below are not available yet. + The official release will be announced later. Thanks. + Any suggestion of the modification are welcome, + but the response might be delayed. Sorry for that in advance. + * What's mRuby -mRuby is the light-weighted implementation of ruby language complied with ISO standard to execute various environment. It can run as 'interpreter form' or +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. -This achivement is due to the Regional Innovation Creation R&D Programs of the Ministry of Economy, Trade and Industry of Japan. +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 @@ -39,9 +47,9 @@ command and see the list of branches: $ 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/ @@ -61,12 +69,35 @@ See the file INSTALL. See the file COPYING. +* About Contribution + +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 +to make it simple conventionally. +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, + Actual copyright holder name, you, will be listed in AUTHORS file.) + +Please ask us if you want to distribute your code under other license +or if your code is derived from GPL code. + + * The Author -Feel free to send comments and bug reports to the author. Here is the +See the file AUTHORS. + + +Feel free to send comments and bug reports to the author. Here is the author's latest mail address: ------------------------------------------------------- created at: Fri Apr 20 11:57:36 JST 2012 @@ -1,3 +1,10 @@ +※注意 これはチーム内レビューの為の事前公開です。 + 記述されているURLやメールアドレスは現在使用できません。 + 正式リリースは後日アナウンス予定です。 + + 修正のご指摘は随時受け付けていますが、対応が遅くなるかもしれません。 + 予めご了承ください。 + * mRubyとは mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能となるように @@ -43,7 +50,7 @@ mRubyはISO規格に準拠したRuby言語を様々な環境で動作可能と� $ git … -* ホームページ +* ホームページ (まだ準備中です。ただいま鋭意製作中です。) mRubyのホームページのURLは @@ -62,7 +69,6 @@ Ruby開発者向けメーリングリストもあります。こちらではruby 参加希望の方は… - * コンパイル・インストール・移植 INSTALL.ja ファイルを参照してください。 @@ -73,8 +79,31 @@ INSTALL.ja ファイルを参照してください。 COPYING.ja ファイルを参照してください。 +* コントリビュートについて + +mRubyへの貢献の検討をありがとうございます。 +mRubyは組込み機器などの様々な環境で利用させることを期待し、ライセンスを +比較的制限の緩いMITライセンスにすることにいたしました。 +しかしながら、ライセンスの実行条件としてマニュアル等の何らかの形で +著作権表記及びライセンス文を記述する必要があります。 +昨今の規模の大きくなったシステムではこれらの対応も相当の煩雑さを伴います。 +そこで、mRubyではできる限り表記を簡便にするために、便宜上、著作権者名を +"mruby developers"とすることにいたしました。 +今後、新たにmRubyへのコミットされるコードについては、著作権を保持したまま、 +"mruby developers"の一員としてMITライセンスでの配布をお願いしたいと +考えています。 +(コミットしたコードの著作権を譲渡や放棄をお願いするものではありません。 + 実質の著作者名はAUTHORSファイルに表記いたします。) + +尚、その他のライセンスでの配布やGPL由来のコードのコミットについては +別途ご相談ください。 + + * 著者 +AUTHORS ファイルを参照してください。 + + コメント,バグレポートその他は [email protected] まで. ------------------------------------------------------- created at: Fri Apr 20 11:57:36 JST 2012 @@ -0,0 +1,15 @@ +Things to do (Things that are not done yet) + +* Here document +* Special variables ($1,$2..) +* super in aliased methods +* BEGIN/END (Were we not supporting this?) +* const_missing +* respond_to_missing + +Things to improve (Done but things to fix) + +* Hash (Reduce size. Use khash or save the order) +* stringEx (Delete encoding、delete CODERANGE、delete everything except UTF-8 or ASCII) +* Make additions as they are noticed. + @@ -1,7 +1,7 @@ -やること(まだできてないこと) / not yet complete +やること(まだできてないこと) -* ヒアドキュメント / here document -* 特殊変数 ($1,$2..) / special variables +* ヒアドキュメント +* 特殊変数 ($1,$2..) * super in aliased methods * BEGIN/END (対応しないんだっけ?) * const_missing diff --git a/src/error.c b/src/error.c index 9dbfc972f..a671c6bbd 100644 --- a/src/error.c +++ b/src/error.c @@ -199,8 +199,8 @@ mrb_raise(mrb_state *mrb, struct RClass *c, const char *fmt, ...) va_start(args, fmt); vsnprintf(buf, 256, fmt, args); - mrb_raise_va(mrb, c, fmt, args); va_end(args); + mrb_exc_raise(mrb, mrb_exc_new(mrb, c, buf, strlen(buf))); } void diff --git a/src/load.c b/src/load.c index 848cf8f9a..3f5dc2c57 100644 --- a/src/load.c +++ b/src/load.c @@ -444,7 +444,7 @@ read_rite_irep_record(mrb_state *mrb, unsigned char *src, mrb_irep *irep, uint32 irep->slen = bin_to_uint32(src); //syms length src += MRB_DUMP_SIZE_OF_LONG; if (irep->slen > 0) { - if ((irep->syms = mrb_malloc(mrb, MRB_DUMP_SIZE_OF_INT * irep->slen)) == NULL) { + if ((irep->syms = mrb_malloc(mrb, sizeof(mrb_sym) * irep->slen)) == NULL) { ret = MRB_DUMP_INVALID_IREP; goto error_exit; } |
