summaryrefslogtreecommitdiff
path: root/src/cairo-path-fill.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-12-09 20:44:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-12-12 11:11:49 +0000
commitbcb2724920aa1bca1a9a82b5017d3180f5f9523e (patch)
tree4a7f2c3f3c96f2d91611e90e06472e856bf4bda3 /src/cairo-path-fill.c
parent68b29cafa597128e7cae86608e04ecae6070dad9 (diff)
downloadcairo-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-fill.c')
-rw-r--r--src/cairo-path-fill.c33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/cairo-path-fill.c b/src/cairo-path-fill.c
index 089232d43..9569c9e90 100644
--- a/src/cairo-path-fill.c
+++ b/src/cairo-path-fill.c
@@ -47,27 +47,6 @@ typedef struct cairo_filler {
} cairo_filler_t;
static void
-_cairo_filler_init (cairo_filler_t *filler, double tolerance, cairo_traps_t *traps);
-
-static void
-_cairo_filler_fini (cairo_filler_t *filler);
-
-static cairo_status_t
-_cairo_filler_move_to (void *closure, cairo_point_t *point);
-
-static cairo_status_t
-_cairo_filler_line_to (void *closure, cairo_point_t *point);
-
-static cairo_status_t
-_cairo_filler_curve_to (void *closure,
- cairo_point_t *b,
- cairo_point_t *c,
- cairo_point_t *d);
-
-static cairo_status_t
-_cairo_filler_close_path (void *closure);
-
-static void
_cairo_filler_init (cairo_filler_t *filler, double tolerance, cairo_traps_t *traps)
{
filler->tolerance = tolerance;
@@ -86,7 +65,8 @@ _cairo_filler_fini (cairo_filler_t *filler)
}
static cairo_status_t
-_cairo_filler_move_to (void *closure, cairo_point_t *point)
+_cairo_filler_move_to (void *closure,
+ const cairo_point_t *point)
{
cairo_filler_t *filler = closure;
cairo_polygon_t *polygon = &filler->polygon;
@@ -100,7 +80,8 @@ _cairo_filler_move_to (void *closure, cairo_point_t *point)
}
static cairo_status_t
-_cairo_filler_line_to (void *closure, cairo_point_t *point)
+_cairo_filler_line_to (void *closure,
+ const cairo_point_t *point)
{
cairo_filler_t *filler = closure;
cairo_polygon_t *polygon = &filler->polygon;
@@ -114,9 +95,9 @@ _cairo_filler_line_to (void *closure, cairo_point_t *point)
static cairo_status_t
_cairo_filler_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_filler_t *filler = closure;
cairo_spline_t spline;