868 Commits

Author SHA1 Message Date
mimaki e5bacc03f2 Add mruby debugger (mrdb) 2014-11-18 23:33:32 +09:00
M.Naruoka 14bc76d578 Under cygwin host, ncurses.a is only available instead of termcap.a. 2014-10-31 16:48:50 +09:00
Yukihiro "Matz" Matsumoto cbbf840440 use mrb_get_args to parse Integer() option; ref #2625 2014-10-29 13:22:04 +09:00
Jun Hiroe 28c804621a Add Kernel.Integer 2014-10-29 01:30:30 +09:00
Jun Hiroe 140e9bbf4b Add Kernel.Float 2014-10-24 01:55:55 +09:00
Jun Hiroe 9e05366451 Add Kernel.Hash 2014-10-21 23:48:44 +09:00
Jun Hiroe de04d3f080 Add Kernel.String 2014-10-20 22:35:58 +09:00
Jun Hiroe 9b1d9a7901 Refactor mrb_f_array func 2014-10-19 20:06:27 +09:00
Yukihiro "Matz" Matsumoto 4fd28deff9 refactoring C part of #2611 2014-10-19 19:39:02 +09:00
Jun Hiroe b6edf24a01 Add Kernel.Array 2014-10-19 19:25:31 +09:00
Yukihiro "Matz" Matsumoto 3f06307317 need addtional type check to avoid SEGV; ref #2609 2014-10-18 11:26:30 +09:00
Yukihiro "Matz" Matsumoto 3ff5081650 context proc may be cfunc; fix #2609 2014-10-17 15:48:58 +09:00
Yukihiro "Matz" Matsumoto b4cc962c3a add similar range check for tm->usec as well 2014-10-03 14:58:59 +09:00
Yukihiro "Matz" Matsumoto 95b3a70291 always check range before casting time_t to mrb_int 2014-10-03 14:57:22 +09:00
Yukihiro "Matz" Matsumoto 88d14e03d0 time_t may overflow mrb_int when word boxing is used 2014-10-03 11:10:09 +09:00
Yukihiro "Matz" Matsumoto c08321ef23 remove accidental check-in of mruby-thread gem 2014-10-02 20:43:04 +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 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
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 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 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 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
INOUE Yasuyuki 5603b8d79f implement Hash.[] 2014-09-06 22:50:06 +09:00
Yukihiro "Matz" Matsumoto 33e44a612c refactor MACRO to avoid local variable name conflict; ref #2585 2014-09-04 23:59:27 +09: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 471c43ff96 move mrb_proc_new_cfunc_with_env() to the core 2014-09-02 13:03:32 +09:00
Yukihiro "Matz" Matsumoto 9e4b012478 Merge pull request #2570 from cubicdaiya/issues/unify_duplicated_functions
Unify and rename duplicated functions (noregexp() and regexp_check()).
2014-08-29 01:09:33 +09:00
Tatsuhiko Kubo 5fa30aeaea Fix mismatches for MRB_API declarations. 2014-08-29 01:06:22 +09:00
Tatsuhiko Kubo db29a25ada Rename functions for avoinding symbol confiliction.
Add prefix(mrb) to noregexp() and regexp_check().
2014-08-28 19:18:52 +09:00
Tatsuhiko Kubo d958aa2cb1 Unify duplicated functions (noregexp() and regexp_check()). 2014-08-28 19:13:57 +09:00
Tatsuhiko Kubo 6961317fb3 Remove spaces in end-of-line. 2014-08-25 16:49:15 +09:00
Tatsuhiko Kubo 6c7ba826dd Use sizeof() instead of strlen(). 2014-08-22 20:37:34 +09:00
bggd dc1dcba935 Update math.c 2014-08-22 16:51:04 +09:00
Yukihiro "Matz" Matsumoto 5aa6f8ba96 Merge pull request #2551 from cubicdaiya/issues/use_mrb_str_cat_lit
use mrb_str_cat_lit() instead of mrb_str_cat_cstr().
2014-08-22 00:31:00 +09:00
Tatsuhiko Kubo 45103ebc20 use mrb_str_cat_lit() instead of mrb_str_cat_cstr(). 2014-08-21 16:51:08 +09:00
kkkkkt d94469ac23 changed to call check_cv_name_str in check_cv_name_sym and adjust indent 2014-08-21 13:56:43 +09:00
Yukihiro "Matz" Matsumoto 4d72d65db1 Merge pull request #2548 from take-cheeze/mrb_data_init
Add API `mrb_data_init` to initialize `MRB_TT_DATA` tagged instance.
2014-08-20 23:42:05 +09:00
take_cheeze b3d0585fe5 Add API mrb_data_init to initialize MRB_TT_DATA tagged instance. 2014-08-20 22:42:35 +09:00
Tatsuhiko Kubo 2b283393c6 Remove empty lines. 2014-08-20 12:07:36 +09:00
Tatsuhiko Kubo e035508efd Fix error handling for mrb_generate_code().
The return value of mrb_generate_code()
must be null-checked before referencing.
2014-08-19 17:50:07 +09:00
Tatsuhiko Kubo 55ee7fe79c Fix error handlings in mirb.
mrb_parser_new() and mrb_generate_code() may return NULL.
2014-08-19 16:04:48 +09:00
chasonr e23deaafc2 Improve replacement math functions for Visual C++. 2014-08-15 23:15:45 -04:00
mattn 4ece1e3e29 "-a-a-".succ should be "-a-b-" 2014-08-11 15:00:44 +09:00
mattn 3103d063e2 Fix String#succ. "-a-".succ should be "-b-" 2014-08-11 14:28:05 +09:00