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/LexOpal.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/LexOpal.cxx')
| -rw-r--r-- | lexers/LexOpal.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexOpal.cxx b/lexers/LexOpal.cxx index 320fe9bee..df487e63a 100644 --- a/lexers/LexOpal.cxx +++ b/lexers/LexOpal.cxx @@ -295,7 +295,7 @@ inline bool HandleInteger( unsigned int & cur, unsigned int one_too_much, Access } ch = styler.SafeGetCharAt( cur ); - if( !( isascii( ch ) && isdigit( ch ) ) ) + if( !( IsASCII( ch ) && isdigit( ch ) ) ) { styler.ColourTo( cur - 1, SCE_OPAL_INTEGER ); styler.StartSegment( cur ); @@ -314,7 +314,7 @@ inline bool HandleWord( unsigned int & cur, unsigned int one_too_much, Accessor { ch = styler.SafeGetCharAt( cur ); if( ( ch != '_' ) && ( ch != '-' ) && - !( isascii( ch ) && ( islower( ch ) || isupper( ch ) || isdigit( ch ) ) ) ) break; + !( IsASCII( ch ) && ( islower( ch ) || isupper( ch ) || isdigit( ch ) ) ) ) break; cur++; if( cur >= one_too_much ) @@ -490,13 +490,13 @@ static void ColouriseOpalDoc( unsigned int startPos, int length, int initStyle, default: { // Integer - if( isascii( ch ) && isdigit( ch ) ) + if( IsASCII( ch ) && isdigit( ch ) ) { if( !HandleInteger( cur, one_too_much, styler ) ) return; } // Keyword - else if( isascii( ch ) && ( islower( ch ) || isupper( ch ) ) ) + else if( IsASCII( ch ) && ( islower( ch ) || isupper( ch ) ) ) { if( !HandleWord( cur, one_too_much, styler, keywordlists ) ) return; |
