aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-01-07 11:02:49 +0000
committernyamatongwe <devnull@localhost>2002-01-07 11:02:49 +0000
commit468cbe34f840cb540cd60d37fba6e049128753d8 (patch)
tree3b7dcd6bb48d962c13cf387634462da88cd83f1a /src
parent553b60c13e953dbef73d068ef35a24cd940fb12b (diff)
downloadscintilla-mirror-468cbe34f840cb540cd60d37fba6e049128753d8.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')
-rw-r--r--src/KeyWords.cxx8
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;