aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCPP.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-02-12 03:34:52 +0000
committernyamatongwe <unknown>2002-02-12 03:34:52 +0000
commit2c7158c928c73f02f4fc448fdd96ba4f45d0ea76 (patch)
treed1656678b1feffb7d5b8e089d5da63f74dc8ffce /src/LexCPP.cxx
parentf540bc2de8cefe784c71b3401ebaf971043546e7 (diff)
downloadscintilla-mirror-2c7158c928c73f02f4fc448fdd96ba4f45d0ea76.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.cxx12
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);