diff options
author | nyamatongwe <unknown> | 2002-01-07 11:02:49 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-01-07 11:02:49 +0000 |
commit | aea032e6b53c352054d992d260c24c922d7a6b43 (patch) | |
tree | 3b7dcd6bb48d962c13cf387634462da88cd83f1a /src/KeyWords.cxx | |
parent | 902f0ce46d1dfe35b48879bc5b6582e2782a0e61 (diff) | |
download | scintilla-mirror-aea032e6b53c352054d992d260c24c922d7a6b43.tar.gz |
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.
Diffstat (limited to 'src/KeyWords.cxx')
-rw-r--r-- | src/KeyWords.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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; |