Commit Graph

2919 Commits

Author SHA1 Message Date
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 d8c4f6a080 make Data_Make_Struct a statement to make it C99 compatible 2013-04-04 04:38:31 +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
Yukihiro "Matz" Matsumoto 5f04e276db Merge pull request #1130 from gzohari/adjust_ci_nregs
Adjust ci->nregs to prevent heap corruption
2013-04-03 06:45:36 -07:00
Yukihiro "Matz" Matsumoto 9a0fba7f0d Merge pull request #1128 from monaka/pr-add-iso-confomance-tests-20130402
Add ISO confomance tests
2013-04-03 06:30:56 -07:00
Gilad Zohari 73d7a72102 Adjust ci->nregs to prevent heap corruption 2013-04-02 18:28:38 +03:00
Masaki Muranaka 4bb7243c2b Add comments: some methods is defined in mrbgems. 2013-04-02 11:43:35 +09:00
Masaki Muranaka c9e19913cf Add comments: eval method is defined in mrbgems. 2013-04-02 11:43:35 +09:00
Masaki Muranaka 39bf29411a Add "Comparable" to labels. 2013-04-02 11:43:35 +09:00
Masaki Muranaka e129a4c8ef Add test cases. 2013-04-02 11:43:30 +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
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
Yukihiro "Matz" Matsumoto 57cf264420 Merge pull request #1124 from kouki-o-iij/pr-kernel-notequal
bugfix: Kernel#!=, and add #!= testcase.
2013-03-31 22:23:45 -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 771964ef31 Merge pull request #1123 from monaka/pr-add-fib39-to-benchmark
Add fib39.rb to benchmark/
2013-03-31 19:47:47 -07:00
Yukihiro "Matz" Matsumoto 96fd52af25 revert 79ebdb5 for the time being #1110 2013-04-01 11:45:49 +09:00
Yukihiro "Matz" Matsumoto 65bccbe7b9 mrb_any_to_s: add separator 2013-04-01 11:30:07 +09:00
Masaki Muranaka 35ced975dc Add fib39.rb to benchmark/ 2013-04-01 09:46:18 +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 2ae9b08b37 Fix to fit new raisef format. 2013-04-01 09:03:20 +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 29879f9d58 Add out_of_memory field to mrb_state. 2013-04-01 08:35:53 +09:00
Yukihiro "Matz" Matsumoto cc6e62ef3e Merge branch 'master' of github.com:mruby/mruby 2013-03-31 23:05:48 +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
Masaki Muranaka cbe7a87c68 Move Integer.{floor,ceil,round,truncate} to mrblib/. For maintainability. 2013-03-31 23:04:45 +09:00
Yukihiro "Matz" Matsumoto 3d9fecda43 Merge pull request #1118 from nemerle/fix_crc_signature
Fix the calc_crc_16_ccitt signature to match the source file
2013-03-30 16:42:40 -07:00
Artur K 642ea41abd Fix the calc_crc_16_ccitt signature to match the source file 2013-03-30 18:11:09 +01:00
Yukihiro "Matz" Matsumoto dd56b93639 should have rewinded stack on exceptions; close #1113 2013-03-31 00:44:56 +09:00
Yukihiro "Matz" Matsumoto 8a2ecba0e4 revive #to_int 2013-03-31 00:06:31 +09:00
Yukihiro "Matz" Matsumoto f475da9bf9 Merge pull request #871 from monaka/pr-remove-bit-field-in-mrb_value
Remove the bit-field by mrb_value.tt
2013-03-30 07:23:24 -07:00
Yukihiro "Matz" Matsumoto 918d199efa move to_i from fixnum to integer; remove reference of to_int which is not in ISO 2013-03-30 23:11:30 +09:00
Yukihiro "Matz" Matsumoto 5cc6832626 undef Integer#new; ref #1111 2013-03-30 23:02:15 +09:00
Yukihiro "Matz" Matsumoto cb5d690ece cancel f4c27c6 since mruby.h is required for mrb_value etc. anyway 2013-03-30 20:52:51 +09:00
Yukihiro "Matz" Matsumoto e0ba717d2c Merge pull request #1108 from monaka/pr-cleanup-numeric.c-20130329
Cleanup numeric.c
2013-03-30 04:50:21 -07:00
Yukihiro "Matz" Matsumoto 99af3183aa Merge pull request #1115 from monaka/pr-add-null-char-to-each-symbol-name
Add null char terminate to each symbol name.
2013-03-29 22:29:41 -07:00
Masaki Muranaka a9f2473377 Add null char terminate to each symbol name. 2013-03-30 13:17:29 +09:00
takkaw f36c133909 Change to return the exception object when an exception occurred in mrb_funcall 2013-03-30 01:41:16 +09:00
Masaki Muranaka c260ef894e Rename mrb_fix2str() to mrb_fixnum_to_str(). This is for naming consistency. 2013-03-29 22:19:26 +09:00
Masaki Muranaka f4c27c6fb5 Include mrbconf.h as MRB_INT_MAX used here. 2013-03-29 22:19:26 +09:00
Masaki Muranaka f82ae7653a Change the second argument of mrb_flo_to_str().
Export mrb_flo_to_str() as API.
2013-03-29 22:19:26 +09:00
Masaki Muranaka 710f625254 Remove mrb_flt2big() as there is no bignum in the core.
Add new API mrb_flo_to_fixnum(). You can replace mrb_flt2big() to mrb_flo_to_fixnum() with few modifications.
2013-03-29 22:19:26 +09:00
Yukihiro "Matz" Matsumoto 6818ec0b38 Merge pull request #1107 from masuidrive/fixed_testrb_path
Fixed testrb load path
2013-03-29 02:36:28 -07:00
Yuichiro MASUI 32d1edb764 Fixed testrb load path 2013-03-29 18:31:24 +09:00
Yukihiro "Matz" Matsumoto eb4e0f8176 Merge pull request #1106 from monaka/pr-remove-mrb_string_value
Remove API mrb_string_value().
2013-03-29 02:18:25 -07:00
Masaki Muranaka 05ad6902fd Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And mrb_string_value() is no merit to keep using. 2013-03-29 18:01:25 +09:00