From 3e2cb7b8a7d23227ae7b3c2061d72d446fdf1711 Mon Sep 17 00:00:00 2001 From: otya128 Date: Fri, 2 Sep 2016 16:26:27 +0900 Subject: [PATCH] =?UTF-8?q?CHKCALL,CHKLABEL=E3=81=8Ccase=20insensitive?= =?UTF-8?q?=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SMILEBASIC/builtinfunctions.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SMILEBASIC/builtinfunctions.d b/SMILEBASIC/builtinfunctions.d index e0b9e16..756c0da 100644 --- a/SMILEBASIC/builtinfunctions.d +++ b/SMILEBASIC/builtinfunctions.d @@ -1441,10 +1441,12 @@ class BuiltinFunction } static int CHKCALL(PetitComputer p, wstring func) { + func = func.toUpper; return (func in p.vm.currentSlot.functions) != null || (func in otya.smilebasic.builtinfunctions.BuiltinFunction.builtinFunctions) != null; } static int CHKLABEL(PetitComputer p, wstring label) { + label = label.toUpper; return (label in p.vm.currentSlot.globalLabel) != null; } static wstring INKEY(PetitComputer p)