From aea032e6b53c352054d992d260c24c922d7a6b43 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 7 Jan 2002 11:02:49 +0000 Subject: Changed preprocessor switch for compiling in lexer linking code to be LINK_LEXERS and if __vms is defined then LINK_LEXERS is defined. Scintilla_LinkLexers is a new name for wxForceScintillaLexers although the old name is still available. --- src/KeyWords.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/KeyWords.cxx b/src/KeyWords.cxx index b87853a19..7b0ead33f 100644 --- a/src/KeyWords.cxx +++ b/src/KeyWords.cxx @@ -98,6 +98,10 @@ static void ColouriseNullDoc(unsigned int startPos, int length, int, WordList *[ LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null"); #ifdef __vms +#define LINK_LEXERS +#endif + +#ifdef LINK_LEXERS // The following code forces a reference to all of the Scintilla lexers. // If we don't do something like this, then the linker tends to "optimize" @@ -106,6 +110,10 @@ LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null"); // Taken from wxWindow's stc.cpp. Walter. int wxForceScintillaLexers(void) { + Scintilla_LinkLexers(); +} + +int Scintilla_LinkLexers() { extern LexerModule lmAda; extern LexerModule lmAVE; extern LexerModule lmBaan; -- cgit v1.2.3