Ping: [PATCH] Add inline bsearch expansion

Roland McGrath roland@hack.frob.com
Thu Feb 7 20:56:00 GMT 2013


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



More information about the Libc-alpha mailing list