Commit Graph

6122 Commits

Author SHA1 Message Date
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
Yukihiro "Matz" Matsumoto 90ba47ccfe implement attr_reader and attr_writer in C; use cfunc closure to speed-up 2014-09-02 16:41:38 +09:00
Yukihiro "Matz" Matsumoto 6c7b0d88e8 refactor valid instance variable name check 2014-09-02 16:37:40 +09: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 7c49d56ce6 attr_reader and attr_writer should return nil 2014-09-01 16:58:04 +09:00
Yukihiro "Matz" Matsumoto 7ac68809d3 remove ci->nreg initialization from cipush() 2014-09-01 15:38:25 +09:00
Yukihiro "Matz" Matsumoto 296b0571be remove unnecessary MRB_API from mrb_num_div(); close #2578 2014-08-30 16:15:31 +09:00
Yukihiro "Matz" Matsumoto e91389f922 Merge pull request #2577 from cremno/remove-obsolete-macros
delete obsolete macros (mrb_basic + mrb_object)
2014-08-30 10:24:48 +09:00
Yukihiro "Matz" Matsumoto 5e9689c449 Merge pull request #2576 from cremno/correctly-validate-symbol-length
correctly validate symbol length
2014-08-30 10:24:14 +09:00
cremno 17b0d658fc delete obsolete macros (mrb_basic + mrb_object)
Over a year ago is not "soon" anymore. See:
88483fad00
243669308d
2014-08-29 16:47:28 +02:00
cremno c219c2a15e use RITE_LV_NULL_MARK for better readability
The comment didn't say why the length is reserved.
Using RITE_LV_NULL_MARK makes things a bit clearer.
2014-08-29 15:53:52 +02:00
cremno 0e28f4b973 add sym_validate_len() to validate symbol length
This also fixes an off-by-one in mrb_check_intern().
2014-08-29 15:53:51 +02:00
Yukihiro "Matz" Matsumoto 607795ffdd more OP_MOVE swap detection in peephole optimization 2014-08-29 16:24:12 +09:00
Yukihiro "Matz" Matsumoto 3c4cd5428a allow no_optimize esp. for debugger 2014-08-29 15:09:14 +09:00
Yukihiro "Matz" Matsumoto 56384139a8 Merge pull request #2573 from cubicdaiya/issues/remove_unused_macro
Remove unused macro.
2014-08-29 11:56:05 +09:00
Tatsuhiko Kubo 6b8e06a5b9 Remove unused macro.
OutOfRange() is no longer used.
2014-08-29 02:22:55 +09:00
Yukihiro "Matz" Matsumoto a3c34c165b Merge pull request #2572 from cubicdaiya/issues/fprintf_error_handlings
Fix error handlings for fprintf() and fputs() to file.
2014-08-29 01:10:44 +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
Yukihiro "Matz" Matsumoto 15b9771abc git push origin masterMerge branch 'cubicdaiya-issues/declare_mrb_api' 2014-08-29 01:07:12 +09:00
Tatsuhiko Kubo 5fa30aeaea Fix mismatches for MRB_API declarations. 2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto abd7cad4fd adjust node lineno of muiti line statements 2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto 4b546e2ca4 print lineno of dumping node 2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto 7477d0c18c revert 6c1dfc9; ref #2525 #2565 2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto 4077240b81 adjust node lineno of muiti line statements 2014-08-29 00:53:02 +09:00
Yukihiro "Matz" Matsumoto d4aee563f0 print lineno of dumping node 2014-08-29 00:53:02 +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