Commit Graph

161 Commits

Author SHA1 Message Date
Masaki Muranaka 22b032fcdf mrb_hash_delete_key(), mrb_hash_keys() : Declare as static.
mrb_check_hash_type(): Remove as no implementation.
2012-07-29 20:11:43 +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 4b9ef5dabe use no malloc in mrb_funcall; close #386 2012-07-19 17:45:13 +09:00
Yukihiro Matsumoto 8ae67d10b3 make MRB_ARENA_SIZE to be configurable 2012-07-19 11:28:06 +09:00
Masaki Muranaka f146fd0397 MRB_FUNCALL_ARGC_MAX support. (refs comments in #324). 2012-07-18 15:47:57 +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 "Matz" Matsumoto afb983e26f Merge pull request #367 from junjis0203/rename_load_string_argument_name
Rename confusable argument name
2012-07-13 21:54:44 -07:00
Junji Sawada 7bbac9cfdf Rename confusable argument name 2012-07-14 12:15:15 +09:00
Junji Sawada 96366117ea Remove unnecessary header inclusion 2012-07-14 11:39:25 +09:00
Yukihiro Matsumoto e380692224 mrb_load_xxx to return undef + mrb_undef_p 2012-07-14 07:38:43 +09:00
Yukihiro Matsumoto 8e1c842b7e simpify mruby/mrbc using context 2012-07-13 15:36:43 +09:00
Yukihiro Matsumoto 737eaea038 allow DISABLE/ENABLE_SATDIO 2012-07-13 15:00:45 +09:00
Yukihiro Matsumoto 9e64e753a2 remove double stdio.h inclusion 2012-07-12 23:59:13 +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 fc27f71289 add new function mrb_parser_free() 2012-07-03 21:52:11 +09:00
Yukihiro Matsumoto 137570acf0 capture_errors can be specified by mrbc_context 2012-07-03 21:32:37 +09:00
Yukihiro Matsumoto 39689441e7 add context arg to mrb_parser_parse() 2012-07-03 21:13:10 +09:00
Yukihiro Matsumoto 65096c4c1b add context to parser, that would hold local variable info, filename, and line number. mrbc_context argument has been added to mrb_parse_xxx() functions. Normally, you just to need to add NULL (or 0) to the last argument of the above functions. 2012-07-03 20:59:07 +09:00
Yukihiro Matsumoto ce49d90dc8 modify compiler API; replace mrb_compie_xxx with mrb_load_xxx() that combines compilatoin and execution 2012-07-03 15:26:11 +09:00
Yukihiro Matsumoto 97b1c57600 constify parser input strings 2012-07-03 14:28:19 +09:00
Yukihiro Matsumoto 3be4e91376 remove size_t from parser 2012-07-03 14:27:34 +09:00
Yukihiro Matsumoto e9d56f4ccf do not undef config macro MRB_USE_FLOAT 2012-06-28 14:37:32 +09:00
Yukihiro Matsumoto 6410cdf3bf do not undef config macros 2012-06-27 01:13:21 +09:00
Masamitsu MURASE 2a2ffe7f7d Modify Kernel#clone and Kernel#dup.
Kernel#clone, Kernel#dup:
 - 'iv' should not be shared with the original object,
   but it should be copied.

Kernel#clone:
 - 'mt' of singleton_class should be copied.
2012-06-24 16:39:08 +09:00
Yukihiro Matsumoto 1fa63930fd check object type before retrieving instance variabls; close #311 2012-06-23 10:40:17 +09:00
Yukihiro Matsumoto 766ae4ee5f dislose mrb_hash_keys; close #304 2012-06-21 16:27:16 +09:00
Yukihiro Matsumoto 396397bce1 move KHASH_DECLARE to header files 2012-06-21 11:04:36 +09:00
Yukihiro Matsumoto 7842310573 Merge branch 'modify_khash' of https://github.com/crimsonwoods/mruby into crimsonwoods-modify_khash 2012-06-21 10:01:17 +09:00
Yukihiro Matsumoto ef50e63a63 remove RuntimeError from mrb_state 2012-06-20 20:43:27 +09:00
crimsonwoods cd68190480 split declaration and definition for 'khash_xxx'. 2012-06-19 23:00:29 +09:00
Yukihiro Matsumoto ede3049f33 allow disabling Struct class 2012-06-17 23:36:34 +09:00
Yukihiro Matsumoto 76f7aecff3 use ENABLE/DISABLE instead of INCLUDE for configuration macro names 2012-06-15 15:34:49 +09:00
Yukihiro Matsumoto 8c838de4a8 Time class made optinal 2012-06-15 14:07:24 +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
Masaki Muranaka 3fb9408669 Fix redundant declraration warnings by gcc. 2012-06-14 18:28:05 +09:00
Yukihiro Matsumoto 764a791f43 make Math module optional 2012-06-14 00:59:35 +09:00
Yukihiro Matsumoto 6919ca61ed stop using strtol (via readint) except in load.c; use custom readint_float 2012-06-13 23:16:53 +09:00
Yukihiro Matsumoto db3d72a471 move RSHIFT from numeric.h to numeric.c 2012-06-13 15:40:41 +09:00
Yukihiro Matsumoto 6a5019d37f optimized OP_{ADD,SUB,MUL,DIV} to use numeric function for fixnums to handle overflow 2012-06-13 15:38:18 +09:00
Masaki Muranaka e1e4ceb3e4 Make sprintf/format optional. 2012-06-12 17:46:38 +09:00
Yukihiro Matsumoto 21304086cd remove khash#kh_debug 2012-06-12 01:41:20 +09:00
Yuichiro MASUI 5046375d51 add auxiliary data pointer to mrb_state 2012-06-08 00:59:26 +09:00
SatoshiOdawara 9ecc209ca0 memory leak in kh_resize_##name() 2012-06-07 16:03:53 +09:00
Yukihiro "Matz" Matsumoto 0816c0eba5 Merge pull request #248 from monaka/pr-use-value-i-for-nil-false-check
Use value.i for nil/false check.
2012-06-06 22:55:10 -07:00
Masaki Muranaka e0909fef44 Use value.i for nil/false check. 2012-06-07 09:34:27 +09:00