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 | 87e59817db5e6cfd18b07f160b4b468b196072a5 (patch) | |
tree | a6759b4ddda9d665be1b2faae31d2c1721cbe94d /lexers/LexD.cxx | |
parent | 84c83f9655629911abf29a012979d94040c4c2cd (diff) | |
download | scintilla-mirror-87e59817db5e6cfd18b07f160b4b468b196072a5.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/LexD.cxx')
-rw-r--r-- | lexers/LexD.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexD.cxx b/lexers/LexD.cxx index 32e3c86ef..045c4cb73 100644 --- a/lexers/LexD.cxx +++ b/lexers/LexD.cxx @@ -41,15 +41,15 @@ using namespace Scintilla; // Underscore, letter, digit and universal alphas from C99 Appendix D. static bool IsWordStart(int ch) { - return (isascii(ch) && (isalpha(ch) || ch == '_')) || !isascii(ch); + return (IsASCII(ch) && (isalpha(ch) || ch == '_')) || !IsASCII(ch); } static bool IsWord(int ch) { - return (isascii(ch) && (isalnum(ch) || ch == '_')) || !isascii(ch); + return (IsASCII(ch) && (isalnum(ch) || ch == '_')) || !IsASCII(ch); } static bool IsDoxygen(int ch) { - if (isascii(ch) && islower(ch)) + if (IsASCII(ch) && islower(ch)) return true; if (ch == '$' || ch == '@' || ch == '\\' || ch == '&' || ch == '#' || ch == '<' || ch == '>' || @@ -267,7 +267,7 @@ void SCI_METHOD LexerD::Lex(unsigned int startPos, int length, int initStyle, ID break; case SCE_D_NUMBER: // We accept almost anything because of hex. and number suffixes - if (isascii(sc.ch) && (isalnum(sc.ch) || sc.ch == '_')) { + if (IsASCII(sc.ch) && (isalnum(sc.ch) || sc.ch == '_')) { continue; } else if (sc.ch == '.' && sc.chNext != '.' && !numFloat) { // Don't parse 0..2 as number. |