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/LexAda.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LexAda.cxx') diff --git a/src/LexAda.cxx b/src/LexAda.cxx index 91bf00ede..563fe2ba7 100644 --- a/src/LexAda.cxx +++ b/src/LexAda.cxx @@ -49,7 +49,7 @@ inline void classifyWordAda(unsigned int start, unsigned int end, } -inline bool isAdaOperator(char ch) { +static inline bool isAdaOperator(char ch) { if (ch == '&' || ch == '\'' || ch == '(' || ch == ')' || ch == '*' || ch == '+' || ch == ',' || ch == '-' || @@ -195,4 +195,4 @@ static void ColouriseAdaDoc(unsigned int startPos, int length, int initStyle, // } } -LexerModule lmAda(SCLEX_ADA, ColouriseAdaDoc, "ada"); +const LexerModule lmAda(SCLEX_ADA, ColouriseAdaDoc, "ada"); -- cgit v1.2.3