Commit Graph

216 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto cd05c669ca make_metaclass should skip MRB_TT_ICLASS; close #1369 2013-07-13 10:41:09 +09:00
Jun Hiroe e4e51a8aaa Replace mrb_intern() with mrb_intern_cstr(). 2013-07-11 21:43:58 +09:00
Yukihiro "Matz" Matsumoto b68ef2e634 add dummy visibility methods (public/protected/private) that do nothing; ref #1357 2013-07-11 14:49:17 +09:00
Yukihiro "Matz" Matsumoto 1ffd25d572 mrb_bob_missing to use mrb_get_args("n") 2013-07-10 09:37:24 +09:00
Yukihiro "Matz" Matsumoto e8e0b611c6 mrb_mod_alias to use mrb_get_args("nn") 2013-07-10 02:45:29 +09:00
hoge 71fd1375d2 call Class#inherited when Class.new(klass) 2013-07-07 23:05:37 +09:00
Jun Hiroe db678329c0 Add comments in mrb_get_args() func. 2013-07-03 21:28:24 +09:00
Jun Hiroe 799dd0b777 Refactor mrb_define_class() method in class.c.c 2013-07-03 00:13:57 +09:00
h2so5 3f823a0cee Add mrb_class_get_under() 2013-07-01 11:50:13 +09:00
mimaki 42991fe092 fix unnecessary exception in mrb_get_args with "z" format. 2013-06-27 20:18:48 +09:00
Daniel Bovensiepen c9caea64c8 Singleton raises TypeError on #new 2013-06-09 11:21:51 +08:00
Carson McDonald cf0fbcd0ee Remove incorrect removal of iv 2013-06-09 07:50:07 -04:00
Carson McDonald c75bfc93a3 Raise a NameError when symbol isn't found. 2013-06-08 10:43:34 -04:00
Carson McDonald ab4ecac07b bob doesn't have new so don't undef 2013-06-08 10:42:18 -04:00
Yukihiro "Matz" Matsumoto 5c0b9b703c primary mruby fiber implementation 2013-05-20 17:54:07 +09:00
Carson McDonald 163022f276 Change fortmat to format. 2013-05-19 08:40:04 -04:00
Julien Ammous 8057eb935c removed unused variables / assigns never used 2013-05-18 14:13:04 +02:00
Yukihiro "Matz" Matsumoto fad8b1cefa change mrb_warn to get mrb_state and %S formatter 2013-05-10 22:09:02 +09:00
Yukihiro "Matz" Matsumoto a092e41020 the receiver should be included in ancestors even when it's a singleton class 2013-04-30 00:51:31 +09:00
Masaki Muranaka f139320635 Revert file access mode to 0644. 2013-04-29 09:25:54 +09:00
arton 513bce35f6 add extern funcs declaration and casts for cimpiling C++ compiler 2013-04-28 15:31:50 +09:00
skandhas 96e247a4ad detect cyclic-include in Module#include 2013-04-27 16:39:58 +08:00
Yukihiro "Matz" Matsumoto bcf1204940 small cosmetic refactoring 2013-04-26 10:59:37 +09:00
Yukihiro "Matz" Matsumoto e63b086f1e rename mrb_interned API functions 2013-04-26 10:57:08 +09:00
Yukihiro "Matz" Matsumoto c99b72b20d Merge branch 'suppress_intern' of https://github.com/crimsonwoods/mruby into crimsonwoods-suppress_intern 2013-04-26 09:18:39 +09:00
Yukihiro "Matz" Matsumoto f0bea86437 Merge pull request #1211 from skandhas/pr-fix-Module-ancestors
fix the behavior of Module#ancestors
2013-04-24 21:56:03 -07:00
skandhas 8d778d9860 fix Module#ancestors and update test 2013-04-25 11:17:34 +08:00
crimsonwoods a517a7f314 modify functions to suppress symbol registration into intern pool. 2013-04-25 10:36:32 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
h2so5 9b798114bb Use mrb_bool for the 'b' format specifier of mrb_get_args 2013-04-22 10:41:53 +09:00
Yukihiro "Matz" Matsumoto c79172dfd5 put spaces after if/while 2013-04-20 23:11:43 +09:00
h2so5 359b5ee7af Refactor kernel.c and class.c 2013-04-20 01:25:15 +09:00
Yukihiro "Matz" Matsumoto 001ce2612b method function should return mrb_value 2013-04-05 04:40:36 +09:00
Yukihiro "Matz" Matsumoto ff710487b7 raise NotImplementedError from Module.constants (15.2.2.3.1); close #1125 2013-04-05 04:25:00 +09:00
Masaki Muranaka 1efb1bbaff Use mrb_name_error() as possible. 2013-04-04 16:24:43 +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
Masaki Muranaka c0b5220418 Modify mrb_name_error() to use mrb_format(). 2013-03-28 17:35:04 +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
kurodash e426243ea0 fixed build error on VS2012 toolchains. 2013-03-26 15:36:44 +09:00
MATSUMOTO Ryosuke 7328b68b9f Adjusted indent, space and tab 2013-03-24 11:35:42 +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
Yukihiro "Matz" Matsumoto af2f3dd16f Merge pull request #1050 from monaka/pr-cleanup-string.c-20130323
Clean up string.c
2013-03-23 03:46:52 -07:00
Masaki Muranaka 8101bf2430 Set MRB_TT_MODULE to Module. 2013-03-23 18:28:48 +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 d0d920e909 rename mrb_true_or_false_value() to mrb_bool_value() 2013-03-19 12:03:54 +09:00
Masaki Muranaka b3373d7e91 Use mrb_true_or_false_value() / in mrb_mod_eqq(). 2013-03-19 11:04:20 +09:00