Commit Graph

88 Commits

Author SHA1 Message Date
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
Masaki Muranaka 6cd7017ec1 Remove trailing whitespaces. This is just a cosmetic change. 2013-03-03 10:54:00 +09:00
Masaki Muranaka 0b7b3f9d7f Move the place of a curly bracket. This is just a cosmetic change. 2013-03-01 13:20:21 +09:00
Yukihiro "Matz" Matsumoto 9b06a4506e Merge pull request #850 from mattn/pluggable_regexp
Pluggable regexp
2013-02-17 23:08:58 -08:00
Yukihiro Matz Matsumoto 37fe3d666f add Module#remove_const 2013-02-15 10:20:55 +09:00
mattn b1a5146ea8 Pluggable Regexp 2013-02-15 04:38:27 +09:00
Narihiro Nakamura 7872d2974d These places need the write barrier 2013-01-07 01:33:35 +09:00
skandhas 9599381ae3 add mrb_mod_cv_defined and mrb_cv_defined 2012-12-23 15:25:24 +08:00
skandhas eeb7779603 mruby should be throw a NameError, if class variable is not exist. 2012-12-22 20:37:19 +08:00
skandhas f612f32aef fix mrb_mod_cv_set and add test for Module#class_variable_set 2012-12-21 16:17:13 +08:00
skandhas 824bacbee4 add mrb_mod_cv_set, mrb_cv_set 2012-12-21 14:22:35 +08:00
skandhas e6a47323b8 refactor mrb_vm_cv_get 2012-12-20 22:29:26 +08:00
skandhas a9f1c4593c add mrb_cv_get 2012-12-20 21:33:30 +08:00
skandhas 5a65a7258f add mrb_mod_cv_get 2012-12-20 21:29:35 +08:00
Yukihiro Matz Matsumoto f63d5c2905 new function mrb_obj_iv_ifnone() 2012-12-12 18:22:23 +09:00
Ryunosuke SATO ee0563823d Stop warning: extra ';' outside of a function 2012-11-30 22:43:53 +09:00
Yukihiro Matz Matsumoto 1993f934f2 out of bound access in iv seglist 2012-11-14 17:17:37 +09:00
skandhas 1cc44cfd78 add Module#class_variables 2012-11-09 23:00:24 +08:00
skandhas 3266b6160e The output of Object#instance_variables contains instance variables and class variables. 2012-11-06 10:45:22 +08:00
Yukihiro Matz Matsumoto e429905597 replace SYM2ID() by mrb_symbol() 2012-11-04 05:11:39 +09:00
Yukihiro Matsumoto 8cf42709d1 constant access should refer outer class/module; close #514 2012-11-01 04:21:39 +09:00
skandhas ec343a6421 fix cannot get/set const variable form singleton class 2012-10-30 14:00:58 +08:00
Yukihiro Matsumoto 559933f577 singleton classes should be able to have instance variables; close #509 2012-10-26 20:46:02 +09:00
Masaki Muranaka 6069a33089 mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
2012-10-23 09:42:22 +09:00
Masamitsu MURASE e79c38b6c6 Check iv.
iv_del should be called in mrb_iv_remove only when t is not NULL.
2012-09-05 02:21:21 +09:00
Yukihiro Matsumoto bf7f9f83c7 rename config macro name IV_INITIAL_SIZE -> IVHASH_INIT_SIZE 2012-09-04 17:38:27 +09:00
Yukihiro Matsumoto e5dde46c7c reduce mrb_funcall invocations 2012-08-18 19:29:07 +09:00
Yukihiro Matsumoto fd086a7d08 replace mrb_iv_set by mrb_obj_iv_set 2012-08-18 19:21:27 +09:00
Selman ULUG 894137b920 MRB_IV_INITIAL_SIZE duplicate definition 2012-08-16 20:03:17 +03:00
Selman ULUG 0f74d72d7e khash.h including at line:255 2012-08-16 19:26:08 +03:00
Yukihiro Matsumoto 38c4a3170b outer might be NULL; close #428 2012-08-16 22:24:13 +09:00
Yukihiro Matsumoto 7d02df3016 NaN boxing 2012-08-14 13:16:34 +09:00
Yukihiro Matsumoto 59bf47e7f8 iv table may be empty 2012-08-13 04:51:48 +09:00
Yukihiro Matsumoto 1ed39d5c05 use TRUE/FALSE instead of 1/0 2012-08-13 04:19:24 +09:00