summaryrefslogtreecommitdiffhomepage
path: root/src/gc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc.h')
-rw-r--r--src/gc.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gc.h b/src/gc.h
new file mode 100644
index 000000000..139580533
--- /dev/null
+++ b/src/gc.h
@@ -0,0 +1,26 @@
+#ifndef MRUBY_GC_H
+#define MRUBY_GC_H
+
+typedef struct {
+ union {
+ struct free_obj {
+ MRUBY_OBJECT_HEADER;
+ struct RBasic *next;
+ } free;
+ struct RBasic basic;
+ struct RObject object;
+ struct RClass klass;
+ struct RString string;
+ struct RArray array;
+ struct RHash hash;
+ struct RRange range;
+ struct RStruct structdata;
+ struct RProc procdata;
+#ifdef INCLUDE_REGEXP
+ struct RMatch match;
+ struct RRegexp regexp;
+#endif
+ } as;
+} RVALUE;
+
+#endif /* MRUBY_GC_H */