Commit Graph

1611 Commits

Author SHA1 Message Date
Masaki Muranaka bd7cf9ba0d Remove a comment. 2013-04-21 01:17:17 +09:00
Masaki Muranaka 2613e5d955 Clean up variable types and type casts. 2013-04-21 01:17:17 +09:00
Yukihiro "Matz" Matsumoto c79172dfd5 put spaces after if/while 2013-04-20 23:11:43 +09:00
Yukihiro "Matz" Matsumoto 2acf724554 wrong type cast 2013-04-20 23:11:01 +09:00
Yukihiro "Matz" Matsumoto e861ecf514 small consmetic fix 2013-04-20 23:01:31 +09:00
Yukihiro "Matz" Matsumoto 2529f1edba Module#class_variables should check superclasses 2013-04-20 22:58:52 +09:00
Carson McDonald 93b23357fe Add implementation for respond_to_missing? 2013-04-20 07:48:26 -04:00
Yukihiro "Matz" Matsumoto cc512dd8d0 Merge pull request #1191 from h2so5/refactor-kernel-and-class
Refactor kernel.c and class.c
2013-04-19 19:42:33 -07:00
h2so5 359b5ee7af Refactor kernel.c and class.c 2013-04-20 01:25:15 +09:00
Daehyub Kim c5712bcb3f use ISXDIGIT instead isxdigit on parser.y:3485 2013-04-20 00:07:37 +09:00
h2so5 b9674c735e Make str_modify public 2013-04-19 08:06:04 +09:00
Tomoyuki Sahara 0f8969041a rollback stack before executing ensure clause. 2013-04-17 13:08:54 +09:00
h2so5 b1ffb3b3b8 Add Proc#arity 2013-04-16 16:03:36 +09:00
Yukihiro "Matz" Matsumoto 09eae5ceb2 move no block check to mrb_yield_internal 2013-04-13 10:03:34 +09:00
Yukihiro "Matz" Matsumoto c3b79e11f3 add no block check; based on patch from h2so5; close #1174 2013-04-13 01:16:37 +09:00
Yukihiro "Matz" Matsumoto 78b0abcfaf string interpolation (#{foo}) does stringify implicitly; no need to call #to_s 2013-04-11 23:11:43 +09:00
h2so5 1f571dd5fc Fix TypeError messages 2013-04-11 19:47:35 +09:00
h2so5 a4d59b4ceb Refactor mrb_str_dump 2013-04-10 23:32:51 +09:00
Yukihiro "Matz" Matsumoto c5c3fa1939 Merge pull request #1164 from h2so5/add-validation-for-c-symbol
Add validation for C language symbol name
2013-04-09 09:45:56 -07:00
h2so5 337076f9ba Add validation for C language symbol name 2013-04-09 16:21:51 +09:00
Yukihiro "Matz" Matsumoto 84acf4e3f3 preparation for tail call optimization (still has bugs) 2013-04-09 15:31:17 +09:00
Yukihiro "Matz" Matsumoto 03367c19ed target_class should not be TT_ICLASS; close #1152 2013-04-09 10:52:15 +09:00
Yukihiro "Matz" Matsumoto 9fbd66cb9a nregs size was too big (off by one); close #1137 2013-04-09 09:19:18 +09:00
Yukihiro "Matz" Matsumoto 3286fb511e Merge pull request #1147 from schmurfy/dump_osx
stdint header seems required on osx for uint8_t
2013-04-06 06:32:15 -07:00
Julien Ammous 35450bfcac stdint header seems required on osx for uint8_t 2013-04-06 14:59:55 +02:00
kano4 04fb7a0a3f Define isascii for C99 2013-04-06 21:47:38 +09:00
Yukihiro "Matz" Matsumoto a20384ce74 Merge pull request #1141 from mattn/fix_exit
Fix exit
2013-04-05 08:37:04 -07:00
mattn 1541a61f5d Fix exit 2013-04-05 18:04:22 +09:00
h2so5 51ef69dee6 Add syntax error for incomplete global variables 2013-04-05 14:59:11 +09:00
h2so5 7331119265 Add syntax error for incomplete instance/class variables 2013-04-05 11:30:13 +09:00
Yukihiro "Matz" Matsumoto 492688eecd factor out redundant Regexp check into functions 2013-04-05 04:41:17 +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 edd0a62106 Add NameError#name. Fix NameError.new and NameError.initialize. Enable 2nd argument for NameError.new in C API. 2013-04-04 16:24:43 +09:00
Masaki Muranaka 1efb1bbaff Use mrb_name_error() as possible. 2013-04-04 16:24:43 +09:00
Masaki Muranaka 2f829ea09a Move mrb_name_error() declaration to mruby.h As it is requred by struct mrbgem. 2013-04-04 16:24:43 +09:00
Yukihiro "Matz" Matsumoto 75f5535c4f rename DATA API: mrb_get_datatype -> mrb_data_get_ptr; mrb_check_datatype -> mrb_data_check_and_get 2013-04-04 04:30:39 +09:00
Yukihiro "Matz" Matsumoto dfb4755729 Merge pull request #1131 from takkaw/mrb_funcall_return_exc
Change to return the exception object when an exception occurred in mrb_funcall
2013-04-03 06:58:49 -07:00
Gilad Zohari 73d7a72102 Adjust ci->nregs to prevent heap corruption 2013-04-02 18:28:38 +03: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
Yukihiro "Matz" Matsumoto 7c2f68862e Merge pull request #1121 from monaka/pr-check-malloc-failed2
Check malloc failed
2013-04-01 04:09:27 -07:00
Kouki Ooyatsu 7e163c0567 bugfix: Kernel#!=, and add #!= testcase. 2013-04-01 12:18:19 +09:00
Yukihiro "Matz" Matsumoto e6f61fa74e Merge pull request #1122 from monaka/pr-cleanup-raise
Cleanup around mrb_raise calls
2013-03-31 19:49:08 -07:00
Yukihiro "Matz" Matsumoto 65bccbe7b9 mrb_any_to_s: add separator 2013-04-01 11:30:07 +09:00
Masaki Muranaka 029e3c9f50 Use mrb_raise() as possible instead of mrb_raisef(). 2013-04-01 09:08:02 +09:00
Masaki Muranaka 06b4b1cc33 Fix typos. 2013-04-01 09:03:42 +09:00
Masaki Muranaka c7ff1bd881 Add the care for malloc failed.
At the first time, mrb_realloc raise RuntimeError.
At the time fails twice in a row, it causes panic.
2013-04-01 08:40:05 +09:00
Masaki Muranaka 580f1e922b Integer.round have no arg. 2013-03-31 23:05:23 +09:00
Masaki Muranaka 1d82d07cac Remove unused functions. 2013-03-31 23:05:03 +09:00