pic_callinfo -> struct pic_callinfo, pic_code -> struct pic_code

This commit is contained in:
Yuichi Nishiwaki
2016-02-21 20:18:31 +09:00
parent 5c7c5a69cf
commit 684eb6502d
9 changed files with 42 additions and 42 deletions
+8 -8
View File
@@ -21,16 +21,16 @@ struct pic_lib {
struct pic_dict *exports;
};
typedef struct {
struct pic_callinfo {
int argc, retc;
pic_code *ip;
struct pic_code *ip;
pic_value *fp;
struct pic_irep *irep;
struct pic_context *cxt;
int regc;
pic_value *regs;
struct pic_context *up;
} pic_callinfo;
};
KHASH_DECLARE(oblist, struct pic_string *, struct pic_identifier *)
KHASH_DECLARE(ltable, const char *, struct pic_lib)
@@ -46,13 +46,13 @@ struct pic_state {
pic_value *sp;
pic_value *stbase, *stend;
pic_callinfo *ci;
pic_callinfo *cibase, *ciend;
struct pic_callinfo *ci;
struct pic_callinfo *cibase, *ciend;
struct pic_proc **xp;
struct pic_proc **xpbase, **xpend;
pic_code *ip;
struct pic_code *ip;
pic_value ptable; /* list of ephemerons */
@@ -65,10 +65,10 @@ struct pic_state {
pic_value globals; /* weak */
pic_value macros; /* weak */
khash_t(ltable) ltable;
struct pic_list ireps; /* chain */
struct pic_list_head ireps; /* chain */
xFILE files[XOPEN_MAX];
pic_code iseq[2]; /* for pic_apply_trampoline */
struct pic_code iseq[2]; /* for pic_apply_trampoline */
bool gc_enable;
struct pic_heap *heap;
+6 -6
View File
@@ -52,22 +52,22 @@ enum {
OP_STOP
};
typedef struct {
struct pic_code {
int insn;
int a;
int b;
} pic_code;
};
struct pic_list {
struct pic_list *prev, *next;
struct pic_list_head {
struct pic_list_head *prev, *next;
};
struct pic_irep {
struct pic_list list;
struct pic_list_head list;
unsigned refc;
int argc, localc, capturec;
bool varg;
pic_code *code;
struct pic_code *code;
struct pic_irep **irep;
int *ints;
double *nums;