summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ConfigureChecks.cmake2
m---------admin0
-rw-r--r--akregator/src/akregator_part.cpp2
-rw-r--r--akregator/src/mainwindow.cpp2
-rw-r--r--akregator/src/mk4storage/metakit/README5
-rw-r--r--akregator/src/mk4storage/metakit/include/mk4.h13
-rw-r--r--akregator/src/mk4storage/metakit/src/Makefile.am2
-rw-r--r--akregator/src/mk4storage/metakit/src/borc.h33
-rw-r--r--akregator/src/mk4storage/metakit/src/fileio.cpp8
-rw-r--r--akregator/src/mk4storage/metakit/src/header.h4
-rw-r--r--akregator/src/mk4storage/metakit/src/string.cpp2
-rw-r--r--akregator/src/mk4storage/metakit/src/univ.cpp30
-rw-r--r--akregator/src/mk4storage/metakit/tests/regress.h11
-rw-r--r--akregator/src/pageviewer.cpp2
-rw-r--r--indexlib/CMakeLists.txt1
-rw-r--r--indexlib/boost-compat/config/auto_link.h43
-rw-r--r--indexlib/boost-compat/config/compiler/borland.h177
-rw-r--r--indexlib/boost-compat/config/requires_threads.h4
-rw-r--r--indexlib/boost-compat/config/select_compiler_config.h4
-rw-r--r--indexlib/boost-compat/config/stdlib/dinkumware.h6
-rw-r--r--indexlib/boost-compat/config/stdlib/roguewave.h7
-rw-r--r--indexlib/boost-compat/config/stdlib/stlport.h35
-rw-r--r--indexlib/boost-compat/config/suffix.h4
-rw-r--r--indexlib/boost-compat/intrusive_ptr.h1
-rw-r--r--indexlib/boost-compat/shared_ptr.h5
-rw-r--r--indexlib/boost-compat/weak_ptr.h1
-rw-r--r--kaddressbook/xxport/vcard_xxport.cpp17
-rw-r--r--kdgantt/KDGanttMinimizeSplitter.cpp2
-rw-r--r--kmail/CMakeLists.txt4
-rw-r--r--kmail/antispamconfig.cpp2
-rw-r--r--kmail/bodypartformatter.cpp1
-rw-r--r--kmail/configuredialog.cpp4
-rw-r--r--kmail/kmmessage.cpp8
-rw-r--r--kmail/kmmsgbase.cpp10
-rw-r--r--kmail/kmmsgpart.cpp8
-rw-r--r--kmail/kmreaderwin.cpp5
-rw-r--r--kmail/partNode.cpp1
-rw-r--r--knode/CMakeLists.txt2
-rw-r--r--knode/articlewidget.cpp4
-rw-r--r--libemailfunctions/CMakeLists.txt3
-rw-r--r--libemailfunctions/Makefile.am4
-rw-r--r--libemailfunctions/kasciistricmp.cpp47
-rw-r--r--libemailfunctions/kasciistricmp.h28
-rw-r--r--libemailfunctions/kasciistringtools.cpp62
-rw-r--r--libemailfunctions/kasciistringtools.h49
-rw-r--r--libtdepim/CMakeLists.txt4
-rw-r--r--libtdepim/ConfigureChecks.cmake12
-rw-r--r--mimelib/test/INSTALL1
-rw-r--r--tdeioslave/imap4/CMakeLists.txt2
-rw-r--r--tdeioslave/imap4/imapparser.cpp5
-rw-r--r--tderesources/groupwise/soap/stdsoap2.cpp8
-rw-r--r--tderesources/groupwise/soap/stdsoap2.h11
52 files changed, 68 insertions, 640 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 67500f427..21423943d 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -35,7 +35,6 @@ if( BUILD_INDEXLIB OR BUILD_KMAIL )
# check for stl coping with namespace std
tde_save( CMAKE_CXX_FLAGS )
- string( REGEX REPLACE "-include tqt.h" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
check_cxx_source_compiles("
#include <iterator>
struct s : public std::iterator<std::forward_iterator_tag, int> {};
@@ -149,7 +148,6 @@ if( (BUILD_LIBTDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBO
tde_save( CMAKE_CXX_FLAGS )
tde_save( CMAKE_REQUIRED_INCLUDES )
tde_save( CMAKE_REQUIRED_LIBRARIES )
- string( REGEX REPLACE "-include tqt.h" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LARGEFILES_DEFINITIONS}")
set( CMAKE_REQUIRED_INCLUDES "${GPGME_INCLUDE_DIRS}")
set( CMAKE_REQUIRED_LIBRARIES "${GPGME_LIBRARIES}")
diff --git a/admin b/admin
-Subproject 272990b269b5c72b397c6804397ad81e68c3791
+Subproject 85116532467b2bb4c73caf54c106c91a22dbe37
diff --git a/akregator/src/akregator_part.cpp b/akregator/src/akregator_part.cpp
index b69d0736c..016b60086 100644
--- a/akregator/src/akregator_part.cpp
+++ b/akregator/src/akregator_part.cpp
@@ -54,7 +54,7 @@
#include <tqstringlist.h>
#include <tqtimer.h>
#include <tqwidgetlist.h>
-#include <tqucomextra_p.h>
+#include <private/tqucomextra_p.h>
#include <cerrno>
#include <sys/types.h>
diff --git a/akregator/src/mainwindow.cpp b/akregator/src/mainwindow.cpp
index aa10eb70a..e5c138679 100644
--- a/akregator/src/mainwindow.cpp
+++ b/akregator/src/mainwindow.cpp
@@ -55,7 +55,7 @@
#include <tqmetaobject.h>
#include <tqpen.h>
#include <tqpainter.h>
-#include <tqucomextra_p.h>
+#include <private/tqucomextra_p.h>
#include <tqtimer.h>
diff --git a/akregator/src/mk4storage/metakit/README b/akregator/src/mk4storage/metakit/README
index 21edd0fc2..9441806f7 100644
--- a/akregator/src/mk4storage/metakit/README
+++ b/akregator/src/mk4storage/metakit/README
@@ -86,7 +86,7 @@ WINDOWS
There is a "win/" directory which contains subdirectories for a number of
compiler systems. Metakit has been built with many different compilers
- in the past (Microsoft, Borland, Watcom, Symantec, Metrowerks, Optima),
+ in the past (Microsoft, Watcom, Symantec, Metrowerks, Optima),
only a few are maintained (there are 12 configurations for MSVC6 alone!).
The MS Visual C++ 6.0 project is "win/msvc60/mksrc.dsw", with subprojects
@@ -103,9 +103,6 @@ WINDOWS
The core libraries are built with "mac/cw5.mcp", demos / tests are built
with "cw5apps.mcp", Tcl is "cw5tcl.mcp", and Python is "cw5python.mcp".
- The Borland C++ Builder projects have not yet been incorporated in this
- release, but the "KitViewer" application is an example of how to use BCB.
-
The Cygwin build (B20.1 / gcc 2.95.2) is different, because it uses the
unix autoconf system, and must be launched as described above for UNIX.
I have upgraded to the latest development of libtool to be able to build
diff --git a/akregator/src/mk4storage/metakit/include/mk4.h b/akregator/src/mk4storage/metakit/include/mk4.h
index 33016dba0..b6aef603c 100644
--- a/akregator/src/mk4storage/metakit/include/mk4.h
+++ b/akregator/src/mk4storage/metakit/include/mk4.h
@@ -114,19 +114,6 @@
//---------------------------------------------------------------------------
- // Borland C++ and C++ Builder
-#if defined (__BORLANDC__)
- // by default, if runtime is linked as a DLL, then so is Metakit
-#if defined (_RTLDLL) && !defined (q4_KITDLL)
-#define q4_KITDLL 1
-#endif
-
- // Borland 5.0 supports the bool datatype
-#if __BORLANDC__ >= 0x500
-#define q4_BOOL 1
-#endif
-#endif // __BORLANDC__
-
// IRIX supports the bool datatype
// define before gcc to cover both the gcc and MipsPRO compiler
#if defined (sgi)
diff --git a/akregator/src/mk4storage/metakit/src/Makefile.am b/akregator/src/mk4storage/metakit/src/Makefile.am
index e428fe930..8e6e94db6 100644
--- a/akregator/src/mk4storage/metakit/src/Makefile.am
+++ b/akregator/src/mk4storage/metakit/src/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I$(srcdir)/../include
noinst_LTLIBRARIES = libmetakitlocal.la
-noinst_HEADERS = borc.h column.h column.inl custom.h derived.h field.h field.inl format.h gnuc.h handler.h handler.inl header.h mfc.h \
+noinst_HEADERS = column.h column.inl custom.h derived.h field.h field.inl format.h gnuc.h handler.h handler.inl header.h mfc.h \
msvc.h mwcw.h persist.h remap.h std.h store.h store.inl univ.h univ.inl win.h
libmetakitlocal_la_SOURCES = column.cpp custom.cpp derived.cpp field.cpp fileio.cpp format.cpp handler.cpp persist.cpp remap.cpp std.cpp store.cpp \
diff --git a/akregator/src/mk4storage/metakit/src/borc.h b/akregator/src/mk4storage/metakit/src/borc.h
deleted file mode 100644
index 2b881fc90..000000000
--- a/akregator/src/mk4storage/metakit/src/borc.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// borc.h --
-// $Id$
-// This is part of Metakit, see http://www.equi4.com/metakit/
-
-/** @file
- * Configuration header for Borland C++
- */
-
-#define q4_BORC 1
-
- // get rid of several common warning messages
-#if !q4_STRICT
-#pragma warn -aus // 'identifier' is assigned a value that is never used
-#pragma warn -par // Parameter 'parameter' is never used.
-#pragma warn -sig // Conversion may lose significant digits
-#pragma warn -use // 'identifier' declared but never used
-#endif
-
-#if __BORLANDC__ >= 0x500
-#define q4_BOOL 1 // supports the bool datatype
- // undo previous defaults, because q4_BOOL is not set early enough
-#undef false
-#undef true
-#undef bool
-#endif
-
-#if !defined (q4_EXPORT)
-#define q4_EXPORT 1 // requires export/import specifiers
-#endif
-
-#if defined (__MT__)
-#define q4_MULTI 1 // uses multi-threading
-#endif
diff --git a/akregator/src/mk4storage/metakit/src/fileio.cpp b/akregator/src/mk4storage/metakit/src/fileio.cpp
index 28ff7dca0..3e749af80 100644
--- a/akregator/src/mk4storage/metakit/src/fileio.cpp
+++ b/akregator/src/mk4storage/metakit/src/fileio.cpp
@@ -319,7 +319,7 @@ bool c4_FileStrategy::DataOpen(const char* fname_, int mode_)
{
d4_assert(!_file);
-#if q4_WIN32 && !q4_BORC && !q4_WINCE
+#if q4_WIN32 && !q4_WINCE
int flags = _O_BINARY | _O_NOINHERIT | (mode_ > 0 ? _O_RDWR : _O_RDONLY);
int fd = _open(fname_, flags);
if (fd != -1)
@@ -330,7 +330,7 @@ bool c4_FileStrategy::DataOpen(const char* fname_, int mode_)
if (_file != 0)
fcntl(fileno(_file), F_SETFD, FD_CLOEXEC);
#endif //q4_UNIX
-#endif //q4_WIN32 && !q4_BORC && !q4_WINCE
+#endif //q4_WIN32 && !q4_WINCE
if (_file != 0) {
ResetFileMapping();
@@ -338,7 +338,7 @@ bool c4_FileStrategy::DataOpen(const char* fname_, int mode_)
}
if (mode_ > 0) {
-#if q4_WIN32 && !q4_BORC && !q4_WINCE
+#if q4_WIN32 && !q4_WINCE
fd = _open(fname_, flags | _O_CREAT, _S_IREAD | _S_IWRITE);
if (fd != -1)
_cleanup = _file = _fdopen(fd, "w+b");
@@ -348,7 +348,7 @@ bool c4_FileStrategy::DataOpen(const char* fname_, int mode_)
if (_file != 0)
fcntl(fileno(_file), F_SETFD, FD_CLOEXEC);
#endif //q4_UNIX
-#endif //q4_WIN32 && !q4_BORC && !q4_WINCE
+#endif //q4_WIN32 && !q4_WINCE
}
//d4_assert(_file != 0);
diff --git a/akregator/src/mk4storage/metakit/src/header.h b/akregator/src/mk4storage/metakit/src/header.h
index 2f8648b8f..769e34fe3 100644
--- a/akregator/src/mk4storage/metakit/src/header.h
+++ b/akregator/src/mk4storage/metakit/src/header.h
@@ -91,9 +91,7 @@
// Use '#define q4_xxx 1' to flag the choice of an IDE, and optionally also
// add '#include "file.h"' to force inclusion of a header file right here.
-#if defined (__BORLANDC__) // Borland C++
-#include "borc.h"
-#elif defined (__DECCXX) // DEC C++
+#if defined (__DECCXX) // DEC C++
#define q4_DECC 1
#elif defined (__GNUC__) // GNU C++
#include "gnuc.h"
diff --git a/akregator/src/mk4storage/metakit/src/string.cpp b/akregator/src/mk4storage/metakit/src/string.cpp
index 33c8836c8..9df22c5fb 100644
--- a/akregator/src/mk4storage/metakit/src/string.cpp
+++ b/akregator/src/mk4storage/metakit/src/string.cpp
@@ -34,7 +34,7 @@
/////////////////////////////////////////////////////////////////////////////
-#if q4_MSVC || q4_WATC || q4_BORC || (q4_MWCW && __MWERKS__ < 0x3000)
+#if q4_MSVC || q4_WATC || (q4_MWCW && __MWERKS__ < 0x3000)
#define strcasecmp stricmp
#elif q4_WINCE
diff --git a/akregator/src/mk4storage/metakit/src/univ.cpp b/akregator/src/mk4storage/metakit/src/univ.cpp
index 81a73015a..446d369d7 100644
--- a/akregator/src/mk4storage/metakit/src/univ.cpp
+++ b/akregator/src/mk4storage/metakit/src/univ.cpp
@@ -21,7 +21,7 @@
#if q4_UNIX || __MINGW32__
#define _strdup strdup
-#elif !q4_BORC && !q4_MSVC && !q4_WATC && !(q4_MWCW && defined(_WIN32)) && \
+#elif !q4_MSVC && !q4_WATC && !(q4_MWCW && defined(_WIN32)) && \
!(q4_MWCW && __MWERKS__ >= 0x3000)
static char* _strdup(const char* p)
@@ -35,34 +35,6 @@
#endif
- // The Borland C++ RTL does not want file handle objects to cross
- // DLL boundaries, so we add special fopen/fclose hooks to this DLL.
-
-#if q4_BORC
- #include <stdio.h>
-
-#if q4_WIN32
- __declspec(dllexport) FILE*
-#else
- FILE* __export
-#endif
- f4_FileOpenInDLL(const char* name_, const char* mode_)
- {
- return fopen(name_, mode_);
- }
-
-#if q4_WIN32
- __declspec(dllexport)
-#else
- int __export
-#endif
- f4_FileCloseInDLL(FILE* file_)
- {
- return fclose(file_);
- }
-
-#endif
-
/////////////////////////////////////////////////////////////////////////////
// c4_BaseArray
diff --git a/akregator/src/mk4storage/metakit/tests/regress.h b/akregator/src/mk4storage/metakit/tests/regress.h
index b5611e574..1574bc0d4 100644
--- a/akregator/src/mk4storage/metakit/tests/regress.h
+++ b/akregator/src/mk4storage/metakit/tests/regress.h
@@ -132,14 +132,3 @@ extern void TestStores2();
extern void TestStores3();
extern void TestStores4();
extern void TestStores5();
-
- // The Borland C++ RTL does not want file handle objects to cross
- // DLL boundaries, so we use special fopen/fclose hooks in the DLL.
-
-#if defined (__BORLANDC__) // this assumes Metakit is in a DLL!
-extern FILE* f4_FileOpenInDLL(const char*, const char*);
-extern int f4_FileCloseInDLL(FILE*);
-
-#define fopen f4_FileOpenInDLL
-#define fclose f4_FileCloseInDLL
-#endif
diff --git a/akregator/src/pageviewer.cpp b/akregator/src/pageviewer.cpp
index 1962824f4..dfa5de64f 100644
--- a/akregator/src/pageviewer.cpp
+++ b/akregator/src/pageviewer.cpp
@@ -53,7 +53,7 @@
#include <tqscrollview.h>
#include <tqstring.h>
#include <tqvaluelist.h>
-#include <tqucomextra_p.h>
+#include <private/tqucomextra_p.h>
#include <cstdlib>
using std::abs;
diff --git a/indexlib/CMakeLists.txt b/indexlib/CMakeLists.txt
index f89e4f1a4..6f5a42e56 100644
--- a/indexlib/CMakeLists.txt
+++ b/indexlib/CMakeLists.txt
@@ -13,7 +13,6 @@ project( indexlib )
include( ConfigureChecks.cmake )
-string( REPLACE "-include tqt.h" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include compat.h ${USE_EXCEPTIONS}" )
include_directories(
diff --git a/indexlib/boost-compat/config/auto_link.h b/indexlib/boost-compat/config/auto_link.h
index c6d9bc909..96ada7aa8 100644
--- a/indexlib/boost-compat/config/auto_link.h
+++ b/indexlib/boost-compat/config/auto_link.h
@@ -7,7 +7,7 @@
* LOCATION: see http://www.boost.org for most recent version.
* FILE auto_link.h
* VERSION see <boost/version.hpp>
- * DESCRIPTION: Automatic library inclusion for Borland/Microsoft compilers.
+ * DESCRIPTION: Automatic library inclusion for Microsoft compilers.
*/
/*************************************************************************
@@ -29,7 +29,7 @@ has no include guards - so be sure to include it only once from your library!
Algorithm:
~~~~~~~~~~
-Libraries for Borland and Microsoft compilers are automatically
+Libraries for Microsoft compilers are automatically
selected here, the name of the lib is selected according to the following
formula:
@@ -82,7 +82,6 @@ BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y.
// Only include what follows for known and supported compilers:
//
#if defined(BOOST_MSVC) \
- || defined(__BORLANDC__) \
|| (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \
|| (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200))
@@ -125,11 +124,6 @@ BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y.
// vc80:
# define BOOST_LIB_TOOLSET "vc80"
-#elif defined(__BORLANDC__)
-
- // CBuilder 6:
-# define BOOST_LIB_TOOLSET "bcb"
-
#elif defined(__ICL)
// Intel C++, no version number:
@@ -232,37 +226,6 @@ BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y.
# endif
-#elif defined(__BORLANDC__)
-
-//
-// figure out whether we want the debug builds or not:
-//
-#pragma defineonoption BOOST_BORLAND_DEBUG -v
-//
-// sanity check:
-//
-#if defined(__STL_DEBUG) || defined(_STLP_DEBUG)
-#error "Pre-built versions of the Boost libraries are not provided in STLPort-debug form"
-#endif
-
-# ifdef _RTLDLL
-
-# ifdef BOOST_BORLAND_DEBUG
-# define BOOST_LIB_RT_OPT "-d"
-# else
-# define BOOST_LIB_RT_OPT
-# endif
-
-# else
-
-# ifdef BOOST_BORLAND_DEBUG
-# define BOOST_LIB_RT_OPT "-sd"
-# else
-# define BOOST_LIB_RT_OPT "-s"
-# endif
-
-# endif
-
#endif
//
@@ -296,7 +259,7 @@ BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y.
#endif
-#endif // _MSC_VER || __BORLANDC__
+#endif // _MSC_VER
//
// finally undef any macros we may have set:
diff --git a/indexlib/boost-compat/config/compiler/borland.h b/indexlib/boost-compat/config/compiler/borland.h
deleted file mode 100644
index 531691eff..000000000
--- a/indexlib/boost-compat/config/compiler/borland.h
+++ /dev/null
@@ -1,177 +0,0 @@
-// (C) Copyright John Maddock 2001 - 2003.
-// (C) Copyright David Abrahams 2002 - 2003.
-// (C) Copyright Aleksey Gurtovoy 2002.
-// Use, modification and distribution are subject to the
-// Boost Software License, Version 1.0. (See accompanying file
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-// See http://www.boost.org for most recent version.
-
-// Borland C++ compiler setup:
-
-// Version 5.0 and below:
-# if __BORLANDC__ <= 0x0550
-// Borland C++Builder 4 and 5:
-# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
-# if __BORLANDC__ == 0x0550
-// Borland C++Builder 5, command-line compiler 5.5:
-# define BOOST_NO_OPERATORS_IN_NAMESPACE
-# endif
-# endif
-
-// Version 5.51 and below:
-#if (__BORLANDC__ <= 0x551)
-# define BOOST_NO_CV_SPECIALIZATIONS
-# define BOOST_NO_CV_VOID_SPECIALIZATIONS
-# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
-# define BOOST_NO_DEDUCED_TYPENAME
-// workaround for missing WCHAR_MAX/WCHAR_MIN:
-#include <climits>
-#include <cwchar>
-#ifndef WCHAR_MAX
-# define WCHAR_MAX 0xffff
-#endif
-#ifndef WCHAR_MIN
-# define WCHAR_MIN 0
-#endif
-#endif
-
-#if (__BORLANDC__ <= 0x564)
-# define BOOST_NO_SFINAE
-#endif
-
-// Version 7.0 (Kylix) and below:
-#if (__BORLANDC__ <= 0x570)
-# define BOOST_NO_INTEGRAL_INT64_T
-# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
-# define BOOST_NO_PRIVATE_IN_AGGREGATE
-# define BOOST_NO_USING_TEMPLATE
-# define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG
-# define BOOST_NO_TEMPLATE_TEMPLATES
-# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
-# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
- // we shouldn't really need this - but too many things choke
- // without it, this needs more investigation:
-# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
-# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
-# ifdef NDEBUG
- // fix broken <cstring> so that Boost.test works:
-# include <cstring>
-# undef strcmp
-# endif
-
-//
-// new bug in 5.61:
-#if (__BORLANDC__ >= 0x561) && (__BORLANDC__ <= 0x570)
- // this seems to be needed by the command line compiler, but not the IDE:
-# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
-#endif
-
-# ifdef _WIN32
-# define BOOST_NO_SWPRINTF
-# elif defined(linux) || defined(__linux__) || defined(__linux)
- // we should really be able to do without this
- // but the wcs* functions aren't imported into std::
-# define BOOST_NO_STDC_NAMESPACE
- // _CPPUNWIND doesn't get automatically set for some reason:
-# pragma defineonoption BOOST_CPPUNWIND -x
-# endif
-#endif
-
-//
-// Post 0x561 we have long long and stdint.h:
-#if __BORLANDC__ >= 0x561
-# ifndef __NO_LONG_LONG
-# define BOOST_HAS_LONG_LONG
-# endif
- // On non-Win32 platforms let the platform config figure this out:
-# ifdef _WIN32
-# define BOOST_HAS_STDINT_H
-# endif
-#endif
-
-// Borland C++Builder 6 defaults to using STLPort. If _USE_OLD_RW_STL is
-// defined, then we have 0x560 or greater with the Rogue Wave implementation
-// which presumably has the std::DBL_MAX bug.
-#if ((__BORLANDC__ >= 0x550) && (__BORLANDC__ < 0x560)) || defined(_USE_OLD_RW_STL)
-// <climits> is partly broken, some macros define symbols that are really in
-// namespace std, so you end up having to use illegal constructs like
-// std::DBL_MAX, as a fix we'll just include float.h and have done with:
-#include <float.h>
-#endif
-//
-// __int64:
-//
-#if (__BORLANDC__ >= 0x530) && !defined(__STRICT_ANSI__)
-# define BOOST_HAS_MS_INT64
-#endif
-//
-// check for exception handling support:
-//
-#if !defined(_CPPUNWIND) && !defined(BOOST_CPPUNWIND) && !defined(__EXCEPTIONS)
-# define BOOST_NO_EXCEPTIONS
-#endif
-//
-// all versions have a <dirent.h>:
-//
-#ifndef __STRICT_ANSI__
-# define BOOST_HAS_DIRENT_H
-#endif
-//
-// all versions support __declspec:
-//
-#ifndef __STRICT_ANSI__
-# define BOOST_HAS_DECLSPEC
-#endif
-//
-// ABI fixing headers:
-//
-#if __BORLANDC__ < 0x600 // not implemented for version 6 compiler yet
-#ifndef BOOST_ABI_PREFIX
-# define BOOST_ABI_PREFIX "boost/config/abi/borland_prefix.hpp"
-#endif
-#ifndef BOOST_ABI_SUFFIX
-# define BOOST_ABI_SUFFIX "boost/config/abi/borland_suffix.hpp"
-#endif
-#endif
-//
-// Disable Win32 support in ANSI mode:
-//
-#if __BORLANDC__ < 0x600
-# pragma defineonoption BOOST_DISABLE_WIN32 -A
-#elif defined(__STRICT_ANSI__)
-# define BOOST_DISABLE_WIN32
-#endif
-//
-// MSVC compatibility mode does some nasty things:
-//
-#if defined(_MSC_VER) && (_MSC_VER <= 1200)
-# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
-# define BOOST_NO_VOID_RETURNS
-#endif
-
-#define BOOST_COMPILER "Borland C++ version " BOOST_STRINGIZE(__BORLANDC__)
-
-//
-// versions check:
-// we don't support Borland prior to version 5.4:
-#if __BORLANDC__ < 0x540
-# error "Compiler not supported or configured - please reconfigure"
-#endif
-//
-// last known and checked version is 1536 (Builder X preview):
-#if (__BORLANDC__ > 1536)
-# if defined(BOOST_ASSERT_CONFIG)
-# error "Unknown compiler version - please run the configure tests and report the results"
-# else
-# pragma message( "Unknown compiler version - please run the configure tests and report the results")
-# endif
-#endif
-
-
-
-
-
-
-
-
diff --git a/indexlib/boost-compat/config/requires_threads.h b/indexlib/boost-compat/config/requires_threads.h
index 03259ae93..cc5b049c5 100644
--- a/indexlib/boost-compat/config/requires_threads.h
+++ b/indexlib/boost-compat/config/requires_threads.h
@@ -54,10 +54,6 @@
// Compaq Tru64 Unix cxx
# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread"
-#elif defined __BORLANDC__
-// Borland
-# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -tWM"
-
#elif defined __MWERKS__
// Metrowerks CodeWarrior
# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either -runtime sm, -runtime smd, -runtime dm, or -runtime dmd"
diff --git a/indexlib/boost-compat/config/select_compiler_config.h b/indexlib/boost-compat/config/select_compiler_config.h
index 3453f1a35..f3c28043b 100644
--- a/indexlib/boost-compat/config/select_compiler_config.h
+++ b/indexlib/boost-compat/config/select_compiler_config.h
@@ -44,10 +44,6 @@
// Greenhills C++
# define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
-#elif defined __BORLANDC__
-// Borland
-# define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
-
#elif defined __MWERKS__
// Metrowerks CodeWarrior
# define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
diff --git a/indexlib/boost-compat/config/stdlib/dinkumware.h b/indexlib/boost-compat/config/stdlib/dinkumware.h
index aa214fc1b..a3c4f091b 100644
--- a/indexlib/boost-compat/config/stdlib/dinkumware.h
+++ b/indexlib/boost-compat/config/stdlib/dinkumware.h
@@ -22,7 +22,7 @@
#if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
// full dinkumware 3.06 and above
// fully conforming provided the compiler supports it:
-# if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(__BORLANDC__) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h
+# if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h
# define BOOST_NO_STDC_NAMESPACE
# endif
# if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC)
@@ -66,12 +66,12 @@
// the same applies to other compilers that sit on top
// of vc7.1 (Intel and Comeau):
//
-#if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(__BORLANDC__)
+#if defined(_MSC_VER) && (_MSC_VER >= 1310)
# define BOOST_STD_EXTENSION_NAMESPACE stdext
#endif
-#if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(__BORLANDC__)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306)
+#if (defined(_MSC_VER) && (_MSC_VER <= 1300)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306)
// if we're using a dinkum lib that's
// been configured for VC6/7 then there is
// no iterator traits (true even for icl)
diff --git a/indexlib/boost-compat/config/stdlib/roguewave.h b/indexlib/boost-compat/config/stdlib/roguewave.h
index 452b8421f..2e116ff19 100644
--- a/indexlib/boost-compat/config/stdlib/roguewave.h
+++ b/indexlib/boost-compat/config/stdlib/roguewave.h
@@ -48,13 +48,6 @@
# endif
//
-// Borland version of numeric_limits lacks __int64 specialisation:
-//
-#ifdef __BORLANDC__
-# define BOOST_NO_MS_INT64_NUMERIC_LIMITS
-#endif
-
-//
// No std::iterator if it can't figure out default template args:
//
#if defined(_RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || defined(RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || (BOOST_RWSTD_VER < 0x020000)
diff --git a/indexlib/boost-compat/config/stdlib/stlport.h b/indexlib/boost-compat/config/stdlib/stlport.h
index 4843ea59b..8bc5c1d02 100644
--- a/indexlib/boost-compat/config/stdlib/stlport.h
+++ b/indexlib/boost-compat/config/stdlib/stlport.h
@@ -52,11 +52,11 @@
// then the io stream facets are not available in namespace std::
//
#ifdef _STLPORT_VERSION
-# if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
+# if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
# define BOOST_NO_STD_LOCALE
# endif
#else
-# if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
+# if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
# define BOOST_NO_STD_LOCALE
# endif
#endif
@@ -106,13 +106,7 @@
// but doesn't always get them all, define BOOST_NO_STDC_NAMESPACE, since our
// workaround does not conflict with STLports:
//
-//
-// Harold Howe says:
-// Borland switched to STLport in BCB6. Defining BOOST_NO_STDC_NAMESPACE with
-// BCB6 does cause problems. If we detect C++ Builder, then don't define
-// BOOST_NO_STDC_NAMESPACE
-//
-#if !defined(__BORLANDC__) && !defined(__DMC__)
+#if !defined(__DMC__)
//
// If STLport is using it's own namespace, and the real names are in
// the global namespace, then we duplicate STLport's using declarations
@@ -127,21 +121,6 @@
# define BOOST_NO_STDC_NAMESPACE
# define BOOST_NO_EXCEPTION_STD_NAMESPACE
# endif
-#elif defined(__BORLANDC__) && __BORLANDC__ < 0x560
-// STLport doesn't import std::abs correctly:
-#include <stdlib.h>
-namespace std { using ::abs; }
-// and strcmp/strcpy don't get imported either ('cos they are macros)
-#include <string.h>
-#ifdef strcpy
-# undef strcpy
-#endif
-#ifdef strcmp
-# undef strcmp
-#endif
-#ifdef _STLP_VENDOR_CSTD
-namespace std{ using _STLP_VENDOR_CSTD::strcmp; using _STLP_VENDOR_CSTD::strcpy; }
-#endif
#endif
//
@@ -173,14 +152,6 @@ namespace std{ using _STLP_VENDOR_CSTD::strcmp; using _STLP_VENDOR_CSTD::strcpy;
#endif
//
-// Borland ships a version of STLport with C++ Builder 6 that lacks
-// hashtables and the like:
-//
-#if defined(__BORLANDC__) && (__BORLANDC__ == 0x560)
-# undef BOOST_HAS_HASH
-#endif
-
-//
// gcc-2.95.3/STLPort does not like the using declarations we use to get ADL with std::min/max
//
#if defined(__GNUC__) && (__GNUC__ < 3)
diff --git a/indexlib/boost-compat/config/suffix.h b/indexlib/boost-compat/config/suffix.h
index 313faea9b..db64f87ac 100644
--- a/indexlib/boost-compat/config/suffix.h
+++ b/indexlib/boost-compat/config/suffix.h
@@ -31,8 +31,8 @@
// no namespace issues from this.
//
#include <limits.h>
-# if !defined(BOOST_HAS_LONG_LONG) \
- && !(defined(BOOST_MSVC) && BOOST_MSVC <=1300) && !defined(__BORLANDC__) \
+# if !defined(BOOST_HAS_LONG_LONG) \
+ && !(defined(BOOST_MSVC) && BOOST_MSVC <=1300) \
&& (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX))
# define BOOST_HAS_LONG_LONG
#endif
diff --git a/indexlib/boost-compat/intrusive_ptr.h b/indexlib/boost-compat/intrusive_ptr.h
index 39b4b7b24..a8b5b2e35 100644
--- a/indexlib/boost-compat/intrusive_ptr.h
+++ b/indexlib/boost-compat/intrusive_ptr.h
@@ -146,7 +146,6 @@ public:
#endif
- // operator! is a Borland-specific workaround
bool operator! () const
{
return p_ == 0;
diff --git a/indexlib/boost-compat/shared_ptr.h b/indexlib/boost-compat/shared_ptr.h
index a242c8299..a37976fa9 100644
--- a/indexlib/boost-compat/shared_ptr.h
+++ b/indexlib/boost-compat/shared_ptr.h
@@ -106,7 +106,6 @@ template<class T> class shared_ptr
{
private:
- // Borland 5.5.1 specific workaround
typedef shared_ptr<T> this_type;
public:
@@ -139,8 +138,8 @@ public:
// generated copy constructor, assignment, destructor are fine...
-// except that Borland C++ has a bug, and g++ with -Wsynth warns
-#if defined(__BORLANDC__) || defined(__GNUC__)
+// except that g++ with -Wsynth warns
+#if defined(__GNUC__)
shared_ptr & operator=(shared_ptr const & r) // never throws
{
diff --git a/indexlib/boost-compat/weak_ptr.h b/indexlib/boost-compat/weak_ptr.h
index 338e52213..56d7ad6b6 100644
--- a/indexlib/boost-compat/weak_ptr.h
+++ b/indexlib/boost-compat/weak_ptr.h
@@ -27,7 +27,6 @@ template<class T> class weak_ptr
{
private:
- // Borland 5.5.1 specific workarounds
typedef weak_ptr<T> this_type;
public:
diff --git a/kaddressbook/xxport/vcard_xxport.cpp b/kaddressbook/xxport/vcard_xxport.cpp
index 293879cc5..6c09db006 100644
--- a/kaddressbook/xxport/vcard_xxport.cpp
+++ b/kaddressbook/xxport/vcard_xxport.cpp
@@ -239,9 +239,22 @@ TDEABC::AddresseeList VCardXXPort::importContacts( const TQString& ) const
// With version 3.0, vCards are encoded with UTF-8 by default. Otherwise, use fromLatin1()
// and hope that are fields are encoded correctly.
- if ( TQString::fromLatin1( rawData ).lower().contains( "version:3.0" ) ) {
+ bool useUtf8;
+ TQString tmp = TQString::fromLatin1(rawData).lower();
+ int ver = tmp.find("version:");
+ if (ver == -1) {
+ // no version info, assume utf8
+ useUtf8 = true;
+ }
+ else {
+ float vCardVersion = tmp.mid(ver + 8, tmp.find("\n", ver)).toFloat();
+ useUtf8 = (vCardVersion >= 3.0);
+ }
+
+ if (useUtf8) {
vCardText = TQString::fromUtf8( rawData );
- } else {
+ }
+ else {
vCardText = TQString::fromLatin1( rawData );
}
addrList += parseVCard( vCardText );
diff --git a/kdgantt/KDGanttMinimizeSplitter.cpp b/kdgantt/KDGanttMinimizeSplitter.cpp
index 2339d1ce5..3a9ed1a03 100644
--- a/kdgantt/KDGanttMinimizeSplitter.cpp
+++ b/kdgantt/KDGanttMinimizeSplitter.cpp
@@ -40,7 +40,7 @@
#include "tqptrlist.h"
#include "tqmemarray.h"
#include "tqlayout.h"
-#include "tqlayoutengine_p.h"
+#include "private/tqlayoutengine_p.h"
#include "tqobjectlist.h"
#include "tqstyle.h"
#include "tqapplication.h" //sendPostedEvents
diff --git a/kmail/CMakeLists.txt b/kmail/CMakeLists.txt
index daa365ec2..9d503d31a 100644
--- a/kmail/CMakeLists.txt
+++ b/kmail/CMakeLists.txt
@@ -212,8 +212,8 @@ add_custom_target( kmail_settings_base
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
LINK
- emailfunctions-static kmime-shared kpgp-shared tdepim-shared kpimidentities-shared
- mimelib-shared ksieve-shared tdehtml-shared ${INDEX_LIBRARY}
+ kmime-shared kpgp-shared tdepim-shared kpimidentities-shared
+ mimelib-shared ksieve-shared tdecore-shared tdehtml-shared ${INDEX_LIBRARY}
DESTINATION ${LIB_INSTALL_DIR}
DEPENDENCIES kmail_settings_base
)
diff --git a/kmail/antispamconfig.cpp b/kmail/antispamconfig.cpp
index f187dcd6c..e0dbb5bfb 100644
--- a/kmail/antispamconfig.cpp
+++ b/kmail/antispamconfig.cpp
@@ -33,8 +33,6 @@
#include "antispamconfig.h"
-#include <kasciistricmp.h>
-
#include <kstaticdeleter.h>
#include <tdeconfig.h>
diff --git a/kmail/bodypartformatter.cpp b/kmail/bodypartformatter.cpp
index 8435ef25e..3ee62d970 100644
--- a/kmail/bodypartformatter.cpp
+++ b/kmail/bodypartformatter.cpp
@@ -46,7 +46,6 @@
#include <mimelib/utility.h>
#include <kdebug.h>
-#include <kasciistricmp.h>
namespace {
class AnyTypeBodyPartFormatter
diff --git a/kmail/configuredialog.cpp b/kmail/configuredialog.cpp
index c0beb0fdb..2c5830abd 100644
--- a/kmail/configuredialog.cpp
+++ b/kmail/configuredialog.cpp
@@ -85,7 +85,6 @@ using KMime::DateFormatter;
#include <tdelocale.h>
#include <tdeapplication.h>
#include <kcharsets.h>
-#include <kasciistringtools.h>
#include <kdebug.h>
#include <knuminput.h>
#include <tdefontdialog.h>
@@ -117,6 +116,7 @@ using KMime::DateFormatter;
#include <tqlayout.h>
#include <tqcheckbox.h>
#include <tqwidgetstack.h>
+#include <tqglobal.h>
// other headers:
#include <assert.h>
@@ -3327,7 +3327,7 @@ void ComposerPage::CharsetTab::doLoadOther() {
it != charsets.end() ; ++it )
if ( (*it) == TQString::fromLatin1("locale") ) {
TQCString cset = kmkernel->networkCodec()->mimeName();
- KPIM::kAsciiToLower( cset.data() );
+ kasciitolower( cset.data() );
(*it) = TQString("%1 (locale)").arg( TQString(cset) );
}
diff --git a/kmail/kmmessage.cpp b/kmail/kmmessage.cpp
index f9a7f3888..b12ae65cd 100644
--- a/kmail/kmmessage.cpp
+++ b/kmail/kmmessage.cpp
@@ -28,19 +28,17 @@ using KMail::HeaderStrategy;
#include <libkpimidentities/identitymanager.h>
#include <libemailfunctions/email.h>
-#include <kasciistringtools.h>
-
#include <kpgpblock.h>
#include <kaddrbook.h>
#include <tdeapplication.h>
+#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <kdebug.h>
#include <tdeconfig.h>
#include <tdehtml_part.h>
#include <kuser.h>
#include <kidna.h>
-#include <kasciistricmp.h>
#include <tqcursor.h>
#include <tqtextcodec.h>
@@ -4083,7 +4081,7 @@ TQCString KMMessage::defaultCharset()
if (retval.isEmpty() || (retval == "locale")) {
retval = TQCString(kmkernel->networkCodec()->mimeName());
- KPIM::kAsciiToLower( retval.data() );
+ kasciitolower( retval.data() );
}
if (retval == "jisx0208.1983-0") retval = "iso-2022-jp";
@@ -4145,7 +4143,7 @@ void KMMessage::setCharset( const TQCString &charset, DwEntity *entity )
mType.SetModified();
TQCString lowerCharset = charset;
- KPIM::kAsciiToLower( lowerCharset.data() );
+ kasciitolower( lowerCharset.data() );
param->SetValue( DwString( lowerCharset ) );
mType.Assemble();
}
diff --git a/kmail/kmmsgbase.cpp b/kmail/kmmsgbase.cpp
index abf1ade72..61952a00e 100644
--- a/kmail/kmmsgbase.cpp
+++ b/kmail/kmmsgbase.cpp
@@ -15,13 +15,13 @@ using KMail::MessageProperty;
#include <kdebug.h>
#include <tdeglobal.h>
#include <kcharsets.h>
-#include <kasciistringtools.h>
#include <kmdcodec.h>
#include <krfcdate.h>
#include <mimelib/mimepp.h>
#include <kmime_codecs.h>
+#include <tqglobal.h>
#include <tqtextcodec.h>
#include <tqdeepcopy.h>
#include <tqregexp.h>
@@ -575,7 +575,7 @@ const TQTextCodec* KMMsgBase::codecForName(const TQCString& _str)
{
if (_str.isEmpty()) return 0;
TQCString codec = _str;
- KPIM::kAsciiToLower(codec.data());
+ kasciitolower(codec.data());
return TDEGlobal::charsets()->codecForName(codec);
}
@@ -790,7 +790,7 @@ TQCString KMMsgBase::encodeRFC2047String(const TQString& _str,
if (charset.isEmpty())
{
cset = kmkernel->networkCodec()->mimeName();
- KPIM::kAsciiToLower(cset.data());
+ kasciitolower(cset.data());
}
else cset = charset;
@@ -881,7 +881,7 @@ TQCString KMMsgBase::encodeRFC2231String( const TQString& _str,
if ( charset.isEmpty() )
{
cset = kmkernel->networkCodec()->mimeName();
- KPIM::kAsciiToLower( cset.data() );
+ kasciitolower( cset.data() );
}
else
cset = charset;
@@ -1049,7 +1049,7 @@ TQCString KMMsgBase::autoDetectCharset(const TQCString &_encoding, const TQStrin
if (encoding == "locale")
{
encoding = kmkernel->networkCodec()->mimeName();
- KPIM::kAsciiToLower(encoding.data());
+ kasciitolower(encoding.data());
}
if (text.isEmpty())
return encoding;
diff --git a/kmail/kmmsgpart.cpp b/kmail/kmmsgpart.cpp
index 596828e28..c7fa30d89 100644
--- a/kmail/kmmsgpart.cpp
+++ b/kmail/kmmsgpart.cpp
@@ -12,7 +12,6 @@
#include "globalsettings.h"
#include "util.h"
-#include <kasciistringtools.h>
#include <kmime_charfreq.h>
#include <kmime_codecs.h>
#include <mimelib/enum.h>
@@ -21,6 +20,7 @@
#include <kiconloader.h>
#include <tqtextcodec.h>
+#include <tqglobal.h>
#include <assert.h>
@@ -41,8 +41,8 @@ KMMessagePart::KMMessagePart( TQDataStream & stream )
stream >> mOriginalContentTypeStr >> mName >> mContentDescription
>> mContentDisposition >> mCte >> size >> mPartSpecifier;
- KPIM::kAsciiToLower( mContentDisposition.data() );
- KPIM::kAsciiToUpper( mOriginalContentTypeStr.data() );
+ kasciitolower( mContentDisposition.data() );
+ kasciitoupper( mOriginalContentTypeStr.data() );
// set the type
int sep = mOriginalContentTypeStr.find('/');
@@ -435,7 +435,7 @@ void KMMessagePart::magicSetType(bool aAutoDecode)
TQString KMMessagePart::iconName( int size ) const
{
TQCString mimeType( mType + "/" + mSubtype );
- KPIM::kAsciiToLower( mimeType.data() );
+ kasciitolower( mimeType.data() );
TQString fileName =
KMimeType::mimeType( mimeType )->icon( TQString(), false );
diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp
index 8ada99f40..566298b99 100644
--- a/kmail/kmreaderwin.cpp
+++ b/kmail/kmreaderwin.cpp
@@ -64,7 +64,6 @@ using KMail::FileHtmlWriter;
using KMail::TeeHtmlWriter;
#endif
-#include <kasciistringtools.h>
#include <kstringhandler.h>
#include <mimelib/mimepp.h>
@@ -99,6 +98,7 @@ using KMail::TeeHtmlWriter;
#include <tdefiledialog.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
+#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <krun.h>
#include <tdetempfile.h>
@@ -107,7 +107,6 @@ using KMail::TeeHtmlWriter;
#include <tdeaction.h>
#include <kiconloader.h>
#include <kmdcodec.h>
-#include <kasciistricmp.h>
#include <kurldrag.h>
#include <tqclipboard.h>
@@ -2350,7 +2349,7 @@ void KMReaderWin::openAttachment( int id, const TQString & name )
}
TQCString contentTypeStr( msgPart.typeStr() + '/' + msgPart.subtypeStr() );
- KPIM::kAsciiToLower( contentTypeStr.data() );
+ kasciitolower( contentTypeStr.data() );
if ( qstrcmp( contentTypeStr, "text/x-vcard" ) == 0 ) {
showVCard( &msgPart );
diff --git a/kmail/partNode.cpp b/kmail/partNode.cpp
index b39bc65f1..31b94d68d 100644
--- a/kmail/partNode.cpp
+++ b/kmail/partNode.cpp
@@ -39,7 +39,6 @@
#include "kmmimeparttree.h"
#include <mimelib/utility.h>
#include <tqregexp.h>
-#include <kasciistricmp.h>
#include "util.h"
/*
diff --git a/knode/CMakeLists.txt b/knode/CMakeLists.txt
index a21deffb5..ae3c46c93 100644
--- a/knode/CMakeLists.txt
+++ b/knode/CMakeLists.txt
@@ -84,7 +84,7 @@ tde_add_library( knodecommon SHARED AUTOMOC
kncollectionview.cpp articlewidget.cpp csshelper.cpp
smtpaccountwidget_base.ui
VERSION 3.0.0
- LINK emailfunctions-static tdepim-shared kpgp-shared tdehtml-shared
+ LINK tdecore-shared tdepim-shared kpgp-shared tdehtml-shared
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/knode/articlewidget.cpp b/knode/articlewidget.cpp
index faf4b4e8b..9e91d090f 100644
--- a/knode/articlewidget.cpp
+++ b/knode/articlewidget.cpp
@@ -43,9 +43,9 @@
#include <kstandarddirs.h>
#include <tdetempfile.h>
#include <kurl.h>
+#include <tdeglobal.h>
#include <libemailfunctions/email.h>
-#include <libemailfunctions/kasciistringtools.h>
#include <libkpgp/kpgp.h>
#include <libkpgp/kpgpblock.h>
@@ -881,7 +881,7 @@ void ArticleWidget::displayAttachment( KMime::Content *att, int partNum )
}
} else { // icon
TQCString mimetype = ct->mimeType();
- KPIM::kAsciiToLower( mimetype.data() );
+ kasciitolower( mimetype.data() );
TQString iconName = KMimeType::mimeType( mimetype )->icon( TQString(), false );
TQString iconFile = TDEGlobal::instance()->iconLoader()->iconPath( iconName, TDEIcon::Desktop );
html += "<div><a href=\"" + href + "\"><img src=\"" +
diff --git a/libemailfunctions/CMakeLists.txt b/libemailfunctions/CMakeLists.txt
index 725dbe077..abd46f505 100644
--- a/libemailfunctions/CMakeLists.txt
+++ b/libemailfunctions/CMakeLists.txt
@@ -33,6 +33,5 @@ endif()
tde_add_library( emailfunctions STATIC_PIC AUTOMOC
SOURCES
- email.cpp idmapper.cpp kasciistricmp.cpp
- kasciistringtools.cpp networkstatus.cpp networkstatus.skel
+ email.cpp idmapper.cpp networkstatus.cpp networkstatus.skel
)
diff --git a/libemailfunctions/Makefile.am b/libemailfunctions/Makefile.am
index f631afa38..2d8fc3dfc 100644
--- a/libemailfunctions/Makefile.am
+++ b/libemailfunctions/Makefile.am
@@ -1,9 +1,7 @@
INCLUDES = $(all_includes) -I$(srcdir)/../libkmime/
noinst_LTLIBRARIES = libemailfunctions.la
-libemailfunctions_la_SOURCES = email.cpp idmapper.cpp kasciistricmp.cpp \
- kasciistringtools.cpp \
- networkstatus.cpp networkstatus.skel
+libemailfunctions_la_SOURCES = email.cpp idmapper.cpp networkstatus.cpp networkstatus.skel
libemailfunctions_la_LDFLAGS = $(all_libraries) -no-undefined
## Since this is a noinst library, in case of --enable-closure we need
## to link it explicitly to the libraries that it uses.
diff --git a/libemailfunctions/kasciistricmp.cpp b/libemailfunctions/kasciistricmp.cpp
deleted file mode 100644
index 2852bb42a..000000000
--- a/libemailfunctions/kasciistricmp.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the KDE libraries
- Copyright (C) 2004 David Faure <faure@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "kasciistricmp.h"
-
-#if ! KDE_IS_VERSION(3,3,89)
-
-static unsigned char tdepim_ASCIIToLower( unsigned char ch )
-{
- if ( ch >= 'A' && ch <= 'Z' )
- return ch - 'A' + 'a';
- else
- return ch;
-}
-
-int tdepim_kasciistricmp( const char *str1, const char *str2 )
-{
- const unsigned char *s1 = (const unsigned char *) str1;
- const unsigned char *s2 = (const unsigned char *) str2;
- int res;
- unsigned char c;
-
- if ( !s1 || !s2 )
- return s1 ? 1 : ( s2 ? -1 : 0 );
- for ( ; !( res = ( c = tdepim_ASCIIToLower( *s1 ) ) - tdepim_ASCIIToLower( *s2 ) );
- ++s1, ++s2 )
- if ( !c ) // strings are equal
- break;
- return res;
-}
-
-#endif
diff --git a/libemailfunctions/kasciistricmp.h b/libemailfunctions/kasciistricmp.h
deleted file mode 100644
index 10c1551e8..000000000
--- a/libemailfunctions/kasciistricmp.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/* This file is part of the KDE libraries
- Copyright (C) 2004 David Faure <faure@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <tdeversion.h>
-
-#if KDE_IS_VERSION(3,3,89)
-// get kasciistricmp from tdeglobal.h
-#include <tdeglobal.h>
-#else
-// define kasciistricmp to this tdepim symbol (renamed to avoid problems when upgrading tdelibs later)
-int tdepim_kasciistricmp( const char *str1, const char *str2 );
-#define kasciistricmp tdepim_kasciistricmp
-#endif
diff --git a/libemailfunctions/kasciistringtools.cpp b/libemailfunctions/kasciistringtools.cpp
deleted file mode 100644
index 9d7590af1..000000000
--- a/libemailfunctions/kasciistringtools.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- kasciistringtools.cpp
-
- This file is part of libtdepim.
-
- Copyright (c) 2005 Ingo Kloecker <kloecker@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "kasciistringtools.h"
-
-namespace KPIM {
-
-static unsigned char ASCIIToLower( unsigned char ch )
-{
- if ( ch >= 'A' && ch <= 'Z' )
- return ch - 'A' + 'a';
- else
- return ch;
-}
-
-char * kAsciiToLower( char *s )
-{
- if ( !s )
- return 0;
- for ( unsigned char *p = (unsigned char *) s; *p; ++p )
- *p = ASCIIToLower( *p );
- return s;
-}
-
-static unsigned char ASCIIToUpper( unsigned char ch )
-{
- if ( ch >= 'a' && ch <= 'z' )
- return ch - 'a' + 'A';
- else
- return ch;
-}
-
-char * kAsciiToUpper( char *s )
-{
- if ( !s )
- return 0;
- for ( unsigned char *p = (unsigned char *) s; *p; ++p )
- *p = ASCIIToUpper( *p );
- return s;
-}
-
-} // namespace KPIM
diff --git a/libemailfunctions/kasciistringtools.h b/libemailfunctions/kasciistringtools.h
deleted file mode 100644
index c67e5c317..000000000
--- a/libemailfunctions/kasciistringtools.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- kasciistringtools.h
-
- This file is part of libtdepim.
-
- Copyright (c) 2005 Ingo Kloecker <kloecker@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef KPIM_KASCIISTRINGTOOLS_H
-#define KPIM_KASCIISTRINGTOOLS_H
-
-namespace KPIM {
-
-/**
- Locale-independent function to convert ASCII strings to lower case ASCII
- strings. This means that it affects @em only the ASCII characters A-Z.
-
- @param str pointer to the string which should be converted to lower case
- @return pointer to the converted string (same as @a str)
-*/
-char * kAsciiToLower( char *str );
-
-/**
- Locale-independent function to convert ASCII strings to upper case ASCII
- strings. This means that it affects @em only the ASCII characters a-z.
-
- @param str pointer to the string which should be converted to upper case
- @return pointer to the converted string (same as @a str)
-*/
-char * kAsciiToUpper( char *str );
-
-} // namespace KPIM
-
-#endif
diff --git a/libtdepim/CMakeLists.txt b/libtdepim/CMakeLists.txt
index f96611f35..a252500ca 100644
--- a/libtdepim/CMakeLists.txt
+++ b/libtdepim/CMakeLists.txt
@@ -11,8 +11,6 @@
project( libtdepim )
-include( ConfigureChecks.cmake )
-
tde_import( libkmime )
tde_import( libkcal )
tde_import( ktnef )
@@ -96,7 +94,7 @@ tde_add_library( tdepim SHARED AUTOMOC
csshelper.cpp distributionlist.cpp kpimurlrequesterdlg.cpp
sendsmsdialog.cpp kmailcompletion.cpp
VERSION 1.0.0
- LINK kcal-shared tdeimproxy-shared tdeparts-shared ${TQTQUI_LIBRARIES}
+ LINK kcal-shared tdeimproxy-shared tdeparts-shared tqui
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/libtdepim/ConfigureChecks.cmake b/libtdepim/ConfigureChecks.cmake
deleted file mode 100644
index b91f0f8f6..000000000
--- a/libtdepim/ConfigureChecks.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
-#################################################
-#
-# (C) 2010-2011 Serghei Amelian
-# serghei (DOT) amelian (AT) gmail.com
-#
-# Improvements and feedback are welcome
-#
-# This file is released under GPL >= 2
-#
-#################################################
-
-find_package( TQtQUI )
diff --git a/mimelib/test/INSTALL b/mimelib/test/INSTALL
index 822915e34..63e6e41b9 100644
--- a/mimelib/test/INSTALL
+++ b/mimelib/test/INSTALL
@@ -7,7 +7,6 @@ probably a good idea to take a look at that file anyway.
There are several makefiles available. Makefile.unx is a makefile for a
generic UNIX system. Makefile.vc is a makefile for Visual C++ 4 or 5.
-Makefile.bc is a makefile for Borland C++ 5.
If you are using the library on a non-UNIX system, such as Windows 3.1 or
Macintosh, you will probably need to change msgid.cpp. The function
diff --git a/tdeioslave/imap4/CMakeLists.txt b/tdeioslave/imap4/CMakeLists.txt
index 041aeffca..b62d61dc9 100644
--- a/tdeioslave/imap4/CMakeLists.txt
+++ b/tdeioslave/imap4/CMakeLists.txt
@@ -41,6 +41,6 @@ tde_add_kpart( tdeio_imap4
imapcommand.cpp imaplist.cpp mailaddress.cpp mimeheader.cpp
rfcdecoder.cpp imap4.cpp imapinfo.cpp imapparser.cpp
mailheader.cpp mimehdrline.cpp mimeio.cpp
- LINK emailfunctions-static kmime-shared tdeio-shared ${SASL_LIBRARY}
+ LINK kmime-shared tdecore-shared tdeio-shared ${SASL_LIBRARY}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
diff --git a/tdeioslave/imap4/imapparser.cpp b/tdeioslave/imap4/imapparser.cpp
index d833b639e..bffe88d03 100644
--- a/tdeioslave/imap4/imapparser.cpp
+++ b/tdeioslave/imap4/imapparser.cpp
@@ -56,8 +56,7 @@ extern "C" {
#include <kmdcodec.h>
#include <kurl.h>
-#include <kasciistricmp.h>
-#include <kasciistringtools.h>
+#include <tdeglobal.h>
#ifdef HAVE_LIBSASL2
static sasl_callback_t callbacks[] = {
@@ -679,7 +678,7 @@ imapParser::parseResult (TQByteArray & result, parseString & rest,
void imapParser::parseCapability (parseString & result)
{
TQCString temp( result.cstr() );
- imapCapabilities = TQStringList::split ( ' ', KPIM::kAsciiToLower( temp.data() ) );
+ imapCapabilities = TQStringList::split ( ' ', kasciitolower( temp.data() ) );
}
void imapParser::parseFlags (parseString & result)
diff --git a/tderesources/groupwise/soap/stdsoap2.cpp b/tderesources/groupwise/soap/stdsoap2.cpp
index e3d42998e..dfe0afc75 100644
--- a/tderesources/groupwise/soap/stdsoap2.cpp
+++ b/tderesources/groupwise/soap/stdsoap2.cpp
@@ -4243,15 +4243,11 @@ soap_begin_send(struct soap *soap)
#ifndef UNDER_CE
#ifndef WITH_FASTCGI
if (!soap_valid_socket(soap->socket)) /* Set win32 stdout or soap->sendfd to BINARY, e.g. to support DIME */
-#ifdef __BORLANDC__
- setmode((SOAP_SOCKET)soap->sendfd, O_BINARY);
-#else
_setmode((SOAP_SOCKET)soap->sendfd, _O_BINARY);
#endif
#endif
#endif
#endif
-#endif
if (soap->mode & SOAP_IO)
{ soap->bufidx = 0;
soap->buflen = 0;
@@ -10818,14 +10814,10 @@ soap_begin_recv(struct soap *soap)
#ifndef UNDER_CE
#ifndef WITH_FASTCGI
if (!soap_valid_socket(soap->socket))
-#ifdef __BORLANDC__
- setmode((SOAP_SOCKET)soap->recvfd, O_BINARY);
-#else
_setmode((SOAP_SOCKET)soap->recvfd, _O_BINARY);
#endif
#endif
#endif
-#endif
#ifdef WITH_ZLIB
soap->mode &= ~SOAP_ENC_ZLIB;
soap->zlib_in = SOAP_ZLIB_NONE;
diff --git a/tderesources/groupwise/soap/stdsoap2.h b/tderesources/groupwise/soap/stdsoap2.h
index adb5037b5..795b25287 100644
--- a/tderesources/groupwise/soap/stdsoap2.h
+++ b/tderesources/groupwise/soap/stdsoap2.h
@@ -139,14 +139,6 @@ A commercial use license is available from Genivia, Inc., contact@genivia.com
# endif
#endif
-#ifdef __BORLANDC__
-# ifdef __WIN32__
-# ifndef WIN32
-# define WIN32
-# endif
-# endif
-#endif
-
#ifdef __CYGWIN__
# ifndef CYGWIN
# define CYGWIN
@@ -560,9 +552,6 @@ extern "C" {
#elif defined(UNDER_CE)
# define LONG64 __int64
# define ULONG64 unsigned LONG64
-#elif defined(__BORLANDC__)
-# define LONG64 __int64
-# define ULONG64 unsigned LONG64
#endif
#if defined(WIN32)