Commit Graph

4328 Commits

Author SHA1 Message Date
Jun Hiroe caa139f91a Refactor tests in kernel.rb 2014-02-27 23:49:58 +09:00
Yukihiro "Matz" Matsumoto d1526b0409 should not continue loop when ci = NULL 2014-02-27 19:00:37 +09:00
Yukihiro "Matz" Matsumoto 56ebac0db2 Merge pull request #1751 from cubicdaiya/issues/test_for_instance_variable_defined_question
Add test for Kernel#instance_variable_defined?
2014-02-27 14:15:27 +09:00
Yukihiro "Matz" Matsumoto 524352ffbb Merge pull request #1755 from cubicdaiya/issues/add_to_me_authors
Could you add me to AUTHORS?
2014-02-27 14:14:51 +09:00
cubicdaiya 83e9c45de9 Could you add me to AUTHORS? 2014-02-27 09:48:00 +09:00
Yukihiro "Matz" Matsumoto 313f6b5997 forget to break in the switch statement 2014-02-27 08:23:32 +09:00
Yukihiro "Matz" Matsumoto b31a90614d boot_defclass: super may be NULL 2014-02-27 08:21:39 +09:00
Yukihiro "Matz" Matsumoto 62071f7afe Merge pull request #1754 from pje/patch-1
Delete `!!Notice!!` intro paragraph from README
2014-02-27 07:59:44 +09:00
Patrick Ellis a75758d177 Delete !!Notice!! intro paragraph from README
It's become misleading since the release of 1.0.0 and the launch of mruby.org.
2014-02-26 14:49:51 -08:00
Yukihiro "Matz" Matsumoto 5b8229715d revert 38e9ce21 and API changed; mrb_get_backtrace() -> renamed to mrb_exc_backtrace since this is a backtrace method implementation of Exception; mrb_get_backtrace_at() -> removed; mrb_get_backtrace() -> added to get backtrace in array (like caller) 2014-02-27 04:34:30 +09:00
Yukihiro "Matz" Matsumoto 0c1c4416e7 avoid recursion when method_missing happened in inspect; fix #1746 2014-02-27 04:23:57 +09:00
Yukihiro "Matz" Matsumoto d264e1addd fix indent 2014-02-27 03:50:59 +09:00
Yukihiro "Matz" Matsumoto 38e9ce21f8 add new function mrb_get_backtrace_at() to get backtrace at ci and pc 2014-02-27 03:45:52 +09:00
Yukihiro "Matz" Matsumoto 630a152093 Merge pull request #1753 from take-cheeze/assert_rb
Compile assert.rb once.
2014-02-27 02:04:45 +09:00
cubicdaiya 677cd22be1 add test for Kernel#instance_variable_defined? 2014-02-26 22:44:22 +09:00
Yukihiro "Matz" Matsumoto 14948710a9 Merge pull request #1752 from cubicdaiya/issues/use_mrb_str_new_lit2
Use mrb_str_new_lit instead of mrb_str_new for C string literal
2014-02-26 22:41:25 +09:00
cubicdaiya 4c283714f6 use mrb_str_new_lit instead of mrb_str_new for C string literal 2014-02-26 22:34:12 +09:00
take_cheeze 7201404ee0 compile assert.rb once 2014-02-26 22:01:31 +09:00
Yukihiro "Matz" Matsumoto cc39213856 Merge pull request #1748 from cubicdaiya/issues/optim_get_valid_iv_sym
fix bug for get_valid_iv_sym
2014-02-26 21:59:01 +09:00
Yukihiro "Matz" Matsumoto 8c949eeef0 Merge pull request #1747 from cubicdaiya/issues/use_mrb_intern_lit
use mrb_intern_lit instead of mrb_intern_cstr for C string literals
2014-02-26 21:56:59 +09:00
Yukihiro "Matz" Matsumoto bac71b482b Merge pull request #1749 from take-cheeze/file_line_test
add test for __LINE__ and __FILE__
2014-02-26 21:55:27 +09:00
Yukihiro "Matz" Matsumoto c93f873ac0 Merge pull request #1744 from cubicdaiya/feature/introduce_mrb_str_cat_lit
Introduce mrb_str_cat_lit
2014-02-26 21:54:05 +09:00
Yukihiro "Matz" Matsumoto f3476d1dcb Merge pull request #1743 from cubicdaiya/issues/use_mrb_str_new_lit
Use mrb_str_new_lit instead of mrb_str_new for C string literals
2014-02-26 21:26:47 +09:00
take_cheeze d31f824b5a add test for __LINE__ and __FILE__ 2014-02-26 21:11:33 +09:00
cubicdaiya d316115748 fix bug for get_valid_iv_sym
When sub-string is used in the following way, it does not work well.

