diff options
| author | nyamatongwe <devnull@localhost> | 2002-02-12 03:34:52 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-02-12 03:34:52 +0000 | 
| commit | f6ed5ea2102a61161051a68ba659c7eb19a4a549 (patch) | |
| tree | d1656678b1feffb7d5b8e089d5da63f74dc8ffce /src/LexCPP.cxx | |
| parent | ddefbe59033421947f57e7d57b0a390ea821d186 (diff) | |
| download | scintilla-mirror-f6ed5ea2102a61161051a68ba659c7eb19a4a549.tar.gz | |
Made lexer objects const so they do not show up in map as static / globals.
File specific inline functions marker as static to ensure no bad linking.
Diffstat (limited to 'src/LexCPP.cxx')
| -rw-r--r-- | src/LexCPP.cxx | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index cc7827973..b76fcc70b 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -28,18 +28,18 @@ static inline bool IsAWordChar(const int ch) {  	return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_');  } -inline bool IsAWordStart(const int ch) { +static inline bool IsAWordStart(const int ch) {  	return (ch < 0x80) && (isalnum(ch) || ch == '_');  } -inline bool IsADoxygenChar(const int ch) { +static inline bool IsADoxygenChar(const int ch) {  	return (islower(ch) || ch == '$' || ch == '@' ||  		    ch == '\\' || ch == '&' || ch == '<' ||  			ch == '>' || ch == '#' || ch == '{' ||  			ch == '}' || ch == '[' || ch == ']');  } -inline bool IsStateComment(const int state) { +static inline bool IsStateComment(const int state) {  	return ((state == SCE_C_COMMENT) ||  		      (state == SCE_C_COMMENTLINE) ||  		      (state == SCE_C_COMMENTDOC) || @@ -47,7 +47,7 @@ inline bool IsStateComment(const int state) {  		      (state == SCE_C_COMMENTDOCKEYWORDERROR));  } -inline bool IsStateString(const int state) { +static inline bool IsStateString(const int state) {  	return ((state == SCE_C_STRING) || (state == SCE_C_VERBATIM));  } @@ -316,5 +316,5 @@ static void FoldCppDoc(unsigned int startPos, int length, int initStyle, WordLis  	styler.SetLevel(lineCurrent, levelPrev | flagsNext);  } -LexerModule lmCPP(SCLEX_CPP, ColouriseCppDoc, "cpp", FoldCppDoc); -LexerModule lmTCL(SCLEX_TCL, ColouriseCppDoc, "tcl", FoldCppDoc); +const LexerModule lmCPP(SCLEX_CPP, ColouriseCppDoc, "cpp", FoldCppDoc); +const LexerModule lmTCL(SCLEX_TCL, ColouriseCppDoc, "tcl", FoldCppDoc); | 
