From f274156575e9eabfe011b7934d4c9a547c8270f7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 10 Nov 2010 22:15:14 +1100 Subject: Remove support for Borland C++. Use a library for the lexers with MSVC to simplify SciTE makefile. --- README | 8 ++----- lexers/LexCPP.cxx | 4 ---- src/Document.cxx | 8 ------- src/Editor.cxx | 8 ------- src/LexGen.py | 4 ++-- win32/PlatWin.cxx | 2 +- win32/ScintillaWin.cxx | 6 ++--- win32/scintilla.mak | 60 ++++++++------------------------------------------ 8 files changed, 16 insertions(+), 84 deletions(-) diff --git a/README b/README index 7690bcc96..d7efc6908 100644 --- a/README +++ b/README @@ -40,27 +40,23 @@ The current make file only supports static linking between SciTE and Scintilla. *** Windows version *** -A C++ compiler is required. Visual Studio .NET 2008 is the development system +A C++ compiler is required. Visual Studio .NET 2010 is the development system used for most development although TDM Mingw32 4.4.1 is also supported. -For older versions of Borland C++ such as version 5.02, add the -l option. To build Scintilla, make in the scintilla/win32 directory cd scintilla\win32 GCC: mingw32-make VS .NET: nmake -f scintilla.mak -VC++ 6: nmake -f scintilla_vc6.mak -Borland: make -fscintilla.mak cd ..\.. To build SciTE, use the makefiles located in the scite/win32 directory cd scite\win32 GCC: mingw32-make VS .NET: nmake -f scite.mak -Borland: make -fscite.mak An executable SciTE will now be in scite\bin. -The Visual C++ 6.0 project (.dsp) files are no longer supported but are left +The Visual C++ 6.0 project (.dsp) and make files are no longer supported but are left in the download for people that are prepared to update them. *** GTK+/Windows version *** diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index bc7bb3702..68859ec3b 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -15,10 +15,6 @@ #ifdef _MSC_VER #pragma warning(disable: 4786) #endif -#ifdef __BORLANDC__ -// Borland C++ displays warnings in vector header without this -#pragma option -w-ccc -w-rch -#endif #include #include diff --git a/src/Document.cxx b/src/Document.cxx index b70024f34..3865c6c3d 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -14,14 +14,6 @@ #include #include -// With Borland C++ 5.5, including includes Windows.h leading to defining -// FindText to FindTextA which makes calls here to Document::FindText fail. -#ifdef __BORLANDC__ -#ifdef FindText -#undef FindText -#endif -#endif - #include "Platform.h" #include "ILexer.h" diff --git a/src/Editor.cxx b/src/Editor.cxx index 0b78f8f0a..01415ec88 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -16,14 +16,6 @@ #include #include -// With Borland C++ 5.5, including includes Windows.h leading to defining -// FindText to FindTextA which makes calls here to Document::FindText fail. -#ifdef __BORLANDC__ -#ifdef FindText -#undef FindText -#endif -#endif - #include "Platform.h" #include "ILexer.h" diff --git a/src/LexGen.py b/src/LexGen.py index 5084596c6..d4ff21555 100644 --- a/src/LexGen.py +++ b/src/LexGen.py @@ -295,8 +295,8 @@ def RegenerateAll(): Regenerate(root + "scintilla/win32/scintilla.mak", "#", NATIVE, lexFiles) Regenerate(root + "scintilla/win32/scintilla_vc6.mak", "#", NATIVE, lexFiles) if os.path.exists(root + "scite"): - Regenerate(root + "scite/win32/makefile", "#", NATIVE, lexFiles, propFiles) - Regenerate(root + "scite/win32/scite.mak", "#", NATIVE, lexFiles, propFiles) + Regenerate(root + "scite/win32/makefile", "#", NATIVE, propFiles) + Regenerate(root + "scite/win32/scite.mak", "#", NATIVE, propFiles) Regenerate(root + "scite/src/SciTEProps.cxx", "//", NATIVE, lexerProperties) Regenerate(root + "scite/doc/SciTEDoc.html", "