[cairo-commit] rcairo/packages/cairo/ext rb_cairo_exception.c, 1.5, 1.6

Kouhei Sutou commit at pdx.freedesktop.org
Fri Oct 7 05:59:05 PDT 2005


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory gabe:/tmp/cvs-serv27036/packages/cairo/ext

Modified Files:
	rb_cairo_exception.c 
Log Message:
* packages/cairo/ext/rb_cairo_exception.c: Sorted "case" in the
  order of declaration cairo_status_t in cairo.h.


Index: rb_cairo_exception.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo_exception.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- rb_cairo_exception.c	13 Sep 2005 16:22:29 -0000	1.5
+++ rb_cairo_exception.c	7 Oct 2005 12:59:03 -0000	1.6
@@ -10,17 +10,17 @@
 
 #include "rb_cairo.h"
 
-static VALUE rb_eCairo_InvalidPopGroupError;
 static VALUE rb_eCairo_InvalidRestoreError;
+static VALUE rb_eCairo_InvalidPopGroupError;
 static VALUE rb_eCairo_NoCurrentPointError;
 static VALUE rb_eCairo_InvalidMatrixError;
 static VALUE rb_eCairo_InvalidStatusError;
 static VALUE rb_eCairo_NullPointerError;
-static VALUE rb_eCairo_WriteError;
-static VALUE rb_eCairo_SurfaceFinishedError;
 static VALUE rb_eCairo_InvalidStringError;
 static VALUE rb_eCairo_InvalidPathDataError;
 static VALUE rb_eCairo_ReadError;
+static VALUE rb_eCairo_WriteError;
+static VALUE rb_eCairo_SurfaceFinishedError;
 static VALUE rb_eCairo_SurfaceTypeMismatchError;
 static VALUE rb_eCairo_PatternTypeMismatchError;
 static VALUE rb_eCairo_InvalidContentError;
@@ -59,12 +59,6 @@
     case CAIRO_STATUS_NULL_POINTER:
       rb_raise (rb_eCairo_NullPointerError, string);
       break;
-    case CAIRO_STATUS_WRITE_ERROR:
-      rb_raise (rb_eCairo_WriteError, string);
-      break;
-    case CAIRO_STATUS_SURFACE_FINISHED:
-      rb_raise (rb_eCairo_SurfaceFinishedError, string);
-      break;
     case CAIRO_STATUS_INVALID_STRING:
       rb_raise (rb_eCairo_InvalidStringError, string);
       break;
@@ -74,6 +68,12 @@
     case CAIRO_STATUS_READ_ERROR:
       rb_raise (rb_eCairo_ReadError, string);
       break;
+    case CAIRO_STATUS_WRITE_ERROR:
+      rb_raise (rb_eCairo_WriteError, string);
+      break;
+    case CAIRO_STATUS_SURFACE_FINISHED:
+      rb_raise (rb_eCairo_SurfaceFinishedError, string);
+      break;
     case CAIRO_STATUS_SURFACE_TYPE_MISMATCH:
       rb_raise (rb_eCairo_SurfaceTypeMismatchError, string);
       break;
@@ -119,12 +119,6 @@
   rb_eCairo_NullPointerError =
     rb_define_class_under (rb_mCairo, "NullPointerError",
                            rb_eTypeError);
-  rb_eCairo_WriteError =
-    rb_define_class_under (rb_mCairo, "WriteError",
-                           rb_eRuntimeError);
-  rb_eCairo_SurfaceFinishedError =
-    rb_define_class_under (rb_mCairo, "SurfaceFinishedError",
-                           rb_eRuntimeError);
   rb_eCairo_InvalidStringError =
     rb_define_class_under (rb_mCairo, "InvalidStringError",
                            rb_eArgError);
@@ -134,11 +128,17 @@
   rb_eCairo_ReadError =
     rb_define_class_under (rb_mCairo, "ReadError",
                            rb_eRuntimeError);
+  rb_eCairo_WriteError =
+    rb_define_class_under (rb_mCairo, "WriteError",
+                           rb_eRuntimeError);
+  rb_eCairo_SurfaceFinishedError =
+    rb_define_class_under (rb_mCairo, "SurfaceFinishedError",
+                           rb_eRuntimeError);
   rb_eCairo_SurfaceTypeMismatchError =
-    rb_define_class_under (rb_mCairo, "SurfaceTypeMismatch",
+    rb_define_class_under (rb_mCairo, "SurfaceTypeMismatchError",
                            rb_eTypeError);
   rb_eCairo_PatternTypeMismatchError =
-    rb_define_class_under (rb_mCairo, "PatternTypeMismatch",
+    rb_define_class_under (rb_mCairo, "PatternTypeMismatchError",
                            rb_eTypeError);
   rb_eCairo_InvalidContentError =
     rb_define_class_under (rb_mCairo, "InvalidContentError",



More information about the cairo-commit mailing list