summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2014-02-27should not continue loop when ci = NULLYukihiro "Matz" Matsumoto
2014-02-27boot_defclass: super may be NULLYukihiro "Matz" Matsumoto
2014-02-27revert 38e9ce21 and API changed; mrb_get_backtrace() -> renamed to ↵Yukihiro "Matz" Matsumoto
mrb_exc_backtrace since this is a backtrace method implementation of Exception; mrb_get_backtrace_at() -> removed; mrb_get_backtrace() -> added to get backtrace in array (like caller)
2014-02-27avoid recursion when method_missing happened in inspect; fix #1746Yukihiro "Matz" Matsumoto
2014-02-27fix indentYukihiro "Matz" Matsumoto
2014-02-27add new function mrb_get_backtrace_at() to get backtrace at ci and pcYukihiro "Matz" Matsumoto
2014-02-26use mrb_str_new_lit instead of mrb_str_new for C string literalcubicdaiya
2014-02-26Merge pull request #1748 from cubicdaiya/issues/optim_get_valid_iv_symYukihiro "Matz" Matsumoto
fix bug for get_valid_iv_sym
2014-02-26Merge pull request #1747 from cubicdaiya/issues/use_mrb_intern_litYukihiro "Matz" Matsumoto
use mrb_intern_lit instead of mrb_intern_cstr for C string literals
2014-02-26fix bug for get_valid_iv_symcubicdaiya
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-26use mrb_intern_lit instead of mrb_intern_cstr for C string literalscubicdaiya
2014-02-26use mrb_str_new_lit instead of mrb_str_new for C string literalscubicdaiya
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