Commit Graph

865 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto be8f3909f7 Merge pull request #481 from monaka/pr-tiny-cleanup-20120929
Tiny clean-up
2012-09-29 16:43:29 -07:00
Yukihiro Matsumoto a3d7960a44 wrong termination of mrb_run on exception; close #480 2012-09-30 08:42:10 +09:00
Masaki Muranaka d085ac228e mrb_long2int(n) : Remove as unused.
defines.h : Remove as already commented out.
2012-09-29 17:00:32 +09:00
Yukihiro Matsumoto 5adbbe66d8 should adjust array size 2012-09-27 17:17:14 +09:00
Yukihiro Matsumoto 7171e5aa18 load_exec should return undef on syntax errors 2012-09-27 11:28:15 +09:00
Yukihiro Matsumoto 190fc76091 should not call mrb_parser_free() on NULL pointer 2012-09-26 08:15:09 +09:00
Yukihiro Matsumoto 84008f99d5 should adjust pc after OP_CALL 2012-09-21 15:10:38 +09:00
Yukihiro Matsumoto 44b28a83f8 OP_CALL for cfunc must restore callinfo; close #476 2012-09-20 18:26:51 +09:00
Yukihiro Matsumoto f0f113ef0e should define String#+ (non inlined); close #469 2012-09-13 22:28:04 +09:00
Yukihiro Matsumoto 8d97a8e069 Merge branch 'master' of github.com:mruby/mruby 2012-09-13 05:56:46 +09:00
Tomoyuki Sahara 7a7f267b88 check if an Exception instance has a "mesg" attribute
fix the issue that "Exception.new.inspect" causes SIGSEGV.
2012-09-12 20:08:56 +09:00
Yukihiro Matsumoto 540066c9e2 mrb_sym can be short integer; reduced 10KB 2012-09-12 16:20:32 +09:00
Yukihiro Matsumoto 3a49dfd198 remoce duplicate declaration of TOUPPER/TOLOWER 2012-09-12 16:09:03 +09:00
Tomoyuki Sahara 32b88c72af two more wrapper macros for ctype.h
we need them on the platform where 'char' is signed.
2012-09-12 14:02:58 +09:00
Yukihiro Matsumoto 54101eec43 typo fixed 2012-09-12 07:41:28 +09:00
Yukihiro Matsumoto cdbd116c49 Merge branch 'master' of github.com:mruby/mruby 2012-09-12 07:40:38 +09:00
Yukihiro "Matz" Matsumoto bcd77200ac Merge pull request #463 from emboss/define_dbl_dig_conditionally
Define DBL_DIG only if it wasn't previously defined
2012-09-10 23:00:30 -07:00
Shannen Saez 4df4dc9ecd Fixes #464. 2012-09-11 14:30:44 +10:00
emboss a24fde1889 Define DBL_DIG only if it wasn't previously defined
DBL_DIG may already be defined on the target system,
defining it without checking first may overwrite
system values.
2012-09-11 03:02:28 +02:00
Yukihiro "Matz" Matsumoto 835eac6234 Merge pull request #461 from bovi/makefile-writing-fixes
Fix writing errors in Makefiles
2012-09-10 17:04:39 -07:00
Daniel Bovensiepen f6a9846d0e Fix writing errors in Makefiles 2012-09-10 23:25:50 +08:00
Yukihiro Matsumoto 2edee29e68 Array#reverse! should call ary_modify 2012-09-10 23:47:08 +09:00
Yukihiro "Matz" Matsumoto 7ccc6fa28c Merge pull request #460 from iij/pr-nul-in-string
compiler may generate broken binary if string literal has NUL characters
2012-09-10 06:13:05 -07:00
Yukihiro "Matz" Matsumoto c999216aa8 Merge pull request #459 from shancat/warning_fix
Fixed Windows warning.
2012-09-10 06:11:30 -07:00
Yukihiro Matsumoto e49224284d OP_EQ should try direct compararison first 2012-09-10 22:09:24 +09:00
Yukihiro Matsumoto b21afdfbaf use mrb_test 2012-09-10 22:06:57 +09:00
Yukihiro Matsumoto 1a816db854 eagerly reduce allocated array memory 2012-09-10 21:54:42 +09:00
Yukihiro Matsumoto 22f22cc2e2 use mrb_malloc instead of clearing mrb_calloc 2012-09-10 20:46:24 +09:00
Yukihiro Matsumoto b0f3c28caa simplify array generation from mrb_run 2012-09-10 20:36:03 +09:00
Yukihiro Matsumoto fd252fecf4 check special_const before calling respond_to? 2012-09-10 20:35:42 +09:00
Tomoyuki Sahara ebf88eec6b a string may have NUL characters. 2012-09-10 18:44:30 +09:00
Shannen Saez 151d75b4e0 Fixed Windows warning.
Compiling on Windows 7 from a Windows SDK 7 prompt with CMake.
`nmake all test` now works with the `tzset()` warning gone.
2012-09-10 17:12:38 +10:00
Yukihiro Matsumoto d416a5c3fe should have preserved original method name 2012-09-10 11:01:36 +09:00
Yukihiro Matsumoto 51686a006a inlining some mrb_value assignments 2012-09-10 03:23:23 +09:00
Yukihiro Matsumoto 9e7ca5d944 mrb might be intialized incompletely from mrbc; close #457 2012-09-09 13:14:32 +09:00
Yukihiro Matsumoto 3c95aff5ac some cosmetic change on OP_SENDB 2012-09-06 22:46:56 +09:00
Yukihiro Matsumoto e01c5a2b5b add CASE(OP_SENDB) for non direct_threaded; close #455 2012-09-06 22:45:42 +09:00
Yukihiro Matsumoto 4f6600b98a add Time#inspect 2012-09-06 01:44:01 +09:00
Yukihiro Matsumoto c0ac010b68 add Module#inspect; close #453 2012-09-06 01:42:53 +09:00
Yukihiro Matsumoto f9f425ae5f inspect on classes should not cause SEGV 2012-09-06 01:41:45 +09:00
Yukihiro "Matz" Matsumoto ac26b2a85d Merge pull request #449 from masamitsu-murase/free_rescue_and_ensure_in_mrb_close
Free mrb->rescue and mrb->ensure.
2012-09-04 15:05:18 -07:00
Yukihiro "Matz" Matsumoto e8b419edc2 Merge pull request #448 from masamitsu-murase/check_iv_tbl
Check iv in mrb_iv_remove.
2012-09-04 14:14:34 -07:00
Yukihiro "Matz" Matsumoto 3f2743c3e1 Merge pull request #447 from iij/pr-tailcall-oob
fix out-of-bound access on compiling empty blocks.
2012-09-04 14:11:35 -07:00
Masamitsu MURASE ab5a5813c4 Free mrb->rescue and mrb->ensure. 2012-09-05 02:42:49 +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 50d469d900 small performance tweak; inline assignment 2012-09-04 23:02:24 +09:00
Yukihiro Matsumoto bf7f9f83c7 rename config macro name IV_INITIAL_SIZE -> IVHASH_INIT_SIZE 2012-09-04 17:38:27 +09:00
Tomoyuki Sahara 20e9d53fb8 fix out-of-bound access on compiling empty blocks. 2012-09-04 15:59:39 +09:00
Yukihiro Matsumoto eb080397fa zero check added to mrb_fixnum_mul as well 2012-09-03 22:22:57 +09:00
Yukihiro Matsumoto 7d1673276c zero check before overflow check devision; close #446 2012-09-03 21:13:19 +09:00