aboutsummaryrefslogtreecommitdiff
path: root/all.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2017-02-07 23:01:24 -0500
committerQuentin Carbonneaux <[email protected]>2017-02-10 11:05:54 -0500
commitb99a8b0d07d43b89d5e27883ee5a9a67c2645809 (patch)
tree9a3f4ebcc0bb971a7e361115b8d9b19529902cb7 /all.h
parent8799dc30ac472545bc93957c22f070590ff44cb3 (diff)
support variable argument lists
This change is backward compatible, calls to "variadic" functions (like printf) must now be annotated (with ...).
Diffstat (limited to 'all.h')
-rw-r--r--all.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/all.h b/all.h
index 1ccf053..d13ef5c 100644
--- a/all.h
+++ b/all.h
@@ -256,6 +256,9 @@ enum Op {
Oalloc,
Oalloc1 = Oalloc + NAlign-1,
+ Ovastart,
+ Ovaarg,
+
Ocopy,
NPubOp,
@@ -265,6 +268,7 @@ enum Op {
Oarg,
Oargc,
Ocall,
+ Ovacall,
/* reserved instructions */
Onop,
@@ -442,6 +446,7 @@ struct Fn {
bits reg;
int slot;
char export;
+ char vararg;
char name[NString];
};