Lines 1-26
Link Here
|
1 |
--- source/ps.c.orig Sat Feb 1 00:56:20 2003 |
|
|
2 |
+++ source/ps.c Sat Feb 1 01:17:43 2003 |
3 |
@@ -1770,8 +1770,6 @@ |
4 |
(DSCcomment(line) && iscomment(line+2,(comment))) |
5 |
#define IS_BEGIN(comment) \ |
6 |
(iscomment(line+7,(comment))) |
7 |
-#define IS_END(comment) \ |
8 |
- (iscomment(line+5,(comment))) |
9 |
#define SKIP_WHILE(cond) \ |
10 |
while (readline(fd, &line, NULL, &nbytes) && (cond)) *line_lenP += nbytes;\ |
11 |
skipped=1; |
12 |
@@ -1808,10 +1806,10 @@ |
13 |
#endif |
14 |
if (!IS_COMMENT("Begin")) {} /* Do nothing */ |
15 |
else if IS_BEGIN("Document:") { /* Skip the EPS without handling its content */ |
16 |
- while (line && !IS_END("Document")) { |
17 |
- line = ps_io_fgetchars(fd,-1); |
18 |
- if (line) *line_lenP += FD_LINE_LEN; |
19 |
- } |
20 |
+ while ((line = ps_io_fgetchars(fd,-1)) && !IS_COMMENT("EndDocument")) |
21 |
+ *line_lenP += FD_LINE_LEN; |
22 |
+ nbytes = line ? FD_LINE_LEN : 0; |
23 |
+ skipped = 1; |
24 |
} |
25 |
else if IS_BEGIN("Feature:") SKIP_UNTIL_1("EndFeature") |
26 |
#ifdef USE_ACROREAD_WORKAROUND |