diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-10 12:39:51 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-10 12:39:51 +0900 |
| commit | 7df31d945181d86ac9d97ed5db4a14833ee93495 (patch) | |
| tree | bbd08e32fb39fbad628b377c417cfda5fbfd2e79 /include | |
| parent | 3050630b69f7ec8aeaa5a1918275fa56e15b80f7 (diff) | |
| download | mruby-7df31d945181d86ac9d97ed5db4a14833ee93495.tar.gz mruby-7df31d945181d86ac9d97ed5db4a14833ee93495.zip | |
mruby.h: remove `acc` from `callinfo`; add `cci` instead.
`acc` was used as an index of the receiver (if positive), or a flag for
methods implemented in C. We replace `regs[ci->acc]` by `ci[1].stack[0]`.
And renamed `acc` (originally meant accumulator position) to `cci`
(means callinfo for C implemented method).
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h index c2f47a984..d82cff581 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -154,8 +154,8 @@ typedef void* (*mrb_allocf) (struct mrb_state *mrb, void*, size_t, void *ud); typedef struct { mrb_sym mid; + uint8_t cci; /* called from C function */ int16_t argc; - int16_t acc; const struct RProc *proc; mrb_value *stack; const mrb_code *pc; /* current address on iseq of this proc */ |
