summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-01-10 10:36:03 +0900
committerdearblue <[email protected]>2021-01-10 13:23:35 +0900
commit16baea06771f38fea810ad1eaf3239086442c258 (patch)
treeb186bc1a7f3468edcf645dd36282434c8f171fd2 /include/mruby.h
parent58e94427377952b0953bcdf2d544c62b0fefd4a6 (diff)
downloadmruby-16baea06771f38fea810ad1eaf3239086442c258.tar.gz
mruby-16baea06771f38fea810ad1eaf3239086442c258.zip
Changes `stackent` to `stack` of `mrb_callinfo`
This enhances self-containment. Previously `mrb_context::stack` had the current call level stack, but now it owns it. The `mrb_context::stack` field, which is no longer needed, will be removed.
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 9f6dde746..3f78e66c6 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -151,7 +151,7 @@ typedef void* (*mrb_allocf) (struct mrb_state *mrb, void*, size_t, void *ud);
typedef struct {
mrb_sym mid;
const struct RProc *proc;
- mrb_value *stackent;
+ mrb_value *stack;
const mrb_code *pc; /* return address */
const mrb_code *err; /* error position */
int16_t argc;
@@ -174,8 +174,7 @@ enum mrb_fiber_state {
struct mrb_context {
struct mrb_context *prev;
- mrb_value *stack; /* stack of virtual machine */
- mrb_value *stbase, *stend;
+ mrb_value *stbase, *stend; /* stack of virtual machine */
mrb_callinfo *ci;
mrb_callinfo *cibase, *ciend;