diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-09 20:44:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-12 11:11:49 +0000 |
commit | bcb2724920aa1bca1a9a82b5017d3180f5f9523e (patch) | |
tree | 4a7f2c3f3c96f2d91611e90e06472e856bf4bda3 /src/cairo-path-bounds.c | |
parent | 68b29cafa597128e7cae86608e04ecae6070dad9 (diff) | |
download | cairo-bcb2724920aa1bca1a9a82b5017d3180f5f9523e.tar.gz |
[path] Mark points as const during _cairo_path_fixed_interpret()
Use const to document the read-only nature of the arguments passed to the
callbacks.
Diffstat (limited to 'src/cairo-path-bounds.c')
-rw-r--r-- | src/cairo-path-bounds.c | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/src/cairo-path-bounds.c b/src/cairo-path-bounds.c index 6245cd26a..b7411d29a 100644 --- a/src/cairo-path-bounds.c +++ b/src/cairo-path-bounds.c @@ -48,24 +48,6 @@ typedef struct cairo_path_bounder { } cairo_path_bounder_t; static void -_cairo_path_bounder_init (cairo_path_bounder_t *bounder); - -static void -_cairo_path_bounder_fini (cairo_path_bounder_t *bounder); - -static void -_cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, cairo_point_t *point); - -static cairo_status_t -_cairo_path_bounder_move_to (void *closure, cairo_point_t *point); - -static cairo_status_t -_cairo_path_bounder_line_to (void *closure, cairo_point_t *point); - -static cairo_status_t -_cairo_path_bounder_close_path (void *closure); - -static void _cairo_path_bounder_init (cairo_path_bounder_t *bounder) { bounder->has_move_to_point = FALSE; @@ -80,7 +62,8 @@ _cairo_path_bounder_fini (cairo_path_bounder_t *bounder) } static void -_cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, cairo_point_t *point) +_cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, + const cairo_point_t *point) { if (bounder->has_point) { if (point->x < bounder->min_x) @@ -105,7 +88,8 @@ _cairo_path_bounder_add_point (cairo_path_bounder_t *bounder, cairo_point_t *poi } static cairo_status_t -_cairo_path_bounder_move_to (void *closure, cairo_point_t *point) +_cairo_path_bounder_move_to (void *closure, + const cairo_point_t *point) { cairo_path_bounder_t *bounder = closure; @@ -116,7 +100,8 @@ _cairo_path_bounder_move_to (void *closure, cairo_point_t *point) } static cairo_status_t -_cairo_path_bounder_line_to (void *closure, cairo_point_t *point) +_cairo_path_bounder_line_to (void *closure, + const cairo_point_t *point) { cairo_path_bounder_t *bounder = closure; @@ -133,9 +118,9 @@ _cairo_path_bounder_line_to (void *closure, cairo_point_t *point) static cairo_status_t _cairo_path_bounder_curve_to (void *closure, - cairo_point_t *b, - cairo_point_t *c, - cairo_point_t *d) + const cairo_point_t *b, + const cairo_point_t *c, + const cairo_point_t *d) { cairo_path_bounder_t *bounder = closure; |