summaryrefslogtreecommitdiffstats
path: root/tdeprint
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-27 12:33:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-27 12:33:30 +0900
commit638f63d207a9a925df17fda588436fa6530a3d85 (patch)
treee6bc477061ea0cea794f5bc72dfbc274da63997b /tdeprint
parent8b48c1df5dd5be9110baa1b6b85bc535119130e9 (diff)
downloadtdelibs-638f63d207a9a925df17fda588436fa6530a3d85.tar.gz
tdelibs-638f63d207a9a925df17fda588436fa6530a3d85.zip
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeprint')
-rw-r--r--tdeprint/fooparser.cpp8
-rw-r--r--tdeprint/fooscanner.cpp9
-rw-r--r--tdeprint/ppdscanner.cpp9
3 files changed, 4 insertions, 22 deletions
diff --git a/tdeprint/fooparser.cpp b/tdeprint/fooparser.cpp
index 2f1a59e0f..55e68532b 100644
--- a/tdeprint/fooparser.cpp
+++ b/tdeprint/fooparser.cpp
@@ -227,19 +227,19 @@ static const short yycheck[] = { 4,
/* We think this test detects Watcom and Microsoft C. */
/* This used to test MSDOS, but that is a bad idea
since that symbol is in the user namespace. */
-#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
+#if defined (_MSDOS) || defined (_MSDOS_)
#if 0 /* No need for malloc.h, which pollutes the namespace;
instead, just don't use alloca. */
#include <malloc.h>
#endif
-#else /* not MSDOS, or __TURBOC__ */
+#else /* not MSDOS */
#if defined(_AIX)
/* I don't know what this was needed for, but it pollutes the namespace.
So I turned it off. rms, 2 May 1997. */
/* #include <malloc.h> */
#pragma alloca
#define YYSTACK_USE_ALLOCA
-#else /* not MSDOS, or __TURBOC__, or _AIX */
+#else /* not MSDOS or _AIX */
#if 0
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
and on HPUX 10. Eventually we can turn this on. */
@@ -248,7 +248,7 @@ static const short yycheck[] = { 4,
#endif /* __hpux */
#endif
#endif /* not _AIX */
-#endif /* not MSDOS, or __TURBOC__ */
+#endif /* not MSDOS */
#endif /* not sparc */
#endif /* not GNU C */
#endif /* alloca not defined */
diff --git a/tdeprint/fooscanner.cpp b/tdeprint/fooscanner.cpp
index 441d411da..8873872b0 100644
--- a/tdeprint/fooscanner.cpp
+++ b/tdeprint/fooscanner.cpp
@@ -58,15 +58,6 @@
#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
diff --git a/tdeprint/ppdscanner.cpp b/tdeprint/ppdscanner.cpp
index 4b37737c0..8422b6c67 100644
--- a/tdeprint/ppdscanner.cpp
+++ b/tdeprint/ppdscanner.cpp
@@ -58,15 +58,6 @@
#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