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.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.c')
-rw-r--r-- | src/cairo-path.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/cairo-path.c b/src/cairo-path.c index 84dfc0c45..6572da9c4 100644 --- a/src/cairo-path.c +++ b/src/cairo-path.c @@ -48,7 +48,8 @@ typedef struct cairo_path_count { } cpc_t; static cairo_status_t -_cpc_move_to (void *closure, cairo_point_t *point) +_cpc_move_to (void *closure, + const cairo_point_t *point) { cpc_t *cpc = closure; @@ -60,7 +61,8 @@ _cpc_move_to (void *closure, cairo_point_t *point) } static cairo_status_t -_cpc_line_to (void *closure, cairo_point_t *point) +_cpc_line_to (void *closure, + const cairo_point_t *point) { cpc_t *cpc = closure; @@ -73,9 +75,9 @@ _cpc_line_to (void *closure, cairo_point_t *point) static cairo_status_t _cpc_curve_to (void *closure, - cairo_point_t *p1, - cairo_point_t *p2, - cairo_point_t *p3) + const cairo_point_t *p1, + const cairo_point_t *p2, + const cairo_point_t *p3) { cpc_t *cpc = closure; @@ -141,7 +143,8 @@ typedef struct cairo_path_populate { } cpp_t; static cairo_status_t -_cpp_move_to (void *closure, cairo_point_t *point) +_cpp_move_to (void *closure, + const cairo_point_t *point) { cpp_t *cpp = closure; cairo_path_data_t *data = cpp->data; @@ -167,7 +170,8 @@ _cpp_move_to (void *closure, cairo_point_t *point) } static cairo_status_t -_cpp_line_to (void *closure, cairo_point_t *point) +_cpp_line_to (void *closure, + const cairo_point_t *point) { cpp_t *cpp = closure; cairo_path_data_t *data = cpp->data; @@ -193,10 +197,10 @@ _cpp_line_to (void *closure, cairo_point_t *point) } static cairo_status_t -_cpp_curve_to (void *closure, - cairo_point_t *p1, - cairo_point_t *p2, - cairo_point_t *p3) +_cpp_curve_to (void *closure, + const cairo_point_t *p1, + const cairo_point_t *p2, + const cairo_point_t *p3) { cpp_t *cpp = closure; cairo_path_data_t *data = cpp->data; |