Commit Graph

4315 Commits

Author SHA1 Message Date
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
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
Yukihiro "Matz" Matsumoto c636386953 avoid accessing uninitialized string; ref ac936fc 2014-02-25 00:47:02 +09:00
Yukihiro "Matz" Matsumoto ddf9504558 Merge pull request #1721 from take-cheeze/d_format_spec
add 'd' format specifier in mrb_get_args and mruby-random gem improvement
2014-02-25 00:22:27 +09:00
kyab 70935f9979 Add target example for Intel Galileo board 2014-02-24 23:16:02 +09:00
take_cheeze faad3e2ecd add MRB_ prefix to STRINGIZE macro 2014-02-24 23:13:21 +09:00
Yukihiro "Matz" Matsumoto 2f9cf26ab5 Merge pull request #1731 from jeremyong/master
Issue minor corrections and updates to INSTALL file.
2014-02-24 18:01:46 +09:00
Yukihiro "Matz" Matsumoto a26867f595 Merge pull request #1730 from bggd/patch-3
Add error for C99 style variable declaration on travis-ci
2014-02-24 17:59:58 +09:00
cho45 03b1b62bde Always include build_config.rb to compile dependency.
build_config.rb modifies `cc.defines` (eg. `DISABLE_GEMS`) so files depending on such flags should be rebuilt.

Ref. (Failing scenario): https://gist.github.com/cho45/9181191
2014-02-24 12:01:54 +09:00
Jeremy Ong 6fb75460c1 Issue minor corrections and updates to INSTALL file. 2014-02-23 18:33:26 -08:00
bggd 7c716de723 add -Werror=declaration-after-statement 2014-02-24 11:13:48 +09:00
bggd 3ff4af91a2 remove -Werror=declaration-after-statement 2014-02-24 11:08:23 +09:00
h2so5 f025e4961d limit preserved significand length 2014-02-24 08:21:10 +09:00
Yukihiro "Matz" Matsumoto 109f675f44 Merge pull request #1727 from bggd/patch-2
Add warning for C89-style variable declarations
2014-02-24 01:41:27 +09:00
Yukihiro "Matz" Matsumoto 8b29f0d9c1 Merge pull request #1729 from take-cheeze/customizable_build_dir
Make mruby build directory customizable.
2014-02-24 01:41:06 +09:00