Commit Graph

249 Commits

Author SHA1 Message Date
take_cheeze 08ea324593 move src/error.h to include/mruby/error.h 2014-02-20 22:41:29 +09:00
Yukihiro "Matz" Matsumoto 4a2c37df93 made mrb_define_class to return existing class, with heavy refactoring 2014-02-08 13:44:31 +09:00
Yukihiro "Matz" Matsumoto 5da7bd3a91 rename mrb_name_class and make it static 2014-02-08 10:20:23 +09:00
Yukihiro "Matz" Matsumoto 7ba4612956 use mrb_str_new_lit() more widely 2014-02-06 08:54:47 +09:00
cremno f2a62a74ed clean up external symbols
remove unused and unneeded:
- sysexit_status
- type (a global variable)

add mrb_ prefix to:
- codedump_all
- class_instance_method_list
- parser_dump

make various functions static, incl.:
- yyparse
- make_exception
2014-01-31 01:30:18 +01: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
cremno edf93c8bd6 use the same error msg as mrb_str_to_cstr/CRuby
It's better to have one message for the same error
than two different (although similar worded) ones.
2014-01-02 07:53:53 +01: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
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 abe6db9454 resolve conflict #1552 2013-10-30 17:28:32 +09:00
Yukihiro "Matz" Matsumoto 888ddf1c84 type check class/module in mrb_get_args(); close #1477 2013-10-30 13:24:55 +09:00
h2so5 12e00f9238 implement Class.new with block 2013-10-30 12:52:26 +09:00
Yukihiro "Matz" Matsumoto 3a668241be nil/false should not be implicitly converted to integers in mrb_get_args(); close #1529 2013-10-26 17:11:09 +09:00
Yukihiro "Matz" Matsumoto fcebd1243b Merge pull request #1530 from h2so5/args-explicit-conversion
Disable implicit integer conversion in mrb_get_args
2013-10-26 00:47:03 -07:00
Yukihiro "Matz" Matsumoto 8ecbff3f7b define Module#const_missing 2013-10-15 11:12:22 +09:00
h2so5 41de3d83e5 Disable implicit integer conversion in mrb_get_args 2013-10-05 10:56:27 +09:00
Yuichi Nishiwaki 0e4a7b2a03 eliminate use of traditional intern API (mrb_intern()) completely 2013-09-23 19:36:50 -07:00
Yukihiro "Matz" Matsumoto 3995e7ff8f rename voidp to cptr 2013-09-21 17:28:47 +09:00
take_cheeze d12b6ab218 add verbose_backtrace 2013-09-02 00:48:06 +09:00
Yukihiro "Matz" Matsumoto 26839b9c24 Merge pull request #1487 from h2so5/z-option-with-shared-string
Fix a problem of 'z' option and shared string
2013-08-26 00:41:14 -07:00
h2so5 23df879a81 Fix a problem of 'z' option and shared string 2013-08-24 06:52:46 +09:00
Yukihiro "Matz" Matsumoto 65e802f769 remove Class#alloc method 2013-08-15 01:49:37 +09:00
Yukihiro "Matz" Matsumoto babc8d0086 implement Class.new in C again 2013-08-15 00:35:41 +09:00
Yukihiro "Matz" Matsumoto 6b015ec775 define Class#new in ruby to call #initialize 2013-08-13 16:55:06 +09:00
Yukihiro "Matz" Matsumoto 53f750dbed def statement and define_method now return symbol a la Ruby2.1 2013-08-09 22:25:45 +09:00
Cremno 123c88759c class.c and numeric.c: fixed MSVC warnings 2013-08-07 20:48:23 +02:00
Yukihiro "Matz" Matsumoto a61def802e return statement should terminate execution of a method defined by define_method 2013-08-07 17:45:24 +09:00
Yukihiro "Matz" Matsumoto 029613bc55 stop storing target_class info for C defined methods 2013-07-31 00:31:37 +09:00
Yukihiro "Matz" Matsumoto 2daf39ddc8 change else formatting 2013-07-22 09:52:06 +09:00
Jun Hiroe 8e42868600 Repalace int with mrb_bool because a return value is boolean. 2013-07-15 23:17:12 +09:00
Yukihiro "Matz" Matsumoto 5b3d531d79 singleton class super initialize failed 2013-07-13 23:28:59 +09:00
Yukihiro "Matz" Matsumoto 24fb4bf17a make_metaclass should skip MRB_TT_ICLASS; close #1369 2013-07-13 21:53:00 +09:00
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