[CpmlPair] Return nothing from pair setters
commit4111815afe3c2023da0e9e48ef4df2b2feffdf48
authorNicola Fontana <ntd@entidi.it>
Fri, 29 Jan 2010 17:14:36 +0000 (29 18:14 +0100)
committerNicola Fontana <ntd@entidi.it>
Fri, 29 Jan 2010 17:14:36 +0000 (29 18:14 +0100)
treee6f03389d5e9a5a7b98b935f76a210ea9f4d0dc6
parentc29fecd099a65d1908d0e23cb3691a4680e360a2
[CpmlPair] Return nothing from pair setters

Do not return CpmlPair/CpmlVector from cpml_pair_copy(),
cpml_pair_from_cairo() and cpml_vector_from_angle() to make clear these
functions do not allocate a new pair but set a pre-existing struct.

The pointer was returned in order to minimize typing with a basic
"fluent" approach but it came out it was misleading: issue #23 provides
a good example.
adg/adg-adim.c
adg/adg-path.c
adg/adg-rdim.c
cpml/cpml-arc.c
cpml/cpml-curve.c
cpml/cpml-line.c
cpml/cpml-pair.c
cpml/cpml-pair.h