2001-04-23 20:20:55 +02:00
|
|
|
/*
|
|
|
|
* Heap definitions
|
|
|
|
*
|
|
|
|
* Copyright 2001 Francois Gouget.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2001-04-23 20:20:55 +02:00
|
|
|
*/
|
|
|
|
#ifndef __WINE_SEARCH_H
|
|
|
|
#define __WINE_SEARCH_H
|
|
|
|
|
2008-12-11 22:37:34 +01:00
|
|
|
#include <crtdefs.h>
|
2001-04-23 20:20:55 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-08-22 19:40:58 +02:00
|
|
|
void* __cdecl _lfind(const void*,const void*,unsigned int*,unsigned int,int (__cdecl *)(const void*,const void*));
|
|
|
|
void* __cdecl _lsearch(const void*,void*,unsigned int*,unsigned int,int (__cdecl *)(const void*,const void*));
|
|
|
|
void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
|
|
|
|
void __cdecl qsort(void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
|
2001-04-23 20:20:55 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2016-08-22 19:40:58 +02:00
|
|
|
static inline void* lfind(const void* match, const void* start, unsigned int* array_size, unsigned int elem_size, int (__cdecl *cf)(const void*,const void*))
|
|
|
|
{ return _lfind(match, start, array_size, elem_size, cf); }
|
|
|
|
static inline void* lsearch(const void* match, void* start, unsigned int* array_size, unsigned int elem_size, int (__cdecl *cf)(const void*,const void*) )
|
|
|
|
{ return _lsearch(match, start, array_size, elem_size, cf); }
|
2001-04-23 20:20:55 +02:00
|
|
|
|
|
|
|
#endif /* __WINE_SEARCH_H */
|