o = Object.new
o.instance_variable_set(:@a, 1)
o.instance_variable_defined?("@abc"[0,2]) #=> false (this should be true)
2014-02-26 17:26:40 +09:00
cubicdaiya 6db2e080f0 use mrb_intern_lit instead of mrb_intern_cstr for C string literals 2014-02-26 13:48:11 +09:00
cubicdaiya a860735d0c use mrb_str_cat_lit() more widely 2014-02-26 03:03:47 +09:00
cubicdaiya 6b3801c30d introduce mrb_str_cat_lit() to create strings from C string litrals 2014-02-26 03:03:00 +09:00
cubicdaiya 94c5a5ee73 use mrb_str_new_lit instead of mrb_str_new for C string literals 2014-02-26 02:23:50 +09:00
Yukihiro "Matz" Matsumoto e203383d98 Merge pull request #1739 from take-cheeze/clang_cxx
Specialize C++ compiler in clang toolchain.
2014-02-26 01:55:36 +09:00
Yukihiro "Matz" Matsumoto 8814aedcb8 Merge pull request #1741 from suzukaze/update-readme
Update README.md; The URL of the mruby home-page is accessible.
2014-02-26 01:54:54 +09:00
Yukihiro "Matz" Matsumoto 7952e7af3c Merge pull request #1740 from tmash06/fix_missing_spaces
fix missing spaces.
2014-02-26 01:54:27 +09:00
Jun Hiroe b57d4f2e15 Update README.md; The URL of the mruby home-page is accessible. 2014-02-26 01:13:30 +09:00
Yukihiro "Matz" Matsumoto f3e9a066aa Merge branch 'master' of github.com:mruby/mruby 2014-02-26 00:10:06 +09:00
Yukihiro "Matz" Matsumoto d747ea72c4 resolve conflict 2014-02-26 00:06:58 +09:00
Tatsuya Matsumoto fd903c1f38 fix missing spaces. 2014-02-26 00:06:23 +09:00
take_cheeze 043e7fc6bd specialize C++ compiler in clang toolchain 2014-02-25 22:42:12 +09:00
Yukihiro "Matz" Matsumoto feeaea8dcd Merge pull request #1737 from chasonr/Random-static-data
Implement default Random instance.
2014-02-25 19:16:01 +09:00
Yukihiro "Matz" Matsumoto 501f7ab25d Merge pull request #1738 from cubicdaiya/issues/optim_mrb_time_zone
small-optimization for mrb_time_zone
2014-02-25 19:13:44 +09:00
cubicdaiya 96c24b0a37 small-optimization2 for mrb_time_zone
mrb_str_new_static is more efficient than mrb_str_new in this case.
2014-02-25 15:24:02 +09:00
cubicdaiya 985e4892cf small-optimization for mrb_time_zone
Using mrb_str_new instead of mrb_str_new_cstr
2014-02-25 15:03:35 +09:00
chasonr 7c9ff7c8ff Implement default Random instance.
Previously, the default random number generator was implemented using static
storage.  This storage is common to all instances of mruby in a process, and
use of the default random number generator in one instance will perturb the
default random number generator in other instances.  It is also not thread
safe.

With this change, the default random number generator is defined as
Random::DEFAULT, as it is in CRuby.
2014-02-25 00:06:31 -05:00
Yukihiro "Matz" Matsumoto 05d3b9de54 clarify fallthrough in the switch statement 2014-02-25 10:48:10 +09:00
Yukihiro "Matz" Matsumoto ebd976be84 initialize sname before interning 2014-02-25 10:43:16 +09:00
Yukihiro "Matz" Matsumoto b201dbeb3d Merge pull request #1736 from take-cheeze/doc_update
add ruby and C code execution order note
2014-02-25 07:52:00 +09:00
take_cheeze f59636304a add ruby and C code execution order note 2014-02-25 03:32:14 +09:00
Yukihiro "Matz" Matsumoto de0af73c24 Merge pull request #1732 from cho45/depend-build-config
Always include build_config.rb to compile dependency.
2014-02-25 02:20:13 +09:00
Yukihiro "Matz" Matsumoto e86ce92066 Merge pull request #1733 from take-cheeze/mrb_stringize
add MRB_ prefix to STRINGIZE macro
2014-02-25 02:19:16 +09:00
Yukihiro "Matz" Matsumoto 303b955ba8 Merge pull request #1734 from kyab/add_galileo_config
Add target example for Intel Galileo board
2014-02-25 02:18:59 +09:00
Yukihiro "Matz" Matsumoto ad40f32d57 Merge pull request #1735 from h2so5/limit-significand-length
limit preserved significand length
2014-02-25 02:18:34 +09:00