From 08ab881a480a73d6be005c4b4e1cf35814b53e3c Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 17 Oct 2020 15:22:09 +0800 Subject: +init --- src/nb_obj.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/nb_obj.h (limited to 'src/nb_obj.h') diff --git a/src/nb_obj.h b/src/nb_obj.h new file mode 100644 index 0000000..5793045 --- /dev/null +++ b/src/nb_obj.h @@ -0,0 +1,40 @@ +#ifndef NB_OBJ_H +#define NB_OBJ_H + +#define _GCHeader GCObject* next; int tt; int marked + +typedef struct { + _GCHeader; +} GCObject; + +typedef struct { + int n; +} Instruction; + + +typedef struct { + int p; + +} Proto; // º¯ÊýÔ­ÐÍ + + +typedef struct { + Proto* proto; + +} Closure; // ±Õ°ü + + +typedef struct { + _GCHeader; + +} Map; + +typedef struct { + _GCHeader; +} Hashset; + +typedef struct { + _GCHeader; +} List; + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0