Commit Graph

6147 Commits

Author SHA1 Message Date
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
Yukihiro "Matz" Matsumoto 81c894a1c6 add some MRB_API to function prototypes 2014-09-05 00:54:51 +09:00
Yukihiro "Matz" Matsumoto 8696986994 Merge branch 'cremno-add-symbol-table-overflow-check' 2014-09-05 00:47:36 +09:00
Yukihiro "Matz" Matsumoto 9b4ec380d2 use uint16_t instead of short; ref #2568 2014-09-05 00:47:22 +09:00
Yukihiro "Matz" Matsumoto 33e44a612c refactor MACRO to avoid local variable name conflict; ref #2585 2014-09-04 23:59:27 +09:00
Yukihiro "Matz" Matsumoto 606307d371 Merge pull request #2585 from cremno/get-rid-of-shadowing-variables-mrbgems
get rid of shadowing variables (mrbgems)
2014-09-04 23:52:57 +09:00
Yukihiro "Matz" Matsumoto f25d95a23f Merge pull request #2586 from cremno/fix-strict-aliasing-rule-violation
fix strict aliasing rule violation
2014-09-04 23:51:59 +09:00
cremno 610d1d4afa fix strict aliasing rule violation 2014-09-04 12:34:37 +02:00
cremno fec2c66ea8 get rid of shadowing variables (mrbgems)
Mostly renaming, except that the definition of struct accessor methods
is now done in a new function.
2014-09-04 12:31:52 +02:00
Yukihiro "Matz" Matsumoto 6b302d80a3 instance variable name validation based on <ctype.h>; fix #2584 2014-09-04 18:36:28 +09:00
Yukihiro "Matz" Matsumoto 32aee72d29 wrong iseq conversion flag 2014-09-04 18:28:56 +09:00
Yukihiro "Matz" Matsumoto 3492be401a avoid iseq allocation from static irep binary. it reduces 424KB allocation for mrbtest 2014-09-04 17:16:34 +09:00
Yukihiro "Matz" Matsumoto dc3c91dfdc rename a local variable current_node -> nodetype; ref #2583 2014-09-04 08:33:18 +09:00
Yukihiro "Matz" Matsumoto 27ac09be9d Merge pull request #2583 from cremno/get-rid-of-shadowing-variables
get rid of shadowing variables
2014-09-04 08:31:33 +09:00
cremno 26bbc81e12 get rid of shadowing variables
Mostly by renaming the shadowing variable.
If a shadowing variable was deleted,
the shadowed one can be used instead.
2014-09-03 10:00:37 +02:00
Yukihiro "Matz" Matsumoto 1fdf47d71a Merge pull request #2582 from iij/pr-attr-accessor-save-arena
save and restore arena index to prevent arena overflow.
2014-09-03 11:02:52 +09:00
Tomoyuki Sahara 2fd49b2b9f save and restore arena index to prevent arena overflow. 2014-09-03 10:44:38 +09:00
Yukihiro "Matz" Matsumoto f6e7de5fa8 Merge pull request #2581 from cubicdaiya/issues/use_lit
Use mrb_str_cat_lit() instead of mrb_str_cat_cstr() for string-literals.
2014-09-03 09:01:12 +09:00
Tatsuhiko Kubo b9acd20aef Use mrb_str_cat_lit() instead of mrb_str_cat_cstr() for string-literals. 2014-09-03 01:43:46 +09:00
Yukihiro "Matz" Matsumoto 80c37a4138 Merge pull request #2580 from suzukaze/refactor-kernel.c
Refactor kernel.c
2014-09-02 22:51:02 +09:00
Jun Hiroe f7a7426d7e Refactor mrb_obj_is_kind_of_m() in kernel.c 2014-09-02 19:40:29 +09:00
Jun Hiroe 3e40cc6974 Refactor obj_is_instance_of() in kernel.c 2014-09-02 19:40:23 +09:00