src/OCArray.c
// Careful: Apple C library had different definition for qsort_r than linux.
// In Apple version context is the first argument instead of the last.
Apple C library had different definition for qsort_r than linux.
In Apple version context is the first argument instead of the last.
Apple C library had different definition for qsort_r than linux . In Apple version context is the first argument instead of the last .
OCComparisonResult qsortCompare(void *context, const void *val1, const void *val2)
{
    struct qsortContext *myContext = (struct qsortContext *) context;
    return myContext->comparator(*((const void **) val1),*((const void **) val2),myContext->context);
}
OCComparisonResult qsortCompare ( void * context , const void * val1 , const void * val2 ) { struct qsortContext * myContext = ( struct qsortContext * ) context ; return myContext -> comparator ( * ( ( const void * * ) val1 ) , * ( ( const void * * ) val2 ) , myContext -> context ) ; }
Careful: Apple C library had different definition for qsort_r than linux.
Careful : Apple C library had different definition for qsort_r than linux .