diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-10-17 15:17:31 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-10-17 15:17:31 +1100 |
| commit | b1aaa4021f970951841956aa5fd19b295d1f4a65 (patch) | |
| tree | 76afeb84eb8468daa9b97afb1a3349e988bc0ee6 | |
| parent | 73b5ebfc819a9be67ad01f8ab34be19da75fc9f9 (diff) | |
| download | scintilla-mirror-b1aaa4021f970951841956aa5fd19b295d1f4a65.tar.gz | |
Avoid namespace pollution by making lexer functions static.
| -rw-r--r-- | lexers/LexFortran.cxx | 6 | ||||
| -rw-r--r-- | lexers/LexVHDL.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexFortran.cxx b/lexers/LexFortran.cxx index bfbe301a2..412d64e4e 100644 --- a/lexers/LexFortran.cxx +++ b/lexers/LexFortran.cxx @@ -38,15 +38,15 @@ static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch)); } /***************************************/ -inline bool IsABlank(unsigned int ch) { +static inline bool IsABlank(unsigned int ch) { return (ch == ' ') || (ch == 0x09) || (ch == 0x0b) ; } /***************************************/ -inline bool IsALineEnd(char ch) { +static inline bool IsALineEnd(char ch) { return ((ch == '\n') || (ch == '\r')) ; } /***************************************/ -unsigned int GetContinuedPos(unsigned int pos, Accessor &styler) { +static unsigned int GetContinuedPos(unsigned int pos, Accessor &styler) { while (!IsALineEnd(styler.SafeGetCharAt(pos++))) continue; if (styler.SafeGetCharAt(pos) == '\n') pos++; while (IsABlank(styler.SafeGetCharAt(pos++))) continue; diff --git a/lexers/LexVHDL.cxx b/lexers/LexVHDL.cxx index ee9d6628f..88d8efb27 100644 --- a/lexers/LexVHDL.cxx +++ b/lexers/LexVHDL.cxx @@ -51,7 +51,7 @@ static inline bool IsAWordStart(const int ch) { } /***************************************/ -inline bool IsABlank(unsigned int ch) { +static inline bool IsABlank(unsigned int ch) { return (ch == ' ') || (ch == 0x09) || (ch == 0x0b) ; } |
