summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-07-05 10:31:49 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-07-05 10:31:49 +0900
commitd4b8fdd7a56ac17064bfcce75df25f100b4a407c (patch)
treee7256423448ca4f42f9e11f98bc8881829fd32bb /include/mruby.h
parent573c9913a1ac2760f5f5e5e91c0841465ff5b2ac (diff)
parentf6bed3aa3ae3ca7f4fd39738e41cde2245128a7d (diff)
downloadmruby-d4b8fdd7a56ac17064bfcce75df25f100b4a407c.tar.gz
mruby-d4b8fdd7a56ac17064bfcce75df25f100b4a407c.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/mruby.h b/include/mruby.h
index b602ba8c9..dd555eb8b 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -73,15 +73,15 @@ enum mrb_fiber_state {
struct mrb_context {
struct mrb_context *prev;
- mrb_value *stack;
+ mrb_value *stack; /* stack of virtual machine */
mrb_value *stbase, *stend;
mrb_callinfo *ci;
mrb_callinfo *cibase, *ciend;
- mrb_code **rescue;
+ mrb_code **rescue; /* exception handler stack */
int rsize;
- struct RProc **ensure;
+ struct RProc **ensure; /* ensure handler stack */
int esize;
uint8_t status;
@@ -97,19 +97,19 @@ enum gc_state {
typedef struct mrb_state {
void *jmp;
- mrb_allocf allocf;
+ mrb_allocf allocf; /* memory allocation function */
struct mrb_context *c;
struct mrb_context *root_c;
- struct RObject *exc;
- struct iv_tbl *globals;
- struct mrb_irep **irep;
+ struct RObject *exc; /* exception */
+ struct iv_tbl *globals; /* global variable table */
+ struct mrb_irep **irep; /* program data array */
size_t irep_len, irep_capa;
mrb_sym init_sym;
struct RObject *top_self;
- struct RClass *object_class;
+ struct RClass *object_class; /* Object class */
struct RClass *class_class;
struct RClass *module_class;
struct RClass *proc_class;
@@ -125,11 +125,11 @@ typedef struct mrb_state {
struct RClass *symbol_class;
struct RClass *kernel_module;
- struct heap_page *heaps;
+ struct heap_page *heaps; /* heaps for GC */
struct heap_page *sweeps;
struct heap_page *free_heaps;
size_t live; /* count of live objects */
- struct RBasic *arena[MRB_ARENA_SIZE];
+ struct RBasic *arena[MRB_ARENA_SIZE]; /* GC protection array */
int arena_idx;
enum gc_state gc_state; /* state of gc */