From d9f06de0636db034bf37da27c4312b6737b3afaa Mon Sep 17 00:00:00 2001 From: Ian Piumarta Date: Wed, 22 Mar 2023 16:13:28 +0900 Subject: [PATCH] Eval handles Undefined and Function in switch to avoid compiler warning. --- src/ccmeta.leg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ccmeta.leg b/src/ccmeta.leg index 647bf85..6640d43 100644 --- a/src/ccmeta.leg +++ b/src/ccmeta.leg @@ -3,7 +3,7 @@ # Copyright (c) 2016-2021 Ian Piumarta and other contributors (see AUTHORS) # All rights reserved (see LICENSE) # -# Last edited: 2022-09-30 16:23:05 by piumarta on zora-10.local +# Last edited: 2023-03-22 16:11:40 by piumarta on zora-10.local %{ /* compile: leg -o ccmeta.c ccmeta.leg @@ -3357,6 +3357,9 @@ oop eval(oop scope, oop ast) DO_C_PROTOS(); break; #undef _DO + case t_Undefined: + case t_Function: + break; } printf("EVAL "); println(ast);