Commit Graph

4294 Commits

Author SHA1 Message Date
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
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
Yukihiro "Matz" Matsumoto 37348c296e Merge pull request #1728 from kyab/fix_unused_error_mirb
Fix unused function warning when readline enabled (mirb)
2014-02-23 21:00:52 +09:00
take_cheeze 9059b9a354 support custom build_dir in CrossBuild 2014-02-23 20:50:51 +09:00
kyab 1cf619d3b4 Fix unused function warning when readline enabled (mirb) 2014-02-23 20:43:43 +09:00
Yukihiro "Matz" Matsumoto 46ee883574 move declaration to the top of the block; ref #1727 2014-02-23 20:41:15 +09:00
take_cheeze dd68ea9799 make mruby build directory customizable 2014-02-23 20:35:06 +09:00
bggd 15b484df38 Add warning for C89-style variable declarations 2014-02-23 16:08:56 +09:00
Yukihiro "Matz" Matsumoto e202d4cd53 add src/error.h for compatibility reason 2014-02-22 23:38:59 +09:00
Yukihiro "Matz" Matsumoto e8daace8f1 Merge pull request #1724 from h2so5/f2s-significand
preserve significands in float-string conversion
2014-02-22 18:06:27 +09:00
h2so5 b0e3b873f5 preserve significands in float-string conversion 2014-02-22 16:50:52 +09:00
Yukihiro "Matz" Matsumoto ac936fc211 powered num may be infinite in float-string conversion 2014-02-22 11:06:38 +09:00
Yukihiro "Matz" Matsumoto 6b6c590fe3 Merge pull request #1722 from take-cheeze/hash_ext_arena_fix
Fix possible arena overflow in mruby-hast-ext.
2014-02-22 10:55:04 +09:00
Yukihiro "Matz" Matsumoto 96e806ff05 Merge pull request #1723 from akuroda/string_test_cap_down
add tests for String#capitalize!, String#downcase!, and String#upcase!
2014-02-22 10:51:13 +09:00
Akira Kuroda 61523d0e4f fix the position of capitalize! and downcast!, and add test for upcase! 2014-02-22 00:43:12 +09:00
take_cheeze 658b4f4ea7 add test(requires MRB_GC_FIXED_ARENA enabled) 2014-02-22 00:28:38 +09:00
Akira Kuroda f6516526b5 add tests for String#capitalize! and String#downcase! 2014-02-22 00:19:29 +09:00
take_cheeze a9af8c9c07 fix possible arena overflow 2014-02-22 00:05:05 +09:00
take_cheeze f863025bd6 use 'd' format spec to get Random object 2014-02-21 17:36:58 +09:00
take_cheeze 8060478b3c add 'd' format specifier to get data pointer directly from mrb_get_args 2014-02-21 17:29:49 +09:00
take_cheeze d345134fb8 use mrb_intern_lit in mruby-random 2014-02-21 17:07:48 +09:00
Yukihiro "Matz" Matsumoto 36e234aa37 Merge pull request #1720 from take-cheeze/move_error_h
move src/error.h to include/mruby/error.h
2014-02-21 11:02:36 +09:00
take_cheeze 08ea324593 move src/error.h to include/mruby/error.h 2014-02-20 22:41:29 +09:00