Commit Graph

4268 Commits

Author SHA1 Message Date
kyab 70935f9979 Add target example for Intel Galileo board 2014-02-24 23:16:02 +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
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
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
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
Yukihiro "Matz" Matsumoto 66ecd159d3 Merge pull request #1719 from pbosetti/master
Added spaces in version.h macros for complying with C++11
2014-02-18 21:35:56 +09:00
Paolo Bosetti 0b603baa53 Added spaces in version.h macros for complying with C++11 2014-02-17 17:54:49 +01:00
Yukihiro "Matz" Matsumoto 800d992987 Merge pull request #1717 from cremno/iv_size-t-null
iv_size (non-seglist): return 0 if t is NULL
2014-02-18 00:30:07 +09:00
cremno 69bc004e08 iv_size (non-seglist): return 0 if t is NULL 2014-02-17 12:39:56 +01:00
Yukihiro "Matz" Matsumoto 57b7f6b619 use double instead of mrb_float (that may be single precision float) to reduce errors 2014-02-17 10:20:58 +09:00
Yukihiro "Matz" Matsumoto eacdcc13d8 remove trailing zeros from float string representation 2014-02-17 10:11:51 +09:00
Yukihiro "Matz" Matsumoto a740b28b52 define FLO_EPSILON depends on float/double 2014-02-17 09:47:39 +09:00
Yukihiro "Matz" Matsumoto 4b981adc58 remove max_digit from mrb_flo_to_str() 2014-02-17 09:40:30 +09:00
Yukihiro "Matz" Matsumoto ffe541b503 small refactoring; direct return 2014-02-17 09:35:20 +09:00
Yukihiro "Matz" Matsumoto 25ea4d751b use powf() instead of pow() on MRB_USE_FLOAT 2014-02-17 09:34:56 +09:00
Yukihiro "Matz" Matsumoto b4bc395680 fdigit may be negative due to error if mrb_float is 32bit (e.g. 10**36 on 32bit arch); ref #1713 #1714 2014-02-17 09:27:53 +09:00
Yukihiro "Matz" Matsumoto 09080fd2ee Merge pull request #1714 from h2so5/f2s
fix mrb_flo_to_str() exponent problem
2014-02-17 07:57:12 +09:00
h2so5 db80a9a2ce fix mrb_flo_to_str() exponent problem 2014-02-17 07:53:02 +09:00
Yukihiro "Matz" Matsumoto 41a77111ea Merge pull request #1710 from takkaw/flo_to_str
modify mrb_to_str() in order to display big float number
2014-02-16 01:33:43 +09:00
Yukihiro "Matz" Matsumoto e29efb02bd normalize NaN after division that may generate NaN; fix #1712 2014-02-15 19:59:26 +09:00
takkaw 0a48fb0407 modify mrb_to_str() in order to display big float number 2014-02-15 15:40:51 +09:00
Yukihiro "Matz" Matsumoto 8b93f8591d Merge pull request #1709 from cubicdaiya/issues/nonvoid
Give the type 'void' to functions have no argument.
2014-02-15 13:25:41 +09:00
cubicdaiya 3d716f2376 Give the type 'void' to functions have no argument.
According to the C standard,
it is desirable to give the type 'void'
to functions have no argument.
2014-02-14 19:47:15 +09:00
Yukihiro "Matz" Matsumoto 7586d474b5 Merge pull request #1707 from Fleurer/issue1706
keep stack with nlocals instead of nregs; fix #1706
2014-02-14 17:06:43 +09:00
Yukihiro "Matz" Matsumoto 007ed07e77 Merge pull request #1708 from Fleurer/cleanup-warning-hash-dup
cleanup warnings in hash.c
2014-02-14 17:04:21 +09:00
Li Yazhou 7ab0506795 add test for Hash#dup 2014-02-14 13:26:19 +08:00
Li Yazhou adbf1eba99 clearn up warning in hash.c
/home/fleuria/code/mruby/src/hash.c:159:1: warning: ‘mrb_hash_dp`defined but not used [-Wunused-function]
 mrb_hash_dup(mrb_state *mrb, mrb_value hash)
     ^

this commit defines Hash#dup to take advantage of mrb_hash_dup, however
it seems that Hash#dup is not in ISO standard.
2014-02-14 13:22:30 +08:00
Li Yazhou 876e7de7ec add a regression test for #1706 2014-02-14 11:32:59 +08:00
Li Yazhou 9ebfeac111 keep stack with nlocals instead of nregs; fix #1706 2014-02-14 11:16:56 +08:00