From f6ed5ea2102a61161051a68ba659c7eb19a4a549 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/LexLisp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LexLisp.cxx') diff --git a/src/LexLisp.cxx b/src/LexLisp.cxx index 623ca7cfa..032054100 100644 --- a/src/LexLisp.cxx +++ b/src/LexLisp.cxx @@ -21,7 +21,7 @@ #include "SciLexer.h" -inline bool isLispoperator(char ch) { +static inline bool isLispoperator(char ch) { if (isascii(ch) && isalnum(ch)) return false; if (ch == '\'' || ch == '(' || ch == ')' ) @@ -29,7 +29,7 @@ inline bool isLispoperator(char ch) { return false; } -inline bool isLispwordstart(char ch) { +static inline bool isLispwordstart(char ch) { return isascii(ch) && ch != ';' && !isspacechar(ch) && !isLispoperator(ch) && ch != '\n' && ch != '\r' && ch != '\"'; } @@ -192,4 +192,4 @@ static void FoldLispDoc(unsigned int startPos, int length, int /* initStyle */, styler.SetLevel(lineCurrent, levelPrev | flagsNext); } -LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc); +const LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc); -- cgit v1.2.3