This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: [PATCH] __compar_fn_t


On Aug  8 12:59, Yaakov (Cygwin/X) wrote:
> The attached patch uses the __compar_fn_t typedef for the function
> pointer types of bsearch, qsort, tsearch and friends, as in glibc.
> This fixes the build of gedit-code-assistance on Cygwin.
> 
> 
> Yaakov
> Cygwin/X

> 2013-08-08  Yaakov Selkowitz  <yselkowitz@...>
> 
> 	* libc/include/search.h (__compar_fn_t): Add typedef.
> 	(tdelete, tfind, tsearch): Use it.
> 	* libc/include/stdlib.h (__compar_fn_t): Add typedef.
> 	(bsearch, qsort): Use it.

The patch is ok, but I'm wondering if this shouldn't be brought to the
attention of the upstream maintainers.  __compar_fn_t is not backed by
the standards, nor is it available on the BSDs.  Did they plan to run
this tool only on Linux?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat


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