[cairo-commit] rcairo/src cairo.def, 1.6, 1.7 rb_cairo.h, 1.9, 1.10 rb_cairo_surface.c, 1.15, 1.16

Kouhei Sutou commit at pdx.freedesktop.org
Fri Jan 11 04:18:36 PST 2008


Committed by: kou

Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv24579/src

Modified Files:
	cairo.def rb_cairo.h rb_cairo_surface.c 
Log Message:
* src/: Cairo::WIN32Surface -> Cairo::Win32Surface.


Index: cairo.def
===================================================================
RCS file: /cvs/cairo/rcairo/src/cairo.def,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cairo.def	11 Jan 2008 08:03:39 -0000	1.6
+++ cairo.def	11 Jan 2008 12:18:34 -0000	1.7
@@ -26,7 +26,7 @@
     rb_cCairo_PDFSurface      DATA
     rb_cCairo_PSSurface       DATA
     rb_cCairo_SVGSurface      DATA
-    rb_cCairo_WIN32Surface    DATA
+    rb_cCairo_Win32Surface    DATA
     rb_cCairo_QuartzSurface   DATA
 
     rb_mCairo_Operator        DATA

Index: rb_cairo.h
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- rb_cairo.h	11 Jan 2008 08:03:39 -0000	1.9
+++ rb_cairo.h	11 Jan 2008 12:18:34 -0000	1.10
@@ -103,7 +103,9 @@
 RB_CAIRO_VAR VALUE rb_cCairo_PDFSurface;
 RB_CAIRO_VAR VALUE rb_cCairo_PSSurface;
 RB_CAIRO_VAR VALUE rb_cCairo_SVGSurface;
-RB_CAIRO_VAR VALUE rb_cCairo_WIN32Surface;
+RB_CAIRO_VAR VALUE rb_cCairo_Win32Surface;
+/* For backward compatibility*/
+#define rb_cCairo_WIN32Surface rb_cCairo_Win32Surface
 RB_CAIRO_VAR VALUE rb_cCairo_QuartzSurface;
 
 RB_CAIRO_VAR VALUE rb_mCairo_Operator;

Index: rb_cairo_surface.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_surface.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- rb_cairo_surface.c	11 Jan 2008 11:28:26 -0000	1.15
+++ rb_cairo_surface.c	11 Jan 2008 12:18:34 -0000	1.16
@@ -29,7 +29,7 @@
 VALUE rb_cCairo_PDFSurface = Qnil;
 VALUE rb_cCairo_PSSurface = Qnil;
 VALUE rb_cCairo_SVGSurface = Qnil;
-VALUE rb_cCairo_WIN32Surface = Qnil;
+VALUE rb_cCairo_Win32Surface = Qnil;
 VALUE rb_cCairo_QuartzSurface = Qnil;
 
 static ID cr_id_target;
@@ -1007,15 +1007,15 @@
 #endif
 
 #if CAIRO_HAS_WIN32_SURFACE
-  /* WIN32-surface */
-  rb_cCairo_WIN32Surface =
-    rb_define_class_under (rb_mCairo, "WIN32Surface", rb_cCairo_Surface);
+  /* Win32-surface */
+  rb_cCairo_Win32Surface =
+    rb_define_class_under (rb_mCairo, "Win32Surface", rb_cCairo_Surface);
 
-  rb_define_method (rb_cCairo_WIN32Surface, "initialize",
+  rb_define_method (rb_cCairo_Win32Surface, "initialize",
                     cr_win32_surface_initialize, -1);
-  rb_define_method (rb_cCairo_WIN32Surface, "hdc",
+  rb_define_method (rb_cCairo_Win32Surface, "hdc",
                     cr_win32_surface_get_hdc, 0);
-  rb_define_method (rb_cCairo_WIN32Surface, "image",
+  rb_define_method (rb_cCairo_Win32Surface, "image",
                     cr_win32_surface_get_image, 0);
 #endif
 



More information about the cairo-commit mailing list