aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2010-12-17 13:15:01 +0100
committergrischka <grischka>2011-07-14 19:24:53 +0200
commit8d107d9ffd8126d82b1c56be47431a6bcef39f08 (patch)
treeba4147926a581f5e8e5418bc61393e9fb0fd336a /tcc.h
parentaa80e5b1ff9a0dedb5a41916716870345033ca30 (diff)
downloadtinycc-8d107d9ffd8126d82b1c56be47431a6bcef39f08.tar.gz
tinycc-8d107d9ffd8126d82b1c56be47431a6bcef39f08.tar.bz2
win64: va_arg with structures
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/tcc.h b/tcc.h
index 3e577aa..c2a69ca 100644
--- a/tcc.h
+++ b/tcc.h
@@ -583,14 +583,14 @@ struct TCCState {
};
/* The current value can be: */
-#define VT_VALMASK 0x00ff
-#define VT_CONST 0x00f0 /* constant in vc
+#define VT_VALMASK 0x001f
+#define VT_CONST 0x0010 /* constant in vc
(must be first non register value) */
-#define VT_LLOCAL 0x00f1 /* lvalue, offset on stack */
-#define VT_LOCAL 0x00f2 /* offset on stack */
-#define VT_CMP 0x00f3 /* the value is stored in processor flags (in vc) */
-#define VT_JMP 0x00f4 /* value is the consequence of jmp true (even) */
-#define VT_JMPI 0x00f5 /* value is the consequence of jmp false (odd) */
+#define VT_LLOCAL 0x0011 /* lvalue, offset on stack */
+#define VT_LOCAL 0x0012 /* offset on stack */
+#define VT_CMP 0x0013 /* the value is stored in processor flags (in vc) */
+#define VT_JMP 0x0014 /* value is the consequence of jmp true (even) */
+#define VT_JMPI 0x0015 /* value is the consequence of jmp false (odd) */
#define VT_LVAL 0x0100 /* var is an lvalue */
#define VT_SYM 0x0200 /* a symbol value is added */
#define VT_MUSTCAST 0x0400 /* value must be casted to be correct (used for
@@ -604,6 +604,8 @@ struct TCCState {
#define VT_LVAL_UNSIGNED 0x4000 /* lvalue is unsigned */
#define VT_LVAL_TYPE (VT_LVAL_BYTE | VT_LVAL_SHORT | VT_LVAL_UNSIGNED)
+#define VT_REF 0x0020
+
/* types */
#define VT_INT 0 /* integer type */
#define VT_BYTE 1 /* signed byte type */