View | Details | Raw Unified | Return to bug 47776
Collapse All | Expand All

(-)source/ps.c (-6 / +4 lines)
Lines 1770-1777 Link Here
1770
           (DSCcomment(line) && iscomment(line+2,(comment)))
1770
           (DSCcomment(line) && iscomment(line+2,(comment)))
1771
#define IS_BEGIN(comment)				\
1771
#define IS_BEGIN(comment)				\
1772
           (iscomment(line+7,(comment)))
1772
           (iscomment(line+7,(comment)))
1773
#define IS_END(comment)				\
1774
           (iscomment(line+5,(comment)))
1775
#define SKIP_WHILE(cond)				\
1773
#define SKIP_WHILE(cond)				\
1776
	   while (readline(fd, &line, NULL, &nbytes) && (cond)) *line_lenP += nbytes;\
1774
	   while (readline(fd, &line, NULL, &nbytes) && (cond)) *line_lenP += nbytes;\
1777
           skipped=1;
1775
           skipped=1;
Lines 1808-1817 Link Here
1808
#endif
1806
#endif
1809
   if  (!IS_COMMENT("Begin"))     {} /* Do nothing */
1807
   if  (!IS_COMMENT("Begin"))     {} /* Do nothing */
1810
   else if IS_BEGIN("Document:")  {  /* Skip the EPS without handling its content */
1808
   else if IS_BEGIN("Document:")  {  /* Skip the EPS without handling its content */
1811
            while (line && !IS_END("Document")) {
1809
            while ((line = ps_io_fgetchars(fd,-1)) && !IS_COMMENT("EndDocument"))
1812
               line = ps_io_fgetchars(fd,-1);
1810
               *line_lenP += FD_LINE_LEN;
1813
               if (line) *line_lenP += FD_LINE_LEN;
1811
	    nbytes = line ? FD_LINE_LEN : 0;
1814
            }
1812
	    skipped = 1;
1815
   }
1813
   }
1816
   else if IS_BEGIN("Feature:")   SKIP_UNTIL_1("EndFeature")
1814
   else if IS_BEGIN("Feature:")   SKIP_UNTIL_1("EndFeature")
1817
#ifdef USE_ACROREAD_WORKAROUND
1815
#ifdef USE_ACROREAD_WORKAROUND

Return to bug 47776