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/LexOpal.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/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; |
