瀏覽代碼

Eval handles Undefined and Function in switch to avoid compiler warning.

master
Ian Piumarta 2 年之前
父節點
當前提交
d9f06de063
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/ccmeta.leg

+ 4
- 1
src/ccmeta.leg 查看文件

@ -3,7 +3,7 @@
# Copyright (c) 2016-2021 Ian Piumarta and other contributors (see AUTHORS) # Copyright (c) 2016-2021 Ian Piumarta and other contributors (see AUTHORS)
# All rights reserved (see LICENSE) # 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 /* compile: leg -o ccmeta.c ccmeta.leg
@ -3357,6 +3357,9 @@ oop eval(oop scope, oop ast)
DO_C_PROTOS(); DO_C_PROTOS();
break; break;
#undef _DO #undef _DO
case t_Undefined:
case t_Function:
break;
} }
printf("EVAL "); printf("EVAL ");
println(ast); println(ast);

Loading…
取消
儲存