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 | d47876f37be28a8946737a060c63ad573ae8ba19 (patch) | |
tree | f7c559a87208a4f6980462073a597f6296c4f235 | |
parent | b10147819c0badcc100efb0edd58c64f54369f4c (diff) | |
download | scintilla-mirror-d47876f37be28a8946737a060c63ad573ae8ba19.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) ; } |