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/LexForth.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/LexForth.cxx')
-rw-r--r-- | lexers/LexForth.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lexers/LexForth.cxx b/lexers/LexForth.cxx index 0e9875ceb..c9c72624e 100644 --- a/lexers/LexForth.cxx +++ b/lexers/LexForth.cxx @@ -123,29 +123,29 @@ static void ColouriseForthDoc(unsigned int startPos, int length, int initStyle, (sc.atLineStart || IsASpaceChar(sc.chPrev)) && (sc.atLineEnd || IsASpaceChar(sc.chNext))) { sc.SetState(SCE_FORTH_COMMENT_ML); - } else if ( (sc.ch == '$' && (isascii(sc.chNext) && isxdigit(sc.chNext))) ) { + } else if ( (sc.ch == '$' && (IsASCII(sc.chNext) && isxdigit(sc.chNext))) ) { // number starting with $ is a hex number sc.SetState(SCE_FORTH_NUMBER); - while(sc.More() && isascii(sc.chNext) && isxdigit(sc.chNext)) + while(sc.More() && IsASCII(sc.chNext) && isxdigit(sc.chNext)) sc.Forward(); - } else if ( (sc.ch == '%' && (isascii(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1'))) ) { + } else if ( (sc.ch == '%' && (IsASCII(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1'))) ) { // number starting with % is binary sc.SetState(SCE_FORTH_NUMBER); - while(sc.More() && isascii(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1')) + while(sc.More() && IsASCII(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1')) sc.Forward(); - } else if ( isascii(sc.ch) && - (isxdigit(sc.ch) || ((sc.ch == '.' || sc.ch == '-') && isascii(sc.chNext) && isxdigit(sc.chNext)) ) + } else if ( IsASCII(sc.ch) && + (isxdigit(sc.ch) || ((sc.ch == '.' || sc.ch == '-') && IsASCII(sc.chNext) && isxdigit(sc.chNext)) ) ){ sc.SetState(SCE_FORTH_NUMBER); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_FORTH_IDENTIFIER); } else if (sc.ch == '{') { sc.SetState(SCE_FORTH_LOCALE); - } else if (sc.ch == ':' && isascii(sc.chNext) && isspace(sc.chNext)) { + } else if (sc.ch == ':' && IsASCII(sc.chNext) && isspace(sc.chNext)) { // highlight word definitions e.g. : GCD ( n n -- n ) ..... ; // ^ ^^^ sc.SetState(SCE_FORTH_DEFWORD); - while(sc.More() && isascii(sc.chNext) && isspace(sc.chNext)) + while(sc.More() && IsASCII(sc.chNext) && isspace(sc.chNext)) sc.Forward(); } else if (sc.ch == ';' && (sc.atLineStart || IsASpaceChar(sc.chPrev)) && |