diff options
author | Carl Worth <cworth@cworth.org> | 2005-06-03 14:51:57 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-06-03 14:51:57 +0000 |
commit | 36beed9bf1b3ddef42e0fb1a46035ed4a6afa4f7 (patch) | |
tree | 0521492031275c76e49feb05067a4c199bfc6098 /src/cairo-spline.c | |
parent | f87fd91bcf06a1e7a9332005b5d88d6b55c82548 (diff) | |
download | cairo-36beed9bf1b3ddef42e0fb1a46035ed4a6afa4f7.tar.gz |
Add CODING_STYLE document to standardize on some style issues.
Standardize brace handling around all else clauses according to new CODING_STYLE guidelines.
Diffstat (limited to 'src/cairo-spline.c')
-rw-r--r-- | src/cairo-spline.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/cairo-spline.c b/src/cairo-spline.c index 5119a8e2b..60ad6c54d 100644 --- a/src/cairo-spline.c +++ b/src/cairo-spline.c @@ -64,23 +64,21 @@ _cairo_spline_init (cairo_spline_t *spline, spline->c = *c; spline->d = *d; - if (a->x != b->x || a->y != b->y) { + if (a->x != b->x || a->y != b->y) _cairo_slope_init (&spline->initial_slope, &spline->a, &spline->b); - } else if (a->x != c->x || a->y != c->y) { + else if (a->x != c->x || a->y != c->y) _cairo_slope_init (&spline->initial_slope, &spline->a, &spline->c); - } else if (a->x != d->x || a->y != d->y) { + else if (a->x != d->x || a->y != d->y) _cairo_slope_init (&spline->initial_slope, &spline->a, &spline->d); - } else { + else return CAIRO_INT_STATUS_DEGENERATE; - } - if (c->x != d->x || c->y != d->y) { + if (c->x != d->x || c->y != d->y) _cairo_slope_init (&spline->final_slope, &spline->c, &spline->d); - } else if (b->x != d->x || b->y != d->y) { + else if (b->x != d->x || b->y != d->y) _cairo_slope_init (&spline->final_slope, &spline->b, &spline->d); - } else { + else _cairo_slope_init (&spline->final_slope, &spline->a, &spline->d); - } spline->num_points = 0; spline->points_size = 0; |