summaryrefslogtreecommitdiffstats
path: root/tdeprint/ppdscanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/ppdscanner.cpp')
-rw-r--r--tdeprint/ppdscanner.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/tdeprint/ppdscanner.cpp b/tdeprint/ppdscanner.cpp
index ebfea8d53..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
@@ -552,10 +543,14 @@ TQIODevice *tdeprint_ppdscanner_device = NULL;
{ \
result = tdeprint_ppdscanner_device->readBlock(buf,max_size); \
if (result < 0) \
+ { \
result = 0; \
+ } \
} \
else \
+ { \
result = 0; \
+ } \
}
int tdeprint_ppdscanner_lno = 0;