diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-07-21 15:20:45 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-07-21 15:20:45 +1000 |
| commit | 7820ce6dcf054f033d243f972afb5fff1c5bdebe (patch) | |
| tree | 88939e49bcffe1b323ec01c490ff1adb7676b750 /lexers/LexInno.cxx | |
| parent | 95e4b3e9fe7582623adfbc9de6385a813644156e (diff) | |
| download | scintilla-mirror-7820ce6dcf054f033d243f972afb5fff1c5bdebe.tar.gz | |
Replace all instances of isascii with Scintilla-specific IsASCII.
iasascii is not part of ISO C or C++ but is a BSD extension so caused
problems when compiling in strict compliance mode.
Diffstat (limited to 'lexers/LexInno.cxx')
| -rw-r--r-- | lexers/LexInno.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexInno.cxx b/lexers/LexInno.cxx index a0f5b3271..63fadf0ba 100644 --- a/lexers/LexInno.cxx +++ b/lexers/LexInno.cxx @@ -104,7 +104,7 @@ static void ColouriseInnoDoc(unsigned int startPos, int length, int, WordList *k } else if (ch == '\'') { // Start of a single-quote string state = SCE_INNO_STRING_SINGLE; - } else if (isascii(ch) && (isalpha(ch) || (ch == '_'))) { + } else if (IsASCII(ch) && (isalpha(ch) || (ch == '_'))) { // Start of an identifier bufferCount = 0; buffer[bufferCount++] = static_cast<char>(tolower(ch)); @@ -123,7 +123,7 @@ static void ColouriseInnoDoc(unsigned int startPos, int length, int, WordList *k break; case SCE_INNO_IDENTIFIER: - if (isascii(ch) && (isalnum(ch) || (ch == '_'))) { + if (IsASCII(ch) && (isalnum(ch) || (ch == '_'))) { buffer[bufferCount++] = static_cast<char>(tolower(ch)); } else { state = SCE_INNO_DEFAULT; @@ -160,7 +160,7 @@ static void ColouriseInnoDoc(unsigned int startPos, int length, int, WordList *k } else { styler.ColourTo(i,SCE_INNO_DEFAULT); } - } else if (isascii(ch) && (isalnum(ch) || (ch == '_'))) { + } else if (IsASCII(ch) && (isalnum(ch) || (ch == '_'))) { buffer[bufferCount++] = static_cast<char>(tolower(ch)); } else { state = SCE_INNO_DEFAULT; @@ -170,7 +170,7 @@ static void ColouriseInnoDoc(unsigned int startPos, int length, int, WordList *k case SCE_INNO_PREPROC: if (isWS || isEOL) { - if (isascii(chPrev) && isalpha(chPrev)) { + if (IsASCII(chPrev) && isalpha(chPrev)) { state = SCE_INNO_DEFAULT; buffer[bufferCount] = '\0'; @@ -185,7 +185,7 @@ static void ColouriseInnoDoc(unsigned int startPos, int length, int, WordList *k chNext = styler[i--]; ch = chPrev; } - } else if (isascii(ch) && isalpha(ch)) { + } else if (IsASCII(ch) && isalpha(ch)) { if (chPrev == '#' || chPrev == ' ' || chPrev == '\t') bufferCount = 0; buffer[bufferCount++] = static_cast<char>(tolower(ch)); |
