[redland-dev] Comparison should return in range -1..1

Dave Beckett dave at dajobe.org
Mon Aug 18 19:40:38 EDT 2014


That's a well established C sorting convention after qsort()'s sort
function, strcmp() etc.  I don't propose to change that

Dave


On Fri, 15 Aug 2014, Victor Porton wrote:

> Some of Raptor *_compare() functions are specified to return -1, 0, or 1 but some just a negative, zero, or positive number.
>
> I ask to revise the API (in backward compatible way) so that every *_compare() function would return -1..1.
>
> It is useful for Ada bindings to use the type "range -1..1" instead of arbitrary integers.
>
> --
> Victor Porton - http://portonvictor.org
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.librdf.org/mailman/listinfo/redland-dev
>
>


More information about the redland-dev mailing list