From f62fa4673699d84045dbd3be81b5d7b57da89c6c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 2 May 2010 21:12:55 +0000 Subject: [PATCH] Fixes to VisualC6 project setup git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/editor.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/editor.cxx b/test/editor.cxx index fc6f25c19..89c83913b 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -209,13 +209,13 @@ style_parse(const char *text, continue; } else if (*text == '\"') { current = 'D'; - } else if (!last && (islower(*text) || *text == '_')) { + } else if (!last && (islower((*text)&255) || *text == '_')) { // Might be a keyword... for (temp = text, bufptr = buf; - (islower(*temp) || *temp == '_') && bufptr < (buf + sizeof(buf) - 1); + (islower((*temp)&255) || *temp == '_') && bufptr < (buf + sizeof(buf) - 1); *bufptr++ = *temp++); - if (!islower(*temp) && *temp != '_') { + if (!islower((*temp)&255) && *temp != '_') { *bufptr = '\0'; bufptr = buf; @@ -284,7 +284,7 @@ style_parse(const char *text, else *style++ = current; col ++; - last = isalnum(*text) || *text == '_' || *text == '.'; + last = isalnum((*text)&255) || *text == '_' || *text == '.'; if (*text == '\n') { // Reset column and possibly reset the style