Commit Graph

708 Commits

Author SHA1 Message Date
yui-knk 45305686fe Add a space aftre bracket. 2014-05-18 19:40:17 +09:00
yui-knk 0c96ba4bd8 Replace tab with spaces. 2014-05-17 00:49:08 +09:00
ksss 6a7f133d02 include/mruby/opcode.h fix operation doc
src/vm.c fix operation doc
[ci skip]
2014-05-16 20:44:54 +09:00
Yukihiro "Matz" Matsumoto f0b86f36c3 move mrb_irep_remove_lv from etc.c to mruby-bin-strip gem 2014-05-15 17:13:16 +09:00
take_cheeze 30e0dc7956 Support LVAR section removing. 2014-05-15 15:08:30 +09:00
Yukihiro "Matz" Matsumoto 2be348a0f1 mv opcode.h -> include/mruby/opcode.h and remove duplication from mruby-eval gem 2014-05-14 23:14:08 +09:00
Yukihiro "Matz" Matsumoto 9184d254e2 resize register number in LVAR section from 32bits to 16bits 2014-05-14 17:32:30 +09:00
Yukihiro "Matz" Matsumoto 7a5d8a40fe rename lv section header from LOCV to LVAR 2014-05-14 17:26:45 +09:00
Yukihiro "Matz" Matsumoto 10459a5eb2 Merge branch 'dump_lv' of https://github.com/take-cheeze/mruby into take-cheeze-dump_lv 2014-05-14 11:27:41 +09:00
Yukihiro "Matz" Matsumoto c12f64271a fix overflow error like #2244 on MRB_WORD_BOXING 2014-05-13 23:15:44 +09:00
Yukihiro "Matz" Matsumoto 190d9ebbe2 should use mrb_type() for the sake of MRB_WORD_BOXING 2014-05-13 21:47:32 +09:00
take_cheeze 208bafba2d Move Kernel#fail definition to mruby-kernel-ext mrbgem. 2014-05-07 00:01:30 +09:00
cremno cf8df563c0 add function for checked mrb_int subtraction 2014-05-05 15:28:26 +02:00
cremno 0f39304265 add function for checked mrb_int addition 2014-05-05 15:24:22 +02:00
cremno ff03cea79b temporary macros for checked arithmetic functions 2014-05-05 15:22:42 +02:00
cremno 86cfcd20d6 simply use isfinite 2014-05-04 01:50:17 +02:00
Yukihiro "Matz" Matsumoto f977772359 new macro mrb_int(mrb,x) to retrieve mrb_int from mrb_value with conversion if needed 2014-05-03 23:45:40 +09:00
Yukihiro "Matz" Matsumoto c3aa436e2c Merge branch 'values_at' of https://github.com/take-cheeze/mruby into take-cheeze-values_at 2014-05-03 21:13:03 +09:00
cremno 36eef0c222 add namespace prefix to dump_irep 2014-05-02 22:29:12 +02:00
take_cheeze 44dc05f12a Implement Struct#values_at and Array#values_at .
Add API `mrb_get_values_at()` to mruby/range.h .
2014-05-02 23:20:48 +09:00
Thiago Scalone 05df94f148 Added dump_irep in header. 2014-04-30 18:32:55 -03:00
take_cheeze 5073d14e28 Remove lv_len and use nlocals - 1 instead.
Check that `lv`'s length is always `nlocals - 1`.
2014-04-29 22:06:59 +09:00
take_cheeze 4c7f9897c2 Support local variables information dumping. 2014-04-29 20:47:50 +09:00
cremno 739b155535 remove mrb_str_offset 2014-04-29 07:13:44 +02:00
Yukihiro "Matz" Matsumoto 2ca5bed901 make cioff in struct REnv from int to ptrdiff_t; close #2149 2014-04-29 12:25:15 +09:00
Yukihiro "Matz" Matsumoto 3244ddf0c3 presreve local variables names in irep->lv 2014-04-28 07:29:37 +09:00
Yukihiro "Matz" Matsumoto c235d8f08d Merge pull request #2142 from cremno/rename-mrb_str_buf_append
rename `mrb_str_buf_append` to `mrb_str_cat_str`
2014-04-28 05:57:01 +09:00
cremno 91c22f32f4 rename mrb_str_buf_append to mrb_str_cat_str
The new name is better and less confusing, because:
  - `mrb_str_append` calls `mrb_str_to_str` and this function doesn't
  - `mrb_str_buf_append` _is_ `mrb_str_cat` for `mrb_value` strings
2014-04-27 22:33:22 +02:00
kyab 10cc4be32d Fix MSVC warnings for numeric.c 2014-04-28 03:07:28 +09:00
Yukihiro "Matz" Matsumoto c15da653b2 Merge pull request #2118 from ksss/range-bool
RRange excl flag use mrb_bool insteard of int
2014-04-26 01:30:04 +09:00
Yukihiro "Matz" Matsumoto 48f36d3f0e better integer size assertion suggested by usak 2014-04-25 04:33:08 +09:00
Yukihiro "Matz" Matsumoto 83c1399af0 eliminate plain int except for a few cases like arena_index 2014-04-25 04:01:57 +09:00
ksss f1d85c2f97 mrb_range_new excl flag use mrb_bool insteard of int 2014-04-24 13:18:57 +00:00
cremno bc23a5e9e5 remove mrb_str_buf_cat
It does the same as `mrb_str_cat`.
2014-04-21 21:28:06 +02:00
mirichi d3efe18143 do not reuse deleted entry. fixed 2014-04-20 23:10:24 +09:00
crimsonwoods 29e90d0287 Sort out the variables which belongs to 'mrb_callinfo' to improve 'cipush' performance. 2014-04-18 22:04:21 -07:00
take_cheeze d4a510f751 Add mrb_regexp_p to check whether mrb_value is Regexp. 2014-04-17 14:32:45 +09:00
take_cheeze c0eaaf3559 Move src/re.h to include/mruby/re.h . 2014-04-16 22:39:57 +09:00
Yukihiro "Matz" Matsumoto 3e00684faa resolve conflict 2014-04-16 15:18:52 +09:00
Yukihiro "Matz" Matsumoto ac5091e211 use quadratic probing in khash.h 2014-04-13 18:30:22 +09:00
Yukihiro "Matz" Matsumoto 6d6ae570cb add kh_push2() to check if entry is added 2014-04-13 18:20:37 +09:00
Yukihiro "Matz" Matsumoto 45eccd1333 khash.h: use first found k_del 2014-04-13 00:32:23 +09:00
Yukihiro "Matz" Matsumoto 92156b4619 Merge pull request #2044 from take-cheeze/const_argv
Qualify argv argument of API `const`.
2014-04-11 23:45:15 +09:00
ksss 91f68f77a8 kh_put return value should be found index 2014-04-11 21:13:43 +09:00
Takeshi Watanabe 824d3450c5 Qualify argv argument of API const. 2014-04-11 20:38:23 +09:00
ksss b6cfe0e001 Fix bug kh_put after kh_del report by @mirichi 2014-04-11 19:32:32 +09:00
take_cheeze 9f24cd6d79 Qualify mrb_yield_*'s argv const. 2014-04-10 17:34:38 +09:00
ksss 93904fee21 Refactoring for kh_put 2014-04-10 08:48:34 +09:00
Yukihiro "Matz" Matsumoto aecdafb9ce kh_put in khash.h should work when direct bucket is deleted one 2014-04-10 00:53:32 +09:00
Yukihiro "Matz" Matsumoto 8389066272 Merge pull request #2036 from ksss/assert-kh_del
add assert before write khash del flags
2014-04-10 00:16:32 +09:00