summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2014-02-18Merge pull request #1719 from pbosetti/masterYukihiro "Matz" Matsumoto
Added spaces in version.h macros for complying with C++11
2014-02-18mrb_flo_to_str: internal linkagecremno
2014-02-17Added spaces in version.h macros for complying with C++11Paolo Bosetti
2014-02-18Merge pull request #1717 from cremno/iv_size-t-nullYukihiro "Matz" Matsumoto
iv_size (non-seglist): return 0 if t is NULL
2014-02-17iv_size (non-seglist): return 0 if t is NULLcremno
2014-02-17more mrb_flo_to_str fixescremno
- remove float check (take mrb_float instead of mrb_value) - support -0.0 - fix range error if log10 is called when n == 0.0 - MSVC older than 2013: add signbit macro (for double)
2014-02-17use double instead of mrb_float (that may be single precision float) to ↵Yukihiro "Matz" Matsumoto
reduce errors
2014-02-17remove trailing zeros from float string representationYukihiro "Matz" Matsumoto
2014-02-17define FLO_EPSILON depends on float/doubleYukihiro "Matz" Matsumoto
2014-02-17remove max_digit from mrb_flo_to_str()Yukihiro "Matz" Matsumoto
2014-02-17small refactoring; direct returnYukihiro "Matz" Matsumoto
2014-02-17use powf() instead of pow() on MRB_USE_FLOATYukihiro "Matz" Matsumoto
2014-02-17fdigit may be negative due to error if mrb_float is 32bit (e.g. 10**36 on ↵Yukihiro "Matz" Matsumoto
32bit arch); ref #1713 #1714
2014-02-17Merge pull request #1714 from h2so5/f2sYukihiro "Matz" Matsumoto
fix mrb_flo_to_str() exponent problem
2014-02-17fix mrb_flo_to_str() exponent problemh2so5
2014-02-16Merge pull request #1710 from takkaw/flo_to_strYukihiro "Matz" Matsumoto
modify mrb_to_str() in order to display big float number
2014-02-15normalize NaN after division that may generate NaN; fix #1712Yukihiro "Matz" Matsumoto
2014-02-15modify mrb_to_str() in order to display big float numbertakkaw
2014-02-15Merge pull request #1709 from cubicdaiya/issues/nonvoidYukihiro "Matz" Matsumoto
Give the type 'void' to functions have no argument.
2014-02-14Give the type 'void' to functions have no argument.cubicdaiya
According to the C standard, it is desirable to give the type 'void' to functions have no argument.
2014-02-14Merge pull request #1707 from Fleurer/issue1706Yukihiro "Matz" Matsumoto
keep stack with nlocals instead of nregs; fix #1706
2014-02-14Merge pull request #1708 from Fleurer/cleanup-warning-hash-dupYukihiro "Matz" Matsumoto
cleanup warnings in hash.c
2014-02-14add test for Hash#dupLi Yazhou
2014-02-14clearn up warning in hash.cLi Yazhou
/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-14add a regression test for #1706Li Yazhou
2014-02-14keep stack with nlocals instead of nregs; fix #1706Li Yazhou
2014-02-14support older version.Tomoyuki Sahara
2014-02-14Merge pull request #1702 from cremno/hash-hash-ext-changesYukihiro "Matz" Matsumoto
hash / hash-ext: various small changes
2014-02-14Merge pull request #1705 from takahashim/version-numberYukihiro "Matz" Matsumoto
MRUBY_VERSION should be only numbers separated by dot, like JRUBY_VERSION or Rubinius::VERSION
2014-02-14Merge pull request #1703 from cremno/parenthesize-mrbdump-errnosYukihiro "Matz" Matsumoto
dump.h: parenthesize negative errnos
2014-02-14Merge pull request #1704 from cremno/rm-mrb_str_literal-declYukihiro "Matz" Matsumoto
remove mrb_str_literal declaration
2014-02-14Merge pull request #1701 from cremno/do-not-use-mrb_str_cat2Yukihiro "Matz" Matsumoto
mrb_str_cat2: deprecated since 0cedf8f
2014-02-13MRUBY_VERSION should be only numbers separated by dot, like JRUBY_VERSION or ↵takahashim
Rubinius::VERSION
2014-02-13mrb_str_cat2: deprecated since 0cedf8fcremno
2014-02-13remove mrb_str_literal declarationcremno
definition was removed in 677a2ac
2014-02-13dump.h: parenthesize negative errnoscremno
2014-02-13hash / hash-ext: various small changescremno
src/hash.c: - mrb_hash_(aget|aset|dup|delete): internal linkage - remove documentation of methods which are not implemented (in here) - remove #assoc; unused, not in ISO spec - remove #rassoc: same, implementation is also wrong hash-ext mrbgem: - remove header "mruby/khash.h" - remove mrb_hash_values_at (move code into hash_values_at, i: long -> int) - less whitespace in gem_init function
2014-02-13remove direct inclusion of mruby/version.h from version.c; #1698Yukihiro "Matz" Matsumoto
2014-02-12add dummy IO#flush for better compatibility with CRuby.Tomoyuki Sahara
2014-02-12Merge pull request #9 from matsumoto-r/support_mrb_get_moduleTomoyuki Sahara
Support mrb_module_get
2014-02-12include mruby/version.h in mruby.hTomoyuki Sahara
2014-02-12Merge pull request #1697 from cremno/array-changesYukihiro "Matz" Matsumoto
array implementation: several small changes
2014-02-12Merge pull request #1694 from cremno/rakefile-mkdir-bin-pathYukihiro "Matz" Matsumoto
Rakefile: make bin directory
2014-02-12Merge pull request #1695 from cremno/clang-and-icl-define-direct-threadedYukihiro "Matz" Matsumoto
Clang and ICC/ICL: define DIRECT_THREADED
2014-02-12Merge pull request #1693 from cremno/mruby-math-rm-cygwin-compatYukihiro "Matz" Matsumoto
mruby-math: remove Cygwin compatibility macros
2014-02-12array implementation: several small changescremno
src/array.c: - make various functions without declaration in the mruby headers static - removed all uncessary int casts and two useless comments mrb_ary_new_from_values: move to similar functions mrb_check_array_type: fix indentation include/mruby/array.h: mrb_shared_array: padding (default "mrbconf.h" on an usual 64-bit system) sizeof(mrb_int)==sizeof(int)==4 && sizeof(mrb_value*)==8 both: mrb_ary_aget: remove declaration in header and make static nobody uses it which is not surprising since it has 1 req arg! mrb_assoc_new: small optimization and move to similar functions mrb_ary_len: re-implement as static inline function (it is used by mrbgems) programmers should directly use RARRAY_LEN instead
2014-02-12Rakefile: make bin directorycremno
2014-02-12 mruby-math: remove Cygwin compatibility macroscremno
nan: The first non-test release of Cygwin 1.5.x was over a decade ago: <http://cygwin.com/ml/cygwin-announce/2003-09/msg00001.html> log/log10: This workaround is not needed anymore (1.2.6.1, 1.3 - both over 6 years ago): <https://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libm/math/w_log.c?cvsroot=src>
2014-02-11Clang and ICC/ICL: define DIRECT_THREADEDcremno
This is most likely only needed on Windows be- cause __GNUC__ is not defined by both compilers. It might fail with some unusual configurations. If that is the case, feel free to open an issue.
2014-02-11Updated mrb_include_module call after mruby 1.0.0Paolo Bosetti