aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-07-26 07:01:20 +0000
committernyamatongwe <devnull@localhost>2000-07-26 07:01:20 +0000
commit61cb031be9a4611f322ec07fe5a13fc3b551fd35 (patch)
treedda0f01839eafe8fba9182f7f52753d4fa35838a
parentb2cd27331fef78acc7aca74d4185f449879cfb73 (diff)
downloadscintilla-mirror-61cb031be9a4611f322ec07fe5a13fc3b551fd35.tar.gz
Avoided warning on GTK+ because DBCS not supported.
-rw-r--r--src/WindowAccessor.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx
index 96581ef59..5f3deac7d 100644
--- a/src/WindowAccessor.cxx
+++ b/src/WindowAccessor.cxx
@@ -18,21 +18,22 @@
WindowAccessor::~WindowAccessor() {
}
+#if PLAT_WIN
bool WindowAccessor::InternalIsLeadByte(char ch) {
-#if PLAT_GTK
- // TODO: support DBCS under GTK+
- return false;
-#elif PLAT_WIN
if (SC_CP_UTF8 == codePage)
// For lexing, all characters >= 0x80 are treated the
// same so none is considered a lead byte.
return false;
else
return IsDBCSLeadByteEx(codePage, ch);
-#elif PLAT_WX
+}
+#else
+// PLAT_GTK or PLAT_WX
+// TODO: support DBCS under GTK+ and WX
+bool WindowAccessor::InternalIsLeadByte(char) {
return false;
-#endif
}
+#endif
void WindowAccessor::Fill(int position) {
if (lenDoc == -1)