Commit Graph

6168 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto c08321ef23 remove accidental check-in of mruby-thread gem 2014-10-02 20:43:04 +09:00
Yukihiro "Matz" Matsumoto ff663075e4 Merge pull request #2601 from mimaki/mrblib_absolute_path
Change mrblib's source path to absolute path
2014-10-02 17:59:40 +09:00
Yukihiro "Matz" Matsumoto 83992ee163 cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600 2014-10-02 17:59:01 +09:00
Yukihiro "Matz" Matsumoto 906b62d50f Merge pull request #2600 from mimaki/fix_msvc_warnings
Pacify MSVC warnings for numeric.c, proc.c, and symbol.c
2014-10-02 17:50:27 +09:00
Hiroshi Mimaki 62c58d3dad Change mrblib's source path to absolute path 2014-10-02 15:23:10 +09:00
Hiroshi Mimaki ed15477c74 Pacify MSVC warnings for numeric.c, proc.c, and symbol.c 2014-10-02 13:37:49 +09:00
Yukihiro "Matz" Matsumoto 6b956f1c1b use __init_array_start to determine readonly data section;
b72e94f used _etext and _edata to distinguish C string literals from heap allocated strings,
but using _edata, global char arrays may be considered as string literals.  to avoid the issue,
we have to use __init_array_start, which might be less portable.  you can still use _edata, by
using MRB_NO_INIT_ARRAY_START.
2014-10-02 09:27:39 +09:00
Yukihiro "Matz" Matsumoto ae1403004b load.c to use mrb_ro_data_p() 2014-10-01 00:01:36 +09:00
Yukihiro "Matz" Matsumoto b72e94fa6b mrbconf.h option MRB_USE_ETEXT_EDATA to reduce memory.
on platforms with _etext and _edata, mruby can distinguish string literals so that it avoids memory allocation to copy them.
for example, on my Linux box (x86 32bit), memory consumed by mrbtest decreased from 8,168,203 to 8,078,848 (reduced 88KB).
2014-09-30 23:48:57 +09:00
Yukihiro "Matz" Matsumoto bbf24b8463 mrb_sym2name_len() should initialize lenp even when proper symbol does not exist 2014-09-30 22:46:19 +09:00
Yukihiro "Matz" Matsumoto 7a7dcd12e5 remove unnecessary trailing comma to remove pre C99 declaration error with -Wdeclaration-after-statement 2014-09-30 22:40:55 +09:00
Yukihiro "Matz" Matsumoto 4a55b42984 O(1) mrb_sym2name_len(); close #2591
instead of adding sym->name hash table, linear symbol table is added, and reduced name->sym hash table size.
2014-09-30 20:15:27 +09:00
Yukihiro "Matz" Matsumoto 3e3048ddd1 Merge pull request #2599 from SatoshiOdawara/fix_target_class_in_instance_eval
target_class should not be TT_ICLASS in instance_eval(string); ref #1152
2014-09-30 10:14:25 +09:00
Yukihiro "Matz" Matsumoto d85cce9539 Merge pull request #2598 from SatoshiOdawara/fix_lv_scope_eval
fixed. closures scope in eval(string)
2014-09-30 10:13:58 +09:00
Satoshi Odawara a10d36e0a2 target_class should not be TT_ICLASS in instance_eval(string); ref #1152 2014-09-29 17:53:08 +09:00
Satoshi Odawara 2551d14ff1 fixed. closures scope in eval(string) 2014-09-29 16:41:51 +09:00
Yukihiro "Matz" Matsumoto b090f43251 Merge pull request #2597 from kou/remove-duplicated-declaration
Remove duplicated mrb_print_backtrace() declaration
2014-09-28 20:36:20 +09:00
Kouhei Sutou 55dca8337e Remove duplicated mrb_print_backtrace() declaration
It is declared in mruby.h.
2014-09-27 23:53:25 +09:00
Yukihiro "Matz" Matsumoto 50e4df83cf Merge pull request #2596 from take-cheeze/fix_args
Fix `mrb_get_args` arguments type error found by mruby-clang-plugin.
2014-09-21 23:30:39 +09:00
take_cheeze 524c9152d3 Fix mrb_get_args arguments types found by mruby-clang-plugin. 2014-09-21 22:43:13 +09:00
Yukihiro "Matz" Matsumoto a12a9bfb8f Merge pull request #2595 from drbrain/80_column_README
Wrap README, etc. to 80 columns
2014-09-21 12:00:00 +09:00
Eric Hodel b7fc0f95e5 Wrap CONTRIBUTING.md to 80 columns 2014-09-21 11:07:36 +09:00
Eric Hodel 03a8d0c0ae Wrap INSTALL to 80 columns 2014-09-21 11:04:40 +09:00
Eric Hodel a12d8e32b1 Wrap README.md to 80 columns 2014-09-21 10:59:27 +09:00
Yukihiro "Matz" Matsumoto 5f7b0580b7 code reduce by using mrb_get_args("n") 2014-09-19 03:03:53 +09:00
Yukihiro "Matz" Matsumoto 147fbf1c12 Module#const_defined? to take second optional argument as CRuby; fix #2593 2014-09-19 03:02:07 +09:00
Yukihiro "Matz" Matsumoto 95c7f570e1 change class argument of mrb_const_defined_at from struct RClass* to mrb_value to make it consistent with mrb_const_defined; ref #2593 2014-09-19 02:51:52 +09:00
Yukihiro "Matz" Matsumoto 6b34166ba5 const_defined? to check superclasses; ref #2593 2014-09-19 02:41:20 +09:00
Yukihiro "Matz" Matsumoto 50f54529f2 to_hash/to_a check in Hash[] should only be done when only one argument is given; ref #2594 2014-09-19 01:14:50 +09:00
Yukihiro "Matz" Matsumoto 02b2ac8de2 Merge pull request #2594 from yasuyuki/hash
Implement Hash[]
2014-09-19 00:36:33 +09:00
INOUE Yasuyuki 5f16c41753 copy documentation comment from CRuby 2014-09-18 17:43:38 +09:00
INOUE Yasuyuki d30aadf306 remove line number from raise message 2014-09-18 17:37:48 +09:00
INOUE Yasuyuki e66d86a5fb refactor Hash generator loop 2014-09-18 16:07:27 +09:00
Yukihiro "Matz" Matsumoto e4bd48f3f7 Merge pull request #2592 from miura1729/original2
update outdated links to the original program.
2014-09-17 09:23:23 +09:00
Miura Hideki 8f883e5b20 update outdated links to the original program. 2014-09-16 20:08:47 +09:00
Yukihiro "Matz" Matsumoto 6057b2e378 change mrb_sym type from uint16_t to uint32_t 2014-09-15 01:48:08 +09:00
Yukihiro "Matz" Matsumoto 48c5321dca constify pointer from RARRAY_PTR to detect potential write barrier bugs.
if you see compiler errors due to this commit, you'd better to use array-modifying
functions, e.g. mrb_ary_set() or mrb_ary_push(), otherwise you might see nasty
GC bugs in the future.  if you are sure what you are doing, replace `RARRAY_PTR(ary)`
by `mrb_ary_ptr(ary)->ptr`. but be warned.
2014-09-12 12:42:39 +09:00
Yukihiro "Matz" Matsumoto 7ea8803e06 add benchmark/bm_app_lc_fizzbuzz.rb 2014-09-10 10:09:34 +09:00
Yukihiro "Matz" Matsumoto c01082e23c Merge pull request #2590 from cubicdaiya/issues/inline2
Add inline to str_with_class().
2014-09-09 09:57:30 +09:00
Tatsuhiko Kubo cfb321e877 Add inline to str_with_class(). 2014-09-09 00:44:49 +09:00
Yukihiro "Matz" Matsumoto d23bc85b54 Merge branch 'master' of github.com:mruby/mruby 2014-09-08 23:05:32 +09:00
Yukihiro "Matz" Matsumoto 63e34c30e0 Merge pull request #2589 from take-cheeze/fix_msvc_cxx
Fix MSVC C++ ABI build. Close #2588.
2014-09-08 23:05:08 +09:00
take_cheeze 380be0e829 Fix MSVC C++ ABI build. Close #2588. 2014-09-08 15:43:17 +09:00
Yukihiro "Matz" Matsumoto 902a4da271 remove execution bit from benchmark/fib39.rb 2014-09-08 14:24:53 +09:00
Yukihiro "Matz" Matsumoto 89e9df2681 fixed wandering filename problem 2014-09-08 01:20:43 +09:00
INOUE Yasuyuki 5603b8d79f implement Hash.[] 2014-09-06 22:50:06 +09:00
Yukihiro "Matz" Matsumoto cc98f191fa Merge pull request #2587 from take-cheeze/fix_def_gem_load
Fix default gem loading in `generate_gem_table`.
2014-09-05 16:43:37 +09:00
take_cheeze e6ae5c8672 Fix default gem loading in generate_gem_table. 2014-09-05 15:25:24 +09:00
Yukihiro "Matz" Matsumoto 3f70edbd16 support native byteorder in mrb files; ref 3492be 2014-09-05 11:09:44 +09:00
Yukihiro "Matz" Matsumoto 5b235a8bfa condition refactoring in load.c 2014-09-05 10:55:09 +09:00