From 726fa81bf2597aa4b3d14a89915993eaa9d62908 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 6 Jun 2018 07:58:47 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lls/lls.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lls/lls.c') diff --git a/lls/lls.c b/lls/lls.c index 81d54a7..8599cfd 100644 --- a/lls/lls.c +++ b/lls/lls.c @@ -5,10 +5,11 @@ enum { VT_UNKNOWN = 0, VT_NULL, // null | | - VT_NUMBER, // number | float | + VT_REAL, // real | float | VT_STRING, // string | char* | VT_BOOLEAN, // boolean | char | - VT_SET, // set | struct | + VT_SET, // set | void* | + VT_ARRAY, // array | void* | VT_FUNCTION, // function | void* | 内存中同样的函数不会存两份 }; @@ -17,10 +18,12 @@ typedef struct int type; union { - float _number; + float _real; char* _string; char _bool; - void* _struct; + void* _set; + void* _array; + int _func; } value; } lls_Value; -- cgit v1.1-26-g67d0