Commit Graph

3960 Commits

Author SHA1 Message Date
Per Lundberg 172cd281ba Automatically detect toolchain if it is visualcpp, and hence we drop vs2010.rake altogether - it’s no longer needed. 2013-11-22 22:17:01 +02:00
Yukihiro "Matz" Matsumoto 07b8a5b042 Make mrb->arena variable sized. Use MRB_GC_FIXED_ARENA for old behavior.
You will not see "arena overflow" error anymore, but I encourage gem authors
to check your gems with MRB_GC_FIXED_ARENA to avoid memory broat.
2013-11-22 09:20:06 +09:00
Yukihiro "Matz" Matsumoto b723f67b8b Merge pull request #1590 from iij/pr-declare-struct-mrb-irep
declare struct mrb_irep.
2013-11-20 21:31:47 -08:00
Tomoyuki Sahara 1e89fc8240 declare struct mrb_irep. 2013-11-21 13:35:46 +09:00
Yukihiro "Matz" Matsumoto fb386011df rename API mrb_str_dup_static() -> mrb_str_pool() 2013-11-20 08:37:16 +09:00
Yukihiro "Matz" Matsumoto 217595c325 need to free pooled string bodies as well 2013-11-20 07:38:53 +09:00
Yukihiro "Matz" Matsumoto 16e1fbc1e8 mrb format should be portable among configurations (e.g. MRB_NAN_BOXING) 2013-11-20 07:34:57 +09:00
Yukihiro "Matz" Matsumoto d73dfa8708 resolve conflict 2013-11-20 07:29:55 +09:00
Miura Hideki 54c5b12fb7 irep->pool struct pool -> mrb_value 2013-11-19 20:38:02 +09:00
Yukihiro "Matz" Matsumoto 6742421907 Merge branch 'master' of github.com:mruby/mruby 2013-11-19 19:00:05 +09:00
Yukihiro "Matz" Matsumoto f57cdc3cd7 parser_dump() is not used in mrbc; close #1561 2013-11-19 18:59:53 +09:00
Yukihiro "Matz" Matsumoto 8a7cb26e6a Merge pull request #1587 from perlun/patch-1
Fixed so that it builds with VS2013. VLA:s are not supported, because of its strict C89 world view.
2013-11-19 01:48:59 -08:00
Per Lundberg d073129d9d Fixed so that it builds with VS2013. VLA:s are not supported, because of its strict C89 world view. 2013-11-19 09:29:20 +02:00
Yukihiro "Matz" Matsumoto f9b14f49e6 Merge pull request #1584 from cremno/rename-mrb_exc_new3
renamed mrb_exc_new3 to mrb_exc_new_str
2013-11-18 16:24:42 -08:00
Yukihiro "Matz" Matsumoto e4c2f9c14f Merge pull request #1585 from cremno/codegen-fixes
codegen_malloc/realloc: static + simple mem alloc
2013-11-18 16:24:07 -08:00
Yukihiro "Matz" Matsumoto 956e26be78 Merge pull request #1586 from cremno/gcc-std-gnu99
GCC: add -std=gnu99 to CFLAGS
2013-11-18 16:22:48 -08:00
Yukihiro "Matz" Matsumoto 8954241687 clear ci->err after const set; revert 5b51b1; ref #1583 2013-11-19 09:21:55 +09:00
cremno 53139cbb15 GCC: add -std=gnu99 to CFLAGS
- this change prevents issues like #1539 in the future
- Clang's default is already gnu99 but GCC's is gnu89
- mruby is C99 (+ GNU exts), not C89 (+ GNU exts)
2013-11-18 21:26:50 +01:00
cremno aacadb2365 renamed mrb_exc_new3 to mrb_exc_new_str
- more descriptive name (there's no mrb_exc_new2)
- no wrapper (macro/static inline function) for
backwards compatibility because nothing besides
mruby itself seems to be calling this function:
<http://mruby-code-search.ongaeshi.me/home?query=mrb_exc_new3>
2013-11-18 21:01:03 +01:00
cremno ec9b5e7fed codegen_malloc/realloc: static + simple mem alloc
- there's no reason for both to have external linkage
- use simple versions of memory allocation functions
which are returning NULL instead of longjmp-ing,
so codegen_error will be called to cleanup.
2013-11-18 20:47:20 +01:00
Yukihiro "Matz" Matsumoto 5b51b119ca ci->err may be out of boud; close #1583 2013-11-18 22:51:51 +09:00
Yukihiro "Matz" Matsumoto 7ca2763f75 write_debug_record should dump info recursively; close #1581 2013-11-18 07:48:32 +09:00
Yukihiro "Matz" Matsumoto 52070a9898 check upper callinfo to call ensure block; close #1579 2013-11-18 07:07:33 +09:00
Yukihiro "Matz" Matsumoto 71011cdc9e Merge branch 'master' of github.com:mruby/mruby 2013-11-18 06:39:56 +09:00
Yukihiro "Matz" Matsumoto 8bde7e3c5f Merge pull request #1582 from takahashim/warning-enum-irep_pool_type
irep->pool[n].type should be IREP_TT_*, not MRB_TT_*
2013-11-17 13:39:47 -08:00
takahashim 305b5d691b fix warning: "implicit conversion from enumeration type 'enum mrb_vtype' to different enumeration type 'enum irep_pool_type' [-Wenum-conversion]" 2013-11-17 14:18:16 +09:00
Yukihiro "Matz" Matsumoto 23f6d05ac6 wrong size of filenames buffer 2013-11-15 14:48:45 +09:00
Yukihiro "Matz" Matsumoto 2bda965258 should output debug info for child ireps; close #1575 2013-11-15 14:16:49 +09:00
Yukihiro "Matz" Matsumoto 13c2d65b02 should not free buffer that is still accessed 2013-11-15 11:47:08 +09:00
Yukihiro "Matz" Matsumoto 3286e63202 wrong size of filenames buffer 2013-11-15 11:46:30 +09:00
Yukihiro "Matz" Matsumoto 04a2c58e94 add new function mrb_load_irep_file_cxt() and simplifies mruby.c 2013-11-15 10:49:40 +09:00
Yukihiro "Matz" Matsumoto d8f9a30ef3 fix irep memory leak 2013-11-15 10:35:45 +09:00
Yukihiro "Matz" Matsumoto 71354b91cb enum mrb_vtype varies on compile time configuration, namely MRB_NAN_BOXING 2013-11-15 02:45:52 +09:00
Yukihiro "Matz" Matsumoto 16b34d187a remove warning on NAN_BOXING 2013-11-15 02:27:19 +09:00
Yukihiro "Matz" Matsumoto f645bf1b0c Merge pull request #1573 from Fleurer/fix1572
fix length check in read_section_debug()
2013-11-14 07:48:24 -08:00
fleuria 87fa03ebce fix length check in read_section_debug(); fix #1572 2013-11-14 20:16:46 +08:00
Yukihiro "Matz" Matsumoto c6cc92ac87 remove possible free-after-realloc problem; close #1570 2013-11-14 14:59:26 +09:00
Yukihiro "Matz" Matsumoto fc83acfcff remove unnecessary jump 2013-11-14 09:46:41 +09:00
Yukihiro "Matz" Matsumoto 2a5e0a4f6c Merge pull request #1571 from bggd/patch-1
Changed a variable declaration to top of block
2013-11-13 16:29:16 -08:00
bggd 0cbdbd81cb Changed a variable declaration to top of block 2013-11-13 22:53:20 +09:00
bggd 86c80139ab Changed a variable declaration to top of block 2013-11-13 22:35:25 +09:00
Yukihiro "Matz" Matsumoto edd6c17c1e load_exec() no longer return fixnum value for no_exec; should close #1569 2013-11-13 15:48:13 +09:00
Yukihiro "Matz" Matsumoto 08e6bd47a0 fclose input file 2013-11-13 14:44:02 +09:00
Yukihiro "Matz" Matsumoto ca704e5438 pacify some warnings on OpenBSD 2013-11-13 10:33:10 +09:00
Yukihiro "Matz" Matsumoto 7078fcd9e4 fixnum in irep->pool may overflow 2013-11-13 10:15:57 +09:00
Yukihiro "Matz" Matsumoto a725bd7a23 call codedump_all() from mirb if --verbose is set; close #1559 2013-11-10 04:34:53 +09:00
Yukihiro "Matz" Matsumoto 3bbf66f9f3 cancel #1565 since it breaks mirb; instead add special treatment to heredocs 2013-11-10 04:32:57 +09:00
Yukihiro "Matz" Matsumoto 7e64d7e531 check for corrupted mrb file data 2013-11-10 03:08:01 +09:00
Yukihiro "Matz" Matsumoto 29792d1725 Merge branch 'master' of github.com:mruby/mruby 2013-11-09 23:29:50 +09:00
Yukihiro "Matz" Matsumoto a9d8357d69 Merge pull request #1566 from carsonmcdonald/supresstosuppress
Change supress to suppress
2013-11-09 06:29:35 -08:00