From 2c7158c928c73f02f4fc448fdd96ba4f45d0ea76 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 12 Feb 2002 03:34:52 +0000 Subject: 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. --- src/LexBaan.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LexBaan.cxx') diff --git a/src/LexBaan.cxx b/src/LexBaan.cxx index a8a9d6054..9727473f9 100644 --- a/src/LexBaan.cxx +++ b/src/LexBaan.cxx @@ -21,11 +21,11 @@ #include "Scintilla.h" #include "SciLexer.h" -inline bool IsAWordChar(const int ch) { +static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch == '$' || ch == ':'); } -inline bool IsAWordStart(const int ch) { +static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } @@ -186,4 +186,4 @@ static void FoldBaanDoc(unsigned int startPos, int length, int initStyle, WordLi styler.SetLevel(lineCurrent, levelPrev | flagsNext); } -LexerModule lmBaan(SCLEX_BAAN, ColouriseBaanDoc, "baan", FoldBaanDoc); +const LexerModule lmBaan(SCLEX_BAAN, ColouriseBaanDoc, "baan", FoldBaanDoc); -- cgit v1.2.3