Commit Graph

962 Commits

Author SHA1 Message Date
skandhas 611cfee3c2 modify aspec 2012-11-12 20:43:10 +08:00
skandhas fc6703878d Merge branch 'add-cvars' into pr-add-class-variables 2012-11-12 20:21:38 +08:00
Yukihiro Matz Matsumoto 191d1391c6 should wrap associ in aref_args; close #529 2012-11-12 18:28:33 +09:00
skandhas 1cc44cfd78 add Module#class_variables 2012-11-09 23:00:24 +08:00
skandhas 70eaf92d8a fix incorrect mrb->irep initialization 2012-11-09 15:55:09 +08:00
Yukihiro Matz Matsumoto caeec3a3af Merge branch 'master' of github.com:mruby/mruby 2012-11-09 05:51:34 +09:00
Yukihiro Matz Matsumoto 0ab7ff81d6 should initialize irep->flags 2012-11-09 05:51:18 +09:00
Yukihiro "Matz" Matsumoto 8038ba8e27 Merge pull request #541 from xxuejie/master
Fix build on a c++ compiler
2012-11-08 12:46:14 -08:00
Yukihiro "Matz" Matsumoto 862f3c39a8 Merge pull request #537 from iij/pr-adjust-length-after-chomp
adjust string length after String#chomp!
2012-11-08 12:45:06 -08:00
Xuejie Xiao 4bbf7a3e12 Fix build on c++ compiler 2012-11-08 11:32:45 -05:00
Akira Yumiyama d090f3eedb adjust string length after String#chomp! 2012-11-08 15:13:23 +09:00
nkshigeru 9447e823a8 avoid local variable declaration in the middle 2012-11-08 11:49:40 +09:00
Yukihiro "Matz" Matsumoto f35d797ee6 Merge pull request #530 from skandhas/pr_fix_instance_variables_result_contain_ivar_and_cvar
The output of Kernel#instance_variables contains instance variables and ...
2012-11-07 15:51:48 -08:00
Yukihiro "Matz" Matsumoto 5a82f65a02 Merge pull request #534 from skandhas/pr-compatible-with-msvc
compatible with MSVC
2012-11-07 15:50:51 -08:00
Akira Yumiyama 03b74a6c48 Ruby and align the behavior. 2012-11-07 17:29:59 +09:00
Akira Yumiyama 94520ea797 fix 'undefined method' error message. 2012-11-07 17:10:04 +09:00
skandhas 922d50a694 compatible with MSVC 2012-11-07 10:28:20 +08:00
skandhas 3266b6160e The output of Object#instance_variables contains instance variables and class variables. 2012-11-06 10:45:22 +08:00
Yukihiro Matz Matsumoto 3ceadfa5b2 inline include/mruby/object.h 2012-11-05 06:10:22 +09:00
Yukihiro Matz Matsumoto c903910c6b replace RBASIC by mrb_basic 2012-11-04 13:56:08 +09:00
Yukihiro Matz Matsumoto 902dd63803 remove FL_XXX macros 2012-11-04 05:15:22 +09:00
Yukihiro Matz Matsumoto e429905597 replace SYM2ID() by mrb_symbol() 2012-11-04 05:11:39 +09:00
Yukihiro Matz Matsumoto ca7c662be5 remove reference to ruby_verbose and ruby_debug 2012-11-04 05:07:44 +09:00
Yukihiro Matz Matsumoto 15304c194d replace RTEST() by mrb_test_p() 2012-11-04 05:05:53 +09:00
Yukihiro Matz Matsumoto d2d2e9f5f9 add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p() 2012-11-04 05:02:39 +09:00
Yukihiro Matz Matsumoto 051777dc5d replace SYMBOL_P() by mrb_symbol_p() 2012-11-04 04:53:25 +09:00
Yukihiro Matz Matsumoto da88627a37 add mrb_float_p() 2012-11-04 04:51:13 +09:00
Yukihiro Matz Matsumoto 3ba521ae9e replace FIXNUM_P() by mrb_fixnum_p() 2012-11-04 04:49:43 +09:00
Yukihiro Matz Matsumoto 52f7e83726 Module#dup should copy class methods as well 2012-11-03 08:28:48 +09:00
Yukihiro Matz Matsumoto 2e0aa29296 cosmetic changes in mrb_obj_clone() 2012-11-03 08:28:26 +09:00
Yukihiro Matsumoto 9f0c59e068 FALSE and STRING should not be converted to float for get_args("f"); close #525 2012-11-03 01:57:57 +09:00
Yukihiro "Matz" Matsumoto b06d8e2ab8 Merge pull request #524 from iij/pr-backtrace
show backtrace when mruby dies on unhandled exception
2012-11-02 07:38:00 -07:00
Takashi Sogabe c0c1c4da32 Fix stack underflow in scope_body()
Commit #18dd60c causes side effects.
This patch fixes stack underflow in scope_body().
2012-11-02 17:49:56 +09:00
Tomoyuki Sahara 80ed166e9f show all callinfo's. 2012-11-02 10:33:23 +09:00
Tomoyuki Sahara 075aa3eeaa don't print garbage entries. 2012-11-02 10:33:14 +09:00
skandhas d232f4cc47 fix when mruby parse embedded rd document, mruby throw a syntax error. 2012-11-01 16:23:37 +08:00
Yukihiro Matsumoto fe36bdb7f1 add String#bytes to return bytes in a string 2012-11-01 06:12:11 +09:00
Yukihiro Matsumoto 9b85ffa5a7 OP_ADDI/OP_SUBI should handle integer overflow; close #518 2012-11-01 05:54:53 +09:00
Yukihiro "Matz" Matsumoto 604e39bdfb Merge pull request #521 from iij/pr-fix-broken-variable-ref-next-statement
fix: broken variable reference, use 'next' statement
2012-10-31 12:27:18 -07:00
Yukihiro Matsumoto 8cf42709d1 constant access should refer outer class/module; close #514 2012-11-01 04:21:39 +09:00
Kouki Ooyatsu 35699424a9 fix: broken variable reference, use 'next' statement
Because the tree is gone pop() even if it is empty.
2012-10-31 20:20:36 +09:00
Yukihiro "Matz" Matsumoto b720156c99 Merge pull request #515 from iij/pr-fix-mrb-format
fixes *.mrb dump/load format with escaped character.
2012-10-29 23:30:59 -07:00
Yukihiro "Matz" Matsumoto 4c700eddb7 Merge pull request #517 from skandhas/pr-fix-cannot-get-const-form-singleton-class
fix cannot get/set const variable form singleton class
2012-10-29 23:29:29 -07:00
skandhas ec343a6421 fix cannot get/set const variable form singleton class 2012-10-30 14:00:58 +08:00
Masaki Muranaka 30f7a93d41 Use NULL instead of 0. (It is not a bug fix but a cosmetic change.) 2012-10-30 14:25:00 +09:00
Akira Yumiyama 94d16805a5 fixes *.mrb dump/load format with escaped character.
- hex-style string support
 - mrb format changes like:
  - "\n" (before: \n -> after: \n)
  - '\n' (before: \n -> after: \\n)
2012-10-30 08:30:18 +09:00
Yukihiro "Matz" Matsumoto 4d1a8718bd Merge pull request #513 from monaka/pr-not-use-memset-in-structure-initialization3
Use substitution instead of memset in structure initialization.
2012-10-28 22:47:08 -07:00
Masaki Muranaka f3090c3000 Use substitution instead of memset in structure initialization. 2012-10-29 11:29:57 +09:00
Yukihiro Matsumoto cfc1269d33 revert part of #507 for warning 2012-10-29 03:29:32 +09:00
Yukihiro "Matz" Matsumoto c6c4da8c48 Merge pull request #510 from masuidrive/master
define convert method mrb_int/mrb_float with C string
2012-10-28 10:45:43 -07:00