[CPML] Changed n_points type from int to size_t
commit20e2516e1d0dbb0a550bda3910cc0f6d5f0516ef
authorNicola Fontana <ntd@entidi.it>
Sat, 13 Feb 2010 14:17:32 +0000 (13 15:17 +0100)
committerNicola Fontana <ntd@entidi.it>
Sat, 13 Feb 2010 14:17:32 +0000 (13 15:17 +0100)
tree62974ba4feb858de2071e91f482d7556fe0bbf6b
parente4a699097726da9115a17a23d39299ff872aa385
[CPML] Changed n_points type from int to size_t

Updated to use size_t for expressing point number: it is the only proper
way. Changed the implementation to return 0 instead of -1 on errors and
updated the library accordingly.

The n_point arg in cpml_primitive_get_point() is still an int because
negative offsets are accepted.
cpml/cpml-internal.h
cpml/cpml-primitive-private.h
cpml/cpml-primitive.c
cpml/cpml-primitive.h
cpml/cpml-segment.c
cpml/cpml-util.h
cpml/cpml.h