554 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto ce1756b3b6 Merge pull request #997 from monaka/pr-add-type-mrb_bool_t
Define mrb_bool_t.
2013-03-14 04:51:14 -07:00
Yukihiro Matz Matsumoto 9d0bbdb7f8 use size_t for string length C API 2013-03-14 19:33:38 +09:00
Yukihiro Matz Matsumoto 93e9174c57 symbol length make size_t from mrb_int; cancel #993 monaka/pr-cleanup-symbol.c-20130312 2013-03-14 19:09:55 +09:00
Masaki Muranaka 1ffc9ba325 Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.
It is safer than applying 1bit bit-fields to signed int.

For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
2013-03-14 15:13:12 +09:00
Tomoyuki Sahara 00cf5e32a2 Merge branch 'master' into pr-systemcallerror 2013-03-13 10:22:59 +09:00
Tomoyuki Sahara 7103e03274 mrb_sys_fail raises SystemCallError if we have it. 2013-03-13 09:55:06 +09:00
Masaki Muranaka be506de3fc Remove mrb_str_new2(). Use mrb_str_new_cstr() instead.
Make mrb_str_new_cstr() accept NULL pointer. It generates 0byte strings by NULL pointer.
2013-03-12 17:54:40 +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
Kouki Ooyatsu 28f1d27232 cleanup: unused variable local_svar 2013-03-03 03:51:55 +09:00
Masaki Muranaka b833df3d37 Remove commented out code. Remove redundant function calls. 2013-02-24 00:11:48 +09:00
Yukihiro Matz Matsumoto eb14c15e99 rename hook and macro 2013-02-18 16:15:32 +09:00
Yuichiro MASUI bc44d06c73 Created hook at VM code fetch. It's for debugger 2013-02-17 00:13:42 +09:00
Yukihiro "Matz" Matsumoto d3626f6b7d Merge pull request #820 from cremno/unused-stuff
Remove declarations of undefined functions
2013-02-03 16:06:31 -08:00
Cremno feaff10c58 removed declarations of undefined functions 2013-02-03 19:48:41 +01:00
Masamitsu MURASE 54eb08e2fc Remove ";" suffix from function-type macros. 2013-02-02 00:24:30 +09:00
Cremno 6e583830d2 removed unused mrb_check_funcall 2013-01-30 19:27:04 +01:00
Cremno 3ca6c1176e removed unused mrb_funcargv_t 2013-01-30 19:26:30 +01:00
Yukihiro Matz Matsumoto b5830aed17 remove MRUBY_VERSION for the time being; close #700 2013-01-08 23:36:19 +09:00
Yukihiro "Matz" Matsumoto f1eb0a0537 Merge pull request #705 from authorNari/compact_flags
Compact flags for GC
2013-01-07 01:30:55 -08:00
Narihiro Nakamura 602959ec7f Compact flags for GC 2013-01-07 16:33:26 +09:00
Masaki Muranaka 83d91b935a Remove DEBUG macro definitions. 2013-01-07 15:07:44 +09:00
Narihiro Nakamura 5dfefb95df Add the generational gc 2013-01-07 01:47:21 +09:00
Yukihiro Matz Matsumoto f1ed143624 mange arena_idx smarter for smaller ARENA_SIZE; now default to 100 from 1024 2012-12-07 16:58:50 +09:00
Yukihiro Matz Matsumoto 3e22c939e6 remove NUM2CHR macro 2012-11-04 05:16:44 +09:00
Yukihiro Matz Matsumoto a354aca8b4 remove NUM2CHR macro 2012-11-04 05:15:58 +09:00
Yukihiro Matz Matsumoto e429905597 replace SYM2ID() by mrb_symbol() 2012-11-04 05:11:39 +09:00
Yukihiro Matz Matsumoto ca7c662be5 remove reference to ruby_verbose and ruby_debug 2012-11-04 05:07:44 +09:00
Masaki Muranaka 6069a33089 mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
2012-10-23 09:42:22 +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 e49224284d OP_EQ should try direct compararison first 2012-09-10 22:09:24 +09:00
Yukihiro Matsumoto 4f7a1a167d remove memleaks using linked allocator 2012-09-03 08:34:31 +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 7d02df3016 NaN boxing 2012-08-14 13:16:34 +09:00
Yukihiro Matsumoto e74600c919 move mrb_value def to mruby/value.h 2012-08-14 03:09:04 +09:00
Yukihiro Matsumoto c9fe903fe1 now segmented list can be used as instance variable tables by -DMRB_USE_IV_SEGLIST; we still need to measure the performance and memory consumption 2012-08-12 01:59:18 +09:00
Yukihiro Matsumoto 8d017ebdb7 add GC.disable and GC.enable 2012-08-09 03:58:52 +09:00
Yukihiro Matsumoto 8af5a999bf store :initialize in mrb structure 2012-08-08 00:25:35 +09:00
Yukihiro Matsumoto d271bf0aa6 make mrb_funcall_argv and mrb_funcall_with_block to take mrb_sym as a method name 2012-08-01 13:15:02 +09:00
Max Anselm ea25912999 Undefine new for class rather than instance.
Applies to NilClass, TrueClass, FalseClass, Fixnum, and Float. Add
mrb_undef_class_method for DRYness.
2012-07-25 18:22:26 -04:00
Yukihiro Matsumoto 88b638cf82 instance_eval should set target_class in the block 2012-07-24 23:16:41 +09:00
Yukihiro Matsumoto 8ae67d10b3 make MRB_ARENA_SIZE to be configurable 2012-07-19 11:28:06 +09:00
Yukihiro Matsumoto 36664174cb change return type of mrb_p() to void 2012-07-17 23:48:55 +09:00
Yukihiro Matsumoto 234b8e853c make class_from_sym static 2012-07-15 16:37:23 +09:00
Yukihiro Matsumoto e380692224 mrb_load_xxx to return undef + mrb_undef_p 2012-07-14 07:38:43 +09:00
Yukihiro Matsumoto 0e2a81740a we don't need xmalloc; close #356 2012-07-09 11:42:15 +09:00
Yukihiro Matsumoto 8268ba2755 remove MRB_TT_THREAD,MRB_TT_THREADGRP 2012-07-06 19:52:50 +09:00
Yukihiro Matsumoto ff42f8f485 move RDoc comments 2012-07-05 22:56:51 +09:00
Yukihiro Matsumoto ef50e63a63 remove RuntimeError from mrb_state 2012-06-20 20:43:27 +09:00
Yukihiro Matsumoto 9e78fea7b3 remove unreference Error class macros 2012-06-15 14:04:25 +09:00
Yukihiro Matsumoto 195d1dd685 do not use fixed sized buffer in mrb_bug/mrb_warn; close #287 2012-06-15 14:03:02 +09:00