From 3d49d03ca77b531c95f88e03713012116640cfb7 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 24 Dec 2019 00:42:10 +0100 Subject: DIRECTOR: LINGO: Fix clash with isspecial(3) --- engines/director/lingo/lingo-preprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/director/lingo') diff --git a/engines/director/lingo/lingo-preprocessor.cpp b/engines/director/lingo/lingo-preprocessor.cpp index c98675a5f7..bd85b8b048 100644 --- a/engines/director/lingo/lingo-preprocessor.cpp +++ b/engines/director/lingo/lingo-preprocessor.cpp @@ -25,7 +25,7 @@ namespace Director { -bool isspecial(char c) { +bool isspec(char c) { return strchr("-+*/%%^:,()><&[]", c) != NULL; } @@ -41,7 +41,7 @@ static Common::String nexttok(const char *s, const char **newP = nullptr) { while (*s && (Common::isAlnum(*s) || *s == '.')) res += *s++; } else { - while (*s && isspecial(*s)) + while (*s && isspec(*s)) res += *s++; } -- cgit v1.2.3