summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-27 13:06:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-27 13:06:53 +0900
commit31af8fa045de34407fbe0beda3ad65afaf0080d2 (patch)
treeca111326f2fd3f4f60333131c272ab25fa133dc6 /lib
parent137a74149e678345cc799dc181732824fc9bb24d (diff)
downloadtdevelop-31af8fa045de34407fbe0beda3ad65afaf0080d2.tar.gz
tdevelop-31af8fa045de34407fbe0beda3ad65afaf0080d2.zip
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib')
-rw-r--r--lib/antlr/antlr/config.h9
-rw-r--r--lib/antlr/src/String.cpp6
-rw-r--r--lib/astyle/ASFormatter.cpp2
3 files changed, 1 insertions, 16 deletions
diff --git a/lib/antlr/antlr/config.h b/lib/antlr/antlr/config.h
index 4d3456ec..200463b8 100644
--- a/lib/antlr/antlr/config.h
+++ b/lib/antlr/antlr/config.h
@@ -265,15 +265,6 @@
#endif
/*}}}*/
/*****************************************************************************/
-#ifdef __BORLANDC__
-# if __BORLANDC__ >= 560
-# include <ctype>
-# include <stdlib>
-# define ANTLR_CCTYPE_NEEDS_STD
-# else
-# error "sorry, compiler is too old - consider an update."
-# endif
-#endif
// Redefine these for backwards compatability..
#undef ANTLR_BEGIN_NAMESPACE
diff --git a/lib/antlr/src/String.cpp b/lib/antlr/src/String.cpp
index 6d8b43cf..39b09ab1 100644
--- a/lib/antlr/src/String.cpp
+++ b/lib/antlr/src/String.cpp
@@ -19,12 +19,6 @@
namespace antlr {
#endif
-// wh: hack for Borland C++ 5.6
-#if __BORLANDC__
- using std::sprintf;
-#endif
-
-
// RK: should be using snprintf actually... (or stringstream)
ANTLR_C_USING(sprintf)
diff --git a/lib/astyle/ASFormatter.cpp b/lib/astyle/ASFormatter.cpp
index eb418760..bf88affd 100644
--- a/lib/astyle/ASFormatter.cpp
+++ b/lib/astyle/ASFormatter.cpp
@@ -1652,7 +1652,7 @@ void ASFormatter::adjustComments(void)
if (formattedLine.find_last_not_of(' ') < len - adjust - 1
&& formattedLine[len-1] != '\t') // don't adjust a tab
formattedLine.resize(len - adjust);
- // the following are commented out to avoid a Borland compiler warning
+ // the following are commented out to avoid compiler warning
//else
// adjust = 0;
TRcomment(-adjust); // trace macro