NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/43488 (rb.[hc] API critiques/problems that should be addressed before final release)



On Jun 21, 11:19am, jeremyhu%apple.com@localhost (Jeremy Huddleston) wrote:
-- Subject: Re: lib/43488 (rb.[hc] API critiques/problems that should be addr

| Actually, the comparison functions are opposite what qsort does.  qsort(3) 
says:
| 
|      The comparison function must return an integer less than, equal to, or
|      greater than zero if the first argument is considered to be respectively
|      less than, equal to, or greater than the second.
| 
| That is consistent with strcmp(3) and is opposite what rb(3) states.

I agree that this is what strcmp(3), qsort(3), and rb(3) state, and I think
it would be beneficial to change rb to behave the same for consistency.

christos


Home | Main Index | Thread Index | Old Index