From dd3b70bf4c005f532733bab1bb0527ab04436f80 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 24 Jun 2016 17:59:05 +0100 Subject: [PATCH] lex: add void type --- Applications/SmallC/lex.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Applications/SmallC/lex.c b/Applications/SmallC/lex.c index a79aa829..0f14b06b 100644 --- a/Applications/SmallC/lex.c +++ b/Applications/SmallC/lex.c @@ -197,8 +197,13 @@ void blanks(void) { /** * returns declaration type * @return CCHAR, CINT, UCHAR, UINT + * + * FIXME: wants rewriting to collect property bits and base type right */ int get_type(void) { + if (amatch ("void", 4)) { + return VOID; + } if (amatch ("register", 8)) { if (amatch("char", 4)) return CCHAR; -- 2.34.1