summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-05-02 21:12:55 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-05-02 21:12:55 +0000
commitf62fa4673699d84045dbd3be81b5d7b57da89c6c (patch)
tree2ae7ce6698224b7ea70a084aa4a9d4669b293ace /test
parent08d62246afa1fe553e335307be5b6fcf06ff0fed (diff)
Fixes to VisualC6 project setup
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/editor.cxx8
1 files 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