Drop Borland compiler specific code

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/57/head
Michele Calgaro 1 month ago
parent 137a74149e
commit 31af8fa045
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -344,8 +344,7 @@ A typical example of this user interface mode is KDEStudio, our friend C++-IDE i
<listitem><para>
<link linkend="toplevel-desc">Toplevel window mode</link>
</para><para>All editor, browser and tool views will be toplevel windows (directly on desktop).
The main widget contains the menu, toolbars and statusbar only.
A typical example of this user interface mode is Borland Delphi 6.0.</para></listitem>
The main widget contains the menu, toolbars and statusbar only.</para></listitem>
</itemizedlist>
<para>

@ -132,20 +132,6 @@ public:
}
}
else if ( qmakespec == "win32-borland" )
{
TQString incl = getenv( "INCLUDE" );
TQStringList includePaths = TQStringList::split( ';', incl );
TQStringList::Iterator it = includePaths.begin();
while ( it != includePaths.end() )
{
addIncludePath( ( *it ).stripWhiteSpace() );
++it;
}
// ### I am sure there are more standard include paths on
// ### windows. I will fix that soon
// ### Also do the compiler specific defines on windows
}
}
private:

@ -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

@ -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)

@ -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

@ -71,15 +71,6 @@ bool portable_fileSystemIsCaseSensitive()
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif
#ifdef YY_USE_CONST
#define yyconst const
#else
@ -2956,13 +2947,9 @@ void Config::check()
#undef PUTENV
#undef SEP
#if defined(_WIN32) && (__BORLANDC__ < 0x0550)
#define PUTENV _putenv
#define SEP ";"
#else
#define PUTENV putenv
#define SEP ":"
#endif
// check TQHP creation requirements
if (Config_getBool("GENERATE_TQHP"))
{

Loading…
Cancel
Save