[cairo-commit] cairo-perl Cairo.xs,1.17,1.18 ChangeLog,1.51,1.52

Torsten Schoenfeld commit at pdx.freedesktop.org
Sun Jan 21 07:09:12 PST 2007


Committed by: tsch

Update of /cvs/cairo/cairo-perl
In directory kemper:/tmp/cvs-serv25960

Modified Files:
	Cairo.xs ChangeLog 
Log Message:
	* Cairo.xs: Track upstream API change: cairo_get_dash_count
	returns the count directly; cairo_get_dash_count and
	cairo_get_dash don't return a status anymore.


Index: Cairo.xs
===================================================================
RCS file: /cvs/cairo/cairo-perl/Cairo.xs,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- Cairo.xs	18 Jan 2007 19:53:39 -0000	1.17
+++ Cairo.xs	21 Jan 2007 15:09:07 -0000	1.18
@@ -585,16 +585,14 @@
 
 #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 3, 0) /* FIXME: 1.4 */
 
-## cairo_status_t cairo_get_dash_count (cairo_t *cr, int *count);
-## cairo_status_t cairo_get_dash (cairo_t *cr, double *dashes, double *offset);
+## int cairo_get_dash_count (cairo_t *cr);
+## void cairo_get_dash (cairo_t *cr, double *dashes, double *offset);
 void cairo_get_dash (cairo_t *cr)
     PREINIT:
-	cairo_status_t status;
 	int count, i;
 	double *dashes, offset;
     PPCODE:
-	status = cairo_get_dash_count (cr, &count);
-	CAIRO_PERL_CHECK_STATUS (status);
+	count = cairo_get_dash_count (cr);
 	if (count == 0) {
 		dashes = NULL;
 	} else {
@@ -602,8 +600,7 @@
 		if (!dashes)
 			croak ("malloc failure for (%d) elements", count);
 	}
-	status = cairo_get_dash (cr, dashes, &offset);
-	CAIRO_PERL_CHECK_STATUS (status);
+	cairo_get_dash (cr, dashes, &offset);
 	EXTEND (sp, count + 1);
 	PUSHs (sv_2mortal (newSVnv (offset)));
 	for (i = 0; i < count; i++)

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-perl/ChangeLog,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- ChangeLog	18 Jan 2007 19:53:39 -0000	1.51
+++ ChangeLog	21 Jan 2007 15:09:07 -0000	1.52
@@ -1,3 +1,9 @@
+2007-01-21	tsch
+
+	* Cairo.xs: Track upstream API change: cairo_get_dash_count
+	returns the count directly; cairo_get_dash_count and
+	cairo_get_dash don't return a status anymore.
+
 2007-01-18	tsch
 
 	* t/Cairo.t, Cairo.xs: Track upstream API improvement:



More information about the cairo-commit mailing list