From: Alan Cox Date: Thu, 16 Nov 2017 23:55:49 +0000 (+0000) Subject: function: allow struct * but not struct arguments X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d953a50de1e5d3b19df5548461a271b5d9d755ed;p=FUZIX.git function: allow struct * but not struct arguments --- diff --git a/Applications/SmallC/function.c b/Applications/SmallC/function.c index a4f4bd88..1ff456eb 100644 --- a/Applications/SmallC/function.c +++ b/Applications/SmallC/function.c @@ -196,6 +196,10 @@ void doLocalAnsiArgument(int type) { if (match("*")) { identity = POINTER; } else { + if (type == STRUCT) { + error("cannot pass struct"); + return; + } identity = VARIABLE; if (type == VOID) return;