[Commit] cairo/src cairo_color.c, 1.2, 1.3 cairo_matrix.c, 1.2,
1.3 cairo_path.c, 1.3, 1.4 cairo_path_bounds.c, 1.3, 1.4
Richard Henderson
commit at keithp.com
Thu Jul 31 23:49:12 PDT 2003
Committed by: rth
Update of /local/src/CVS/cairo/src
In directory home.keithp.com:/tmp/cvs-serv4997/src
Modified Files:
cairo_color.c cairo_matrix.c cairo_path.c cairo_path_bounds.c
Log Message:
* src/cairo_color.c (CAIRO_COLOR_DEFAULT): Mark const.
* src/cairo_matrix.c (CAIRO_MATRIX_IDENTITY): Likewise.
* src/cairo_path.c (num_args): Likewise.
* src/cairo_path_bounds.c (_cairo_path_bounds): Likewise for cb.
Index: cairo_color.c
===================================================================
RCS file: /local/src/CVS/cairo/src/cairo_color.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cairo_color.c 30 Jul 2003 15:30:51 -0000 1.2
+++ cairo_color.c 1 Aug 2003 05:49:10 -0000 1.3
@@ -27,7 +27,7 @@
#include "cairoint.h"
-static cairo_color_t CAIRO_COLOR_DEFAULT = {
+static cairo_color_t const CAIRO_COLOR_DEFAULT = {
1.0, 1.0, 1.0, 1.0,
0xffff, 0xffff, 0xffff, 0xffff
};
Index: cairo_matrix.c
===================================================================
RCS file: /local/src/CVS/cairo/src/cairo_matrix.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cairo_matrix.c 1 Aug 2003 05:41:44 -0000 1.2
+++ cairo_matrix.c 1 Aug 2003 05:49:10 -0000 1.3
@@ -30,7 +30,7 @@
#include "cairoint.h"
-static cairo_matrix_t CAIRO_MATRIX_IDENTITY = {
+static cairo_matrix_t const CAIRO_MATRIX_IDENTITY = {
{
{1, 0},
{0, 1},
Index: cairo_path.c
===================================================================
RCS file: /local/src/CVS/cairo/src/cairo_path.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cairo_path.c 30 Jul 2003 15:30:51 -0000 1.3
+++ cairo_path.c 1 Aug 2003 05:49:10 -0000 1.4
@@ -311,7 +311,7 @@
#define CAIRO_PATH_OP_MAX_ARGS 3
-static int num_args[] =
+static int const num_args[] =
{
1, /* cairo_path_move_to */
1, /* cairo_path_op_line_to */
Index: cairo_path_bounds.c
===================================================================
RCS file: /local/src/CVS/cairo/src/cairo_path_bounds.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cairo_path_bounds.c 30 Jul 2003 15:30:51 -0000 1.3
+++ cairo_path_bounds.c 1 Aug 2003 05:49:10 -0000 1.4
@@ -141,7 +141,7 @@
_cairo_path_bounds (cairo_path_t *path, double *x1, double *y1, double *x2, double *y2)
{
cairo_status_t status;
- static cairo_path_callbacks_t cb = {
+ static cairo_path_callbacks_t const cb = {
_cairo_path_bounder_add_edge,
_cairo_path_bounder_add_spline,
_cairo_path_bounder_done_sub_path,
More information about the Commit
mailing list