aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/KeyWords.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-11-21 13:04:16 +0000
committernyamatongwe <unknown>2000-11-21 13:04:16 +0000
commitb06ccad8c14068ed9d3f37b5f6b4fa6e5ce3c7f9 (patch)
treea35d067bf5a9d8b47dfc3a65501398174558c58d /src/KeyWords.cxx
parente5feba81d7f1cb4bfd7de67bb617f2991085b925 (diff)
downloadscintilla-mirror-b06ccad8c14068ed9d3f37b5f6b4fa6e5ce3c7f9.tar.gz
Changes by Walter to make work on OpenVMS.
Diffstat (limited to 'src/KeyWords.cxx')
-rw-r--r--src/KeyWords.cxx44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/KeyWords.cxx b/src/KeyWords.cxx
index 113ba222d..7355580ed 100644
--- a/src/KeyWords.cxx
+++ b/src/KeyWords.cxx
@@ -43,3 +43,47 @@ void LexerModule::Colourise(unsigned int startPos, int lengthDoc, int initStyle,
styler.ColourTo(startPos + lengthDoc - 1, 0);
}
}
+
+#ifdef __vms
+
+// 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"
+// them away. (eric@sourcegear.com)
+
+// Taken from wxWindow's stc.cpp. Walter.
+
+int wxForceScintillaLexers(void) {
+ extern LexerModule lmCPP;
+ extern LexerModule lmHTML;
+ extern LexerModule lmXML;
+ extern LexerModule lmProps;
+ extern LexerModule lmErrorList;
+ extern LexerModule lmMake;
+ extern LexerModule lmBatch;
+ extern LexerModule lmPerl;
+ extern LexerModule lmPython;
+ extern LexerModule lmSQL;
+ extern LexerModule lmVB;
+
+ if (
+ &lmCPP
+ && &lmHTML
+ && &lmXML
+ && &lmProps
+ && &lmErrorList
+ && &lmMake
+ && &lmBatch
+ && &lmPerl
+ && &lmPython
+ && &lmSQL
+ && &lmVB
+ )
+ {
+ return 1;
+ }
+ else
+ {
+ return 0;
+ }
+}
+#endif