[gs-cvs] rev 8134 - trunk/gs/src

leonardo at ghostscript.com leonardo at ghostscript.com
Tue Jul 17 02:55:57 PDT 2007


Author: leonardo
Date: 2007-07-17 02:55:56 -0700 (Tue, 17 Jul 2007)
New Revision: 8134

Modified:
   trunk/gs/src/gdevpdfi.c
   trunk/gs/src/gxclpath.c
   trunk/gs/src/gxclrast.c
   trunk/gs/src/gxclrect.c
   trunk/gs/src/gxshade6.c
   trunk/gs/src/lib.mak
Log:
Banding : Extend clist language with trapezoids, linear color trapezoids and linear color triangles (continued 8).

DETAILS :

This fixes (some) gcc warnings in the recently added code (part 2).
  
EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gdevpdfi.c
===================================================================
--- trunk/gs/src/gdevpdfi.c	2007-07-16 21:35:48 UTC (rev 8133)
+++ trunk/gs/src/gdevpdfi.c	2007-07-17 09:55:56 UTC (rev 8134)
@@ -1392,6 +1392,8 @@
 	    return 0;
 	case pattern_manage__shfill_doesnt_need_path:
 	    return 0; /* gdev_pdf_fill_path still does need a path. */
+	case pattern_manage__handles_clip_path:
+	    return 1;
     }
     return_error(gs_error_unregistered);
 }

Modified: trunk/gs/src/gxclpath.c
===================================================================
--- trunk/gs/src/gxclpath.c	2007-07-16 21:35:48 UTC (rev 8133)
+++ trunk/gs/src/gxclpath.c	2007-07-17 09:55:56 UTC (rev 8134)
@@ -18,6 +18,7 @@
 #include "gx.h"
 #include "gpcheck.h"
 #include "gserrors.h"
+#include "gsptype2.h"
 #include "gxdevice.h"
 #include "gxdevmem.h"		/* must precede gxcldev.h */
 #include "gxcldev.h"

Modified: trunk/gs/src/gxclrast.c
===================================================================
--- trunk/gs/src/gxclrast.c	2007-07-16 21:35:48 UTC (rev 8133)
+++ trunk/gs/src/gxclrast.c	2007-07-17 09:55:56 UTC (rev 8134)
@@ -1415,7 +1415,6 @@
 			    break;
 			case cmd_opv_fill_trapezoid:
 			    {
-				gx_cmd_rect rl, rr;
 				gs_fixed_edge left, right;
 				fixed ybot, ytop;
 				int options, swap_axes, wh;

Modified: trunk/gs/src/gxclrect.c
===================================================================
--- trunk/gs/src/gxclrect.c	2007-07-16 21:35:48 UTC (rev 8133)
+++ trunk/gs/src/gxclrect.c	2007-07-17 09:55:56 UTC (rev 8134)
@@ -211,7 +211,7 @@
     cmd_putw(ybot, dp);
     cmd_putw(ytop, dp);
     cmd_putw(options, dp);
-    if_debug6('L', "    t%ld:%ld,%ld,%ld,%ld   %ld\n",
+    if_debug6('L', "    t%d:%ld,%ld,%ld,%ld   %ld\n",
 	      rcsize - 1, left->start.x, left->start.y, left->end.x, left->end.y, ybot);
     if_debug6('L', "    t%ld,%ld,%ld,%ld   %ld   o=%d\n",
 	      right->start.x, right->start.y, right->end.x, right->end.y, ytop, options);

Modified: trunk/gs/src/gxshade6.c
===================================================================
--- trunk/gs/src/gxshade6.c	2007-07-16 21:35:48 UTC (rev 8133)
+++ trunk/gs/src/gxshade6.c	2007-07-17 09:55:56 UTC (rev 8134)
@@ -27,8 +27,8 @@
 #include "gxdcolor.h"
 #include "gxistate.h"
 #include "gxshade.h"
+#include "gxdevcli.h"
 #include "gxshade4.h"
-#include "gxdevcli.h"
 #include "gxarith.h"
 #include "gzpath.h"
 #include "stdint_.h"
@@ -226,7 +226,7 @@
     /* Warning : pfs->Function must be set in advance. */
     const gs_color_space *pcs = pfs->direct_space;
     gs_client_color fcc0, fcc1;
-    int i, code;
+    int i;
 
     for (i = 0; i < pfs->num_components; i++) {
 	fcc0.paint.values[i] = -1000000;

Modified: trunk/gs/src/lib.mak
===================================================================
--- trunk/gs/src/lib.mak	2007-07-16 21:35:48 UTC (rev 8133)
+++ trunk/gs/src/lib.mak	2007-07-17 09:55:56 UTC (rev 8134)
@@ -1703,7 +1703,7 @@
 	$(GLCC) $(GLO_)gxclimag.$(OBJ) $(C_) $(GLSRC)gxclimag.c
 
 $(GLOBJ)gxclpath.$(OBJ) : $(GLSRC)gxclpath.c $(GXERR)\
- $(math__h) $(memory__h) $(gpcheck_h)\
+ $(math__h) $(memory__h) $(gpcheck_h) $(gptype2_h)\
  $(gxcldev_h) $(gxclpath_h) $(gxcolor2_h)\
  $(gxdcolor_h) $(gxpaint_h)\
  $(gzpath_h) $(gzcpath_h) $(stream_h) $(gsserial_h)



More information about the gs-cvs mailing list