summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/types.h b/types.h
index 85c7d73..35fe207 100644
--- a/types.h
+++ b/types.h
@@ -175,8 +175,15 @@ typedef union Value {
Slice slice;
struct Type *type;
struct Namespace *nms;
+ struct VarArg *varargs; /* dynamic array */
} Value;
+typedef struct VarArg {
+ struct Type *type;
+ Value val;
+} VarArg;
+
+
typedef enum {
IDECL_NONE,
IDECL_DECL,
@@ -425,6 +432,7 @@ typedef enum {
BUILTIN_CHAR,
BUILTIN_BOOL,
BUILTIN_TYPE,
+ BUILTIN_VARARGS,
BUILTIN_NMS
} BuiltinType;