Home
cc1: Return from ctype() - scc - simple c99 compiler HTML git clone git://git.simple-cc.org/scc DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit f9c47e070844f7752b18e63197f2819ce106386c DIR parent be306281fac02e415d76081567520ffecad06adc HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Wed, 16 Oct 2024 10:50:37 +0200 cc1: Return from ctype() When an invalid case happen then we were calling error(), but we can continue the execution and return int as default type when an error happens. Diffstat: M src/cmd/cc/cc1/types.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/src/cmd/cc/cc1/types.c b/src/cmd/cc/cc1/types.c @@ -171,7 +171,8 @@ ctype(int type, int sign, int size) } invalid_type: - error("invalid type specification"); + errorp("invalid type specification"); + return inttype; } void