Commit Graph

45 Commits

Author SHA1 Message Date
Masaki Muranaka 2b5b161f8b Sort include files. Some redundant includes are removed. 2013-03-29 10:22:31 +09:00
Yukihiro Matz Matsumoto 66fa14a333 main.to_s should also return "main" 2013-03-26 22:25:58 +09:00
Yukihiro Matz Matsumoto b1bd62e047 remove all MRB_TT_MAIN from source 2013-03-26 21:25:00 +09:00
Yukihiro Matz Matsumoto 5c6be2e518 Merge branch 'selftopiv' of https://github.com/carsonmcdonald/mruby into carsonmcdonald-selftopiv 2013-03-26 21:07:20 +09:00
Yukihiro Matz Matsumoto 471ad60688 use C99 flexible array member instead of [1] 2013-03-26 17:11:55 +09:00
Yukihiro Matz Matsumoto a7842b6451 zero length array is GCC extension 2013-03-26 16:42:17 +09:00
Carson McDonald 930e4c71c0 Make mrb_top_self return a real instance. 2013-03-25 00:23:22 -04:00
Yukihiro Matz Matsumoto f0ac204f21 Use size_t instead of int. This is for portability. 2013-03-24 00:20:35 +09:00
Masaki Muranaka 3aa3b4af90 Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
2013-03-16 21:29:39 +09:00
mattn 089d3c2a2d Remove compiler warning 2013-03-14 13:40:28 +09:00
kano4 718a748799 Add null check 2013-03-13 22:24:06 +09:00
Yukihiro Matz Matsumoto 2e95f638cd Cut off mrb_irep_free from mrb_close; based on a patch from @matsumoto-r; close #951 2013-03-06 15:22:46 +09:00
Yukihiro "Matz" Matsumoto e13248bedf Merge pull request #884 from monaka/pr-use-MRB_IREP_ARRY_INIT_SIZE-macro
Use MRB_IREP_ARRAY_INIT_SIZE macro.
2013-03-03 16:40:27 -08:00
Cremno 7ba301c201 mrb_open takes no arguments: (void) instead of () 2013-03-02 01:42:06 +01:00
Masaki Muranaka 6dda588503 Use MRB_IREP_ARRAY_INIT_SIZE macro. It should be configurable since it is possible to reduce RAM size. 2013-02-25 13:59:20 +09:00
Carson McDonald 8f83f6674c Fixes a number of "comparison between signed and unsigned" warnings. 2013-01-27 09:44:47 -05:00
Yukihiro Matz Matsumoto 410d58a555 resolve conflict 2013-01-23 22:32:17 +09:00
Yuichiro MASUI 10c264d4bb Removed ext 2013-01-22 20:24:33 +09:00
Yuichiro MASUI 310b0dce8f Added finalizer of mrbgems 2013-01-22 20:18:48 +09:00
Yukihiro Matz Matsumoto f486774352 refactor and move irep malloc away to mrb_add_irep() 2012-12-07 15:57:40 +09:00
skandhas 70eaf92d8a fix incorrect mrb->irep initialization 2012-11-09 15:55:09 +08:00
Xuejie Xiao 4bbf7a3e12 Fix build on c++ compiler 2012-11-08 11:32:45 -05:00
Masaki Muranaka 1933e2660c Use substitution instead of memset in structure initialization. 2012-10-25 15:47:45 +09:00
Yukihiro Matsumoto 70abbb423a should not free() static iseq from cdump 2012-10-17 02:57:40 +09:00
Masamitsu MURASE ab5a5813c4 Free mrb->rescue and mrb->ensure. 2012-09-05 02:42:49 +09:00
Yukihiro Matsumoto 4f7a1a167d remove memleaks using linked allocator 2012-09-03 08:34:31 +09:00
Yukihiro Matsumoto fd3af6aec8 introduce toplevel object main; close #327 2012-09-03 00:41:09 +09:00
Yukihiro Matsumoto 950204bc4d remove flags from irep 2012-08-29 11:45:36 +09:00
Yukihiro Matsumoto d04a7ec632 free heap pages from mrb_close() 2012-08-28 02:11:00 +09:00
Yukihiro Matsumoto ac789ae61c free symbol table from mrb_close() 2012-08-28 02:03:19 +09:00
Masamitsu MURASE a851bcd631 Refer to irep_capa as well as irep_len when irep is marked by GC.
Initialize mrb->irep array with 0 when realloc is called.
2012-08-21 02:01:26 +09:00
Yukihiro Matsumoto 147aa04050 mrb_open_allocf() should keep ud in mrb_state 2012-08-19 21:43:39 +09:00
Yukihiro Matsumoto e27cc402da replace RiteVM in comments by mruby 2012-08-19 08:35:23 +09:00
Yukihiro Matsumoto b8fc484d2e allocf should take ud; https://twitter.com/junjis0203/status/236949976461221889 2012-08-19 07:48:40 +09:00
Yukihiro Matsumoto a37c1daf33 call mrb_gc_free_gc from mrb_close 2012-08-12 00:05:10 +09:00
Max Anselm 5a4beeed2d Make all(?) void casts explicit for C++ 2012-07-29 19:48:48 -04:00
Masamitsu MURASE 7010aebbce Modify allocation size of mrb->irep. 2012-07-21 19:40:20 +09:00
Masaki Muranaka 611cf71a10 Use mrb_calloc if you want zero cleard buffers. 2012-07-08 11:33:49 +09:00
Jon 49aa42f3a9 Verify that memory for mrb_state was allocated 2012-06-03 11:11:34 -04:00
liyuray 5b3628051b issue: make test fail on mingw.
solution: initialize memory allocated.
2012-06-03 14:04:33 +08:00
Carson McDonald 1685d241c4 idx should be less than the cap, if it is equal irep needs to grow. 2012-05-17 00:33:49 -04:00
roco 4ec6d41f16 rm whitespace 2012-04-30 14:29:19 -07:00
Yukihiro Matsumoto 8b367098ac move header files {irep,dump,cdump,ritehash}.h to /include/mruby 2012-04-24 17:41:28 +09:00
mimaki 835443614d add file header 2012-04-23 11:46:16 +09:00
mimaki e0d6430f63 add mruby sources 2012-04-20 09:39:03 +09:00