[cairo-commit] cairo/src cairo-ps-surface.c,1.38,1.39

Carl Worth commit at pdx.freedesktop.org
Tue Jul 5 22:31:01 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv16042/src

Modified Files:
	cairo-ps-surface.c 
Log Message:

        * src/cairo-ps-surface.c: Disable the compilation of the
        _ps_locate_fallbacks code which, inaddition to being broken,
        appears to not currently be used.


Index: cairo-ps-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-ps-surface.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- cairo-ps-surface.c	1 Jul 2005 19:45:35 -0000	1.38
+++ cairo-ps-surface.c	6 Jul 2005 05:30:59 -0000	1.39
@@ -1185,6 +1185,10 @@
     cairo_ps_fallback_area_t *fallback_areas;
 };
 
+/* XXX: This code is not compiling correctly (missing return values),
+ * but also appears to not be used currently. I'm turning it off for
+ * now. */
+#if 0
 static cairo_int_status_t
 _cairo_ps_fallback_info_add_area (cairo_ps_fallback_info_t *info,
 				  int x, int y,
@@ -1207,7 +1211,10 @@
     case CAIRO_PATTERN_LINEAR:
     case CAIRO_PATTERN_RADIAL:
 	return FALSE;
-    }	
+    }
+
+    ASSERT_NOT_REACHED;
+    return FALSE;
 }
 
 static cairo_int_status_t
@@ -1303,7 +1310,7 @@
     _ps_locate_fallbacks_show_glyphs,
     _ps_locate_fallbacks_fill_path
 };
-
+#endif
 
 static cairo_int_status_t
 _cairo_ps_surface_render_fallbacks (cairo_ps_surface_t *surface,




More information about the cairo-commit mailing list