summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2014-02-26resolve conflictYukihiro "Matz" Matsumoto
2014-02-25clarify fallthrough in the switch statementYukihiro "Matz" Matsumoto
2014-02-25initialize sname before interningYukihiro "Matz" Matsumoto
2014-02-25avoid accessing uninitialized string; ref ac936fcYukihiro "Matz" Matsumoto
2014-02-25Merge pull request #1721 from take-cheeze/d_format_specYukihiro "Matz" Matsumoto
add 'd' format specifier in mrb_get_args and mruby-random gem improvement
2014-02-23move declaration to the top of the block; ref #1727Yukihiro "Matz" Matsumoto
2014-02-22add src/error.h for compatibility reasonYukihiro "Matz" Matsumoto
2014-02-22preserve significands in float-string conversionh2so5
2014-02-22powered num may be infinite in float-string conversionYukihiro "Matz" Matsumoto
2014-02-21add 'd' format specifier to get data pointer directly from mrb_get_argstake_cheeze
2014-02-20move src/error.h to include/mruby/error.htake_cheeze
2014-02-18mrb_flo_to_str: internal linkagecremno
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-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-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-14Merge pull request #1702 from cremno/hash-hash-ext-changesYukihiro "Matz" Matsumoto
hash / hash-ext: various small changes
2014-02-13mrb_str_cat2: deprecated since 0cedf8fcremno
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-12Merge pull request #1697 from cremno/array-changesYukihiro "Matz" Matsumoto
array implementation: several small changes
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-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-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-11add RUBY_ENGINE; ref #576Yukihiro "Matz" Matsumoto
2014-02-09Fix Kernel#global_variables for $1-$9Pavel
2014-02-09initialize ci->stackent at the top; #1691Yukihiro "Matz" Matsumoto
2014-02-09Merge branch 'original2' of https://github.com/miura1729/mruby into ↵Yukihiro "Matz" Matsumoto
miura1729-original2
2014-02-09Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUEYukihiro "Matz" Matsumoto
use mrb_bool, FALSE and TRUE more
2014-02-09Store raw stack address in callinfo instead of offset from stbasMiura Hideki
2014-02-08made mrb_define_class to return existing class, with heavy refactoringYukihiro "Matz" Matsumoto
2014-02-08rename mrb_name_class and make it staticYukihiro "Matz" Matsumoto
2014-02-07forgot to add new filesYukihiro "Matz" Matsumoto
2014-02-07move version info from gems to core; ref #576 #1684Yukihiro "Matz" Matsumoto
2014-02-06Merge pull request #1688 from cubicdaiya/issues/unnecessary_semicolonYukihiro "Matz" Matsumoto
Remove unnecessary semicolon
2014-02-06remove unnecessary semicoloncubicdaiya
2014-02-06use mrb_str_new_lit() more widelyYukihiro "Matz" Matsumoto
2014-02-06introduce mrb_str_new_lit() to create strings from C string litralsYukihiro "Matz" Matsumoto
2014-02-05Add global constant MRUBY_COPYRIGHTMATSUMOTO Ryosuke
2014-02-05replace Kernel.show_version with MRUBY_DESCRIPTIONMATSUMOTO Ryosuke