summary refs log tree commit diff
path: root/tools/lexh.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-07 23:01:24 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-10 11:05:54 -0500
commitb99a8b0d07d43b89d5e27883ee5a9a67c2645809 (patch)
tree9a3f4ebcc0bb971a7e361115b8d9b19529902cb7 /tools/lexh.c
parent8799dc30ac472545bc93957c22f070590ff44cb3 (diff)
downloadroux-b99a8b0d07d43b89d5e27883ee5a9a67c2645809.tar.gz
support variable argument lists
This change is backward compatible, calls to
"variadic" functions (like printf) must now be
annotated (with ...).
Diffstat (limited to 'tools/lexh.c')
-rw-r--r--tools/lexh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lexh.c b/tools/lexh.c
index a4ca937..db27f8f 100644
--- a/tools/lexh.c
+++ b/tools/lexh.c
@@ -22,6 +22,7 @@ char *tok[] = {
 	"ceql", "cnel", "cles", "clts", "cgts", "cges",
 	"cnes", "ceqs", "cos", "cuos", "cled", "cltd",
 	"cgtd", "cged", "cned", "ceqd", "cod", "cuod",
+	"vaarg", "vastart", "...",
 
 	"call", "phi", "jmp", "jnz", "ret", "export",
 	"function", "type", "data", "align", "l", "w",