aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index b146b46d30..0aa58439b5 100644
--- a/internal.h
+++ b/internal.h
@@ -596,6 +596,23 @@ CREF_OMOD_SHARED_UNSET(rb_cref_t *cref)
cref->flags &= ~NODE_FL_CREF_OMOD_SHARED_;
}
+/* MEMO */
+
+struct MEMO {
+ VALUE flags;
+ VALUE reserved;
+ VALUE v1;
+ VALUE v2;
+ union {
+ long cnt;
+ long state;
+ VALUE value;
+ VALUE (*func)(ANYARGS);
+ } u3;
+};
+
+#define MEMO_CAST(m) ((struct MEMO *)m)
+
struct vtm; /* defined by timev.h */
/* array.c */