Commit Graph

121 Commits

Author SHA1 Message Date
cremno 649081661a reduce RSTRING_PTR usage 2014-04-14 00:58:34 +02:00
Yukihiro "Matz" Matsumoto 93491caec9 revert b45e99 since a bug in khash.h was fixed 2014-04-10 00:57:21 +09:00
mattn 948ddace20 Fix invalid hash type 2014-04-09 21:48:13 +09:00
Yukihiro "Matz" Matsumoto b45e99b0d5 call kh_get before kh_put to avoid potential key lost; reported by @mirichi 2014-04-09 21:38:29 +09:00
ksss 8d15ef2e89 Use bool macro KHASH_DEFINE and KHASH_DECLARE 2014-04-02 13:38:43 +00:00
Masaki Muranaka dcff9012e3 Remove redundant NULL checks.
mrb_malloc causes an exception when memory was empty.
2014-03-26 11:21:20 +09:00
Yukihiro "Matz" Matsumoto c476c1b528 symbol length type to be mrb_int 2014-03-15 15:43:40 +09:00
cremno bfc522bcd5 use mrb_str_cat_lit for literals 2014-03-08 18:38:31 +01:00
cubicdaiya bd0244d067 use mrb_str_cat_lit() intead of mrb_str_cat 2014-02-27 22:42:25 +09:00
cremno 69bc004e08 iv_size (non-seglist): return 0 if t is NULL 2014-02-17 12:39:56 +01:00
cremno 8bbc2c107b mrb_str_cat2: deprecated since 0cedf8f 2014-02-13 13:45:28 +01:00
Pavel 411168deab Fix Kernel#global_variables for $1-$9 2014-02-09 23:54:49 +07:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto 7d8a3b618a small refactoring (dedup mrb_vm_cv_set) 2014-01-06 22:31:25 +09:00
crimsonwoods 370ad6fade Remove 'mrb_state' field from 'kh_xxx_t' structure.
'kh_xxx_t' requires 'mrb_state' to allocate, free, and compute hash value.
But 'mrb_state' should not be held by 'kh_xxx_t' and 'mrb_state' should be
supplied from outside.
2013-12-23 00:33:07 -08:00
h2so5 c6ede8ed02 Avoid recursive instance variable inspections 2013-12-10 16:41:11 +09:00
bggd 072871dcc5 Fix mod.constants cannot return the single character constant 2013-12-08 21:28:24 +09:00
take_cheeze df780ae5e9 add mrb_intern_lit for creating symbol from string literal 2013-12-01 10:38:59 +09:00
Yukihiro "Matz" Matsumoto 9c6398a444 rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513 2013-11-29 08:47:28 +09:00
Yukihiro "Matz" Matsumoto 8ecbff3f7b define Module#const_missing 2013-10-15 11:12:22 +09:00
MATSUMOTO Ryosuke d41425edd4 remove unused value for mrb_gv_remove 2013-10-10 00:29:20 +09:00
Yukihiro "Matz" Matsumoto 400ccecf0a add mrb_gv_remove(); untested 2013-10-10 12:12:29 +09:00
Yukang 31d10393da remove unnecessary return 2013-08-18 20:21:48 +08:00
Jun Hiroe a202446c79 I fix typos in variable.c. 2013-07-24 22:22:54 +09:00
Jun Hiroe 6bab0c65f0 Add comments in variable.c 2013-07-14 04:10:45 +09:00
Jun Hiroe 883c45b931 Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func. 2013-07-12 01:00:50 +09:00
Yukihiro "Matz" Matsumoto 5c0b9b703c primary mruby fiber implementation 2013-05-20 17:54:07 +09:00
Julien Ammous 8057eb935c removed unused variables / assigns never used 2013-05-18 14:13:04 +02:00
Yukihiro "Matz" Matsumoto f545d88373 fix indentation 2013-05-09 23:40:22 +09:00
Carson McDonald 697b09924e Print mrb_value instead of RClass* 2013-05-09 08:44:16 -04:00
h2so5 1e5b00e772 Remove mrb_class_obj_get 2013-05-01 21:10:17 +09:00
Yukihiro "Matz" Matsumoto 2acf724554 wrong type cast 2013-04-20 23:11:01 +09:00
Yukihiro "Matz" Matsumoto 2529f1edba Module#class_variables should check superclasses 2013-04-20 22:58:52 +09:00
Masaki Muranaka 1efb1bbaff Use mrb_name_error() as possible. 2013-04-04 16:24:43 +09:00
Yukihiro "Matz" Matsumoto 6bd49a3d95 Module#constants should include constants defined in superclass; close #1126 2013-04-02 10:33:54 +09:00
Yukihiro "Matz" Matsumoto 013be527e6 add Module#constants (15.2.2.4.24) 2013-04-02 01:23:41 +09:00
Masaki Muranaka 2b5b161f8b Sort include files. Some redundant includes are removed. 2013-03-29 10:22:31 +09:00
Yukihiro Matz Matsumoto 18b2683b97 use new mrb_format API from mrb_raisef; its only format specifier is "%S" (stringify) and takes mrb_value; close #1062 2013-03-27 23:41:23 +09:00
Yukihiro Matz Matsumoto b1bd62e047 remove all MRB_TT_MAIN from source 2013-03-26 21:25:00 +09:00
Carson McDonald 930e4c71c0 Make mrb_top_self return a real instance. 2013-03-25 00:23:22 -04:00
MATSUMOTO Ryosuke 7328b68b9f Adjusted indent, space and tab 2013-03-24 11:35:42 +09:00
Yukihiro Matz Matsumoto f0ac204f21 Use size_t instead of int. This is for portability. 2013-03-24 00:20:35 +09:00
Yukihiro Matz Matsumoto 0425db66b6 Use mrb_bool instead of int. This is for portability; based on e767ebf but iv_foreach_func must return int 2013-03-24 00:07:13 +09:00
Yukihiro Matz Matsumoto 0940e4d462 rename mrb_ptr_as_string() to mrb_ptr_to_str() 2013-03-23 21:57:33 +09:00
Masaki Muranaka bdd8f7b4a7 Remove *printf() that have "%p" format as possible. Use tomrb_ptr_as_string() instead. 2013-03-23 20:11:33 +09:00
Masaki Muranaka 92821cf2ef Use mrb_str_cat() instead of mrb_str_cat2() as possible. 2013-03-23 15:55:55 +09:00
Masaki Muranaka f8fa56d8c3 Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen(). 2013-03-22 14:22:45 +09:00
Yukihiro Matz Matsumoto 93e9174c57 symbol length make size_t from mrb_int; cancel #993 monaka/pr-cleanup-symbol.c-20130312 2013-03-14 19:09:55 +09:00
Akito Mochizuki b11b3f6e86 fix inspect method 2013-03-12 12:34:50 +09:00
kano4 fbbe6309fc Replace tabs with spaces 2013-03-05 23:06:44 +09:00