[gs-cvs] rev 7808 - in trunk/gs: doc src

alexcher at ghostscript.com alexcher at ghostscript.com
Wed Mar 28 09:03:31 PDT 2007


Author: alexcher
Date: 2007-03-28 09:03:31 -0700 (Wed, 28 Mar 2007)
New Revision: 7808

Modified:
   trunk/gs/doc/pscet_status.txt
   trunk/gs/src/zfilter.c
Log:
Propagate CloseSource or CloseTarget flags to the temporary stream
created by filter_ensure_buffer(). Fix CET 23-12k-02.

DIFFERENCE:
No other CET or Comparefiles differences.


Modified: trunk/gs/doc/pscet_status.txt
===================================================================
--- trunk/gs/doc/pscet_status.txt	2007-03-27 22:44:40 UTC (rev 7807)
+++ trunk/gs/doc/pscet_status.txt	2007-03-28 16:03:31 UTC (rev 7808)
@@ -4252,8 +4252,7 @@
 
 23-12K-1  OK	Fixed as of r7500.
 
-23-12K-2  DIFF	GS has 'T' where CPSI has 'F' on one of the DCTEncode. Assign: Peter
-		DCTEncode doesn't close its target with /CloseTarget true
+23-12K-2  OK  	Fixed by rev 7808. - Alex
 
 23-12L-1  AOK	same as 23-12A-3
 

Modified: trunk/gs/src/zfilter.c
===================================================================
--- trunk/gs/src/zfilter.c	2007-03-27 22:44:40 UTC (rev 7807)
+++ trunk/gs/src/zfilter.c	2007-03-28 16:03:31 UTC (rev 7808)
@@ -171,7 +171,7 @@
 /* ------ Utilities ------ */
 
 /* Forward references */
-private int filter_ensure_buf(stream **, uint, gs_ref_memory_t *, bool);
+private int filter_ensure_buf(stream **, uint, gs_ref_memory_t *, bool, int );
 
 /* Set up an input filter. */
 int
@@ -228,7 +228,7 @@
 	    code = filter_ensure_buf(&sstrm,
 				     template->min_in_size +
 				     sstrm->state->template->min_out_size,
-				     iimemory, false);
+				     iimemory, false, close);
 	    if (code < 0)
 		goto out;
 	    break;
@@ -308,7 +308,7 @@
 	    code = filter_ensure_buf(&sstrm,
 				     template->min_out_size +
 				     sstrm->state->template->min_in_size,
-				     iimemory, true);
+				     iimemory, true, close);
 	    if (code < 0)
 		goto out;
 	    break;
@@ -376,7 +376,7 @@
 /* This may require creating an intermediate stream. */
 private int
 filter_ensure_buf(stream ** ps, uint min_buf_size, gs_ref_memory_t *imem,
-		  bool writing)
+		  bool writing, int close)
 {
     stream *s = *ps;
     uint min_size = min_buf_size + max_min_left;
@@ -414,6 +414,7 @@
 	bs = fptr(&bsop);
 	bs->strm = s;
 	bs->is_temp = 2;
+        bs->close_strm = close;
 	*ps = bs;
 	return code;
     }



More information about the gs-cvs mailing list