Commit Graph

3989 Commits

Author SHA1 Message Date
Carson McDonald 12e2488a4a Add is_a? test to cover issue 1477 2013-12-04 10:29:40 -05:00
Yukihiro "Matz" Matsumoto 415ec6aca2 avoid top-level pool release at codegen_error() and fixed some memory leaks 2013-12-03 01:47:50 +09:00
Yukihiro "Matz" Matsumoto 56a93a3357 should not access scope after releasing memory pool 2013-12-03 00:55:19 +09:00
Yukihiro "Matz" Matsumoto 155f3909f0 Merge pull request #1601 from carsonmcdonald/srcaptosizet
Change scapa and rcapa to size_t, use scapa.
2013-12-02 05:19:45 -08:00
Carson McDonald ba67427872 Change scapa and rcapa to size_t, use scapa. 2013-12-02 06:51:07 -05:00
Yukihiro "Matz" Matsumoto da8405a0f7 Merge pull request #1600 from take-cheeze/mrb_intern_lit
Proposal of mrb_intern_lit macro.
2013-12-01 21:29:46 -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 e981f0b45c inline mrb_gc_arena_restore() and stack_extend() in VM loop 2013-12-01 00:56:30 +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 9ac386923d float objects in pool are objects when MRB_WORD_BOXING is set 2013-11-27 17:29:28 +09:00
Yukihiro "Matz" Matsumoto e9e1259b61 Merge pull request #1599 from kyab/fix_mrb_word_boxing
Fix build error for MRB_WORD_BOXING
2013-11-26 04:11:38 -08:00
kyab 1a6244d99d Fix build error for MRB_WORD_BOXING 2013-11-26 20:28:24 +09:00
Yukihiro "Matz" Matsumoto 0f9d287ba4 Merge pull request #1597 from take-cheeze/mrbcfile
debug record size assertion fail
2013-11-25 19:41:15 -08:00
take_cheeze ccc22d7b09 move debug record size assertion to correct position 2013-11-26 11:43:39 +09:00
take_cheeze 9b4b2e7c52 use mrbc of current build in non cross build 2013-11-26 11:33:25 +09:00
take_cheeze a6bb888034 append defines instead of assigning 2013-11-26 11:01:57 +09:00
Yukihiro "Matz" Matsumoto f5bd87b9e6 add CFLAGS as a fallback from CXXFLAGS; ref #1594 2013-11-25 09:51:44 +09:00
Yukihiro "Matz" Matsumoto 33698d7349 Merge branch 'modify_toolchains_gcc' of https://github.com/crimsonwoods/mruby into crimsonwoods-modify_toolchains_gcc 2013-11-25 09:50:33 +09:00
Yukihiro "Matz" Matsumoto ed0d9f0066 remove MRB_PARSER_BUF_SIZE configuration; close #1596 2013-11-25 09:48:31 +09:00
Yukihiro "Matz" Matsumoto 91a4eb5759 Merge pull request #1595 from take-cheeze/filename_realloc_fix
get_filename_table_size realloc fix.
2013-11-24 13:06:23 -08:00
Yukihiro "Matz" Matsumoto 28a159c721 Merge pull request #1593 from perlun/patch-1
Updated the documentation to better match the way things work now that 172cd28 is merged.
2013-11-24 03:42:50 -08:00
take_cheeze 23a412830d fix realloc error 2013-11-24 20:39:17 +09:00
take_cheeze f07ba44c69 add enable_debug method to MRuby::Build and build debug version in travis-ci 2013-11-24 20:38:47 +09:00
crimsonwoods 92916bb4a6 Modify referenced environment variables.
'CXX' is used instead of 'CC'.
'CXXFLAGS' is used instead of 'CFLAGS'.
2013-11-23 21:47:47 -08:00
crimsonwoods caf4d63229 Modify build script for gcc.
Newly added compile option '-std=gnu99' is not necessary for C++.
And 'g++' should be used to compile for C++ source codes, I think.
2013-11-23 19:30:52 -08:00
Per Lundberg 0b46876c03 Updated the documentation to better match the way things work now that 172cd28 is merged. 2013-11-23 22:59:34 +02:00
Yukihiro "Matz" Matsumoto a2e0c6ea3a Merge pull request #1592 from perlun/auto-toolchain
Automatically detect toolchain if it is visualcpp, and hence we drop vs2010.rake altogether - it’s no longer needed.
2013-11-22 14:06:45 -08:00
Yukihiro "Matz" Matsumoto cfd975037c Merge pull request #1591 from iij/pr-fixed-arena-on-travis
build with MRB_GC_FIXED_ARENA on travis
2013-11-22 14:06:00 -08:00
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
Tomoyuki Sahara b746a005c8 build with MRB_GC_FIXED_ARENA. 2013-11-22 14:01:39 +09: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