This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ping: [PATCH] Add inline bsearch expansion


Don't even bother asking for approval if you aren't including a proper
ChangeLog entry.

Use __compar_fn_t in the declaration like the existing header declaration
does.

We should avoid duplicating the code (even though clearly this code is
never going to change).  One way to do that would be to put the definition
into a new file bits/stdlib-bsearch.h that stdlib.h includes under
__USE_EXTERN_INLINES.  Then stdlib/bsearch.c can do:

	#include <stdlib.h>

	#undef	__extern_inline
	#define	__extern_inline	/* Empty, so we get a normal definition.  */
	#include <bits/stdlib-bsearch.h>


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]