Mark const.

Likewise.
Likewise.
Likewise for cb.
This commit is contained in:
Richard Henderson 2003-07-31 22:49:09 +00:00
parent 9289e8a77a
commit 83d5f0352c
9 changed files with 15 additions and 8 deletions

View file

@ -1,3 +1,10 @@
2003-07-31 Richard Henderson <rth@twiddle.net>
* 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.
2003-07-31 Richard Henderson <rth@twiddle.net>
* cairo.pc.in: Depend on slim.

View file

@ -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
};

View file

@ -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},

View file

@ -141,7 +141,7 @@ cairo_status_t
_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,

View file

@ -311,7 +311,7 @@ _cairo_path_arg_buf_add (cairo_path_arg_buf_t *arg, cairo_point_t *pts, int num_
#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 */

View file

@ -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
};

View file

@ -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},

View file

@ -311,7 +311,7 @@ _cairo_path_arg_buf_add (cairo_path_arg_buf_t *arg, cairo_point_t *pts, int num_
#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 */

View file

@ -141,7 +141,7 @@ cairo_status_t
_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,