diff options
Diffstat (limited to 'tdeprint')
-rw-r--r-- | tdeprint/fooscanner.cpp | 4 | ||||
-rw-r--r-- | tdeprint/ppdparser.cpp | 4 | ||||
-rw-r--r-- | tdeprint/ppdscanner.cpp | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/tdeprint/fooscanner.cpp b/tdeprint/fooscanner.cpp index 58edc063c..441d411da 100644 --- a/tdeprint/fooscanner.cpp +++ b/tdeprint/fooscanner.cpp @@ -457,10 +457,14 @@ char *yytext; { \ result = tdeprint_foomatic2scanner_device->readBlock( buf, max_size ); \ if ( result < 0 ) \ + { \ result = 0; \ + } \ } \ else \ + { \ result = 0; \ + } \ } TQIODevice* tdeprint_foomatic2scanner_device = NULL; diff --git a/tdeprint/ppdparser.cpp b/tdeprint/ppdparser.cpp index 30df9195d..e54fea840 100644 --- a/tdeprint/ppdparser.cpp +++ b/tdeprint/ppdparser.cpp @@ -578,13 +578,17 @@ while (0) # define YYDPRINTF(Args) \ do { \ if (yydebug) \ + { \ YYFPRINTF Args; \ + } \ } while (0) # define YYDSYMPRINT(Args) \ do { \ if (yydebug) \ + { \ yysymprint Args; \ + } \ } while (0) # define YYDSYMPRINTF(Title, Token, Value, Location) \ diff --git a/tdeprint/ppdscanner.cpp b/tdeprint/ppdscanner.cpp index ebfea8d53..4b37737c0 100644 --- a/tdeprint/ppdscanner.cpp +++ b/tdeprint/ppdscanner.cpp @@ -552,10 +552,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; |