mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +00:00
[CRT]
* Annotate search.h. svn path=/trunk/; revision=59817
This commit is contained in:
parent
12e38303a3
commit
2dc8971f36
1 changed files with 68 additions and 9 deletions
|
@ -3,6 +3,7 @@
|
||||||
* This file is part of the w64 mingw-runtime package.
|
* This file is part of the w64 mingw-runtime package.
|
||||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _INC_SEARCH
|
#ifndef _INC_SEARCH
|
||||||
#define _INC_SEARCH
|
#define _INC_SEARCH
|
||||||
|
|
||||||
|
@ -15,15 +16,73 @@ extern "C" {
|
||||||
|
|
||||||
#ifndef _CRT_ALGO_DEFINED
|
#ifndef _CRT_ALGO_DEFINED
|
||||||
#define _CRT_ALGO_DEFINED
|
#define _CRT_ALGO_DEFINED
|
||||||
void *__cdecl bsearch(const void *_Key,const void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
|
||||||
void __cdecl qsort(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
|
||||||
#endif
|
|
||||||
_CRTIMP void *__cdecl _lfind(const void *_Key,const void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
|
||||||
_CRTIMP void *__cdecl _lsearch(const void *_Key,void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
|
||||||
|
|
||||||
#ifndef NO_OLDNAMES
|
_Check_return_
|
||||||
_CRTIMP void *__cdecl lfind(const void *_Key,const void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
void *
|
||||||
_CRTIMP void *__cdecl lsearch(const void *_Key,void *_Base,unsigned int *_NumOfElements,unsigned int _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));
|
__cdecl
|
||||||
|
bsearch(
|
||||||
|
_In_ const void *_Key,
|
||||||
|
_In_reads_bytes_(_NumOfElements * _SizeOfElements) const void *_Base,
|
||||||
|
_In_ size_t _NumOfElements,
|
||||||
|
_In_ size_t _SizeOfElements,
|
||||||
|
_In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
|
||||||
|
|
||||||
|
void
|
||||||
|
__cdecl
|
||||||
|
qsort(
|
||||||
|
_Inout_updates_bytes_(_NumOfElements * _SizeOfElements) void *_Base,
|
||||||
|
_In_ size_t _NumOfElements,
|
||||||
|
_In_ size_t _SizeOfElements,
|
||||||
|
_In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_Check_return_
|
||||||
|
_CRTIMP
|
||||||
|
void *
|
||||||
|
__cdecl
|
||||||
|
_lfind(
|
||||||
|
_In_ const void *_Key,
|
||||||
|
_In_reads_bytes_((*_NumOfElements) * _SizeOfElements) const void *_Base,
|
||||||
|
_Inout_ unsigned int *_NumOfElements,
|
||||||
|
_In_ unsigned int _SizeOfElements,
|
||||||
|
_In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
|
||||||
|
|
||||||
|
_Check_return_
|
||||||
|
_CRTIMP
|
||||||
|
void *
|
||||||
|
__cdecl
|
||||||
|
_lsearch(
|
||||||
|
_In_ const void *_Key,
|
||||||
|
_Inout_updates_bytes_((*_NumOfElements) * _SizeOfElements) void *_Base,
|
||||||
|
_Inout_ unsigned int *_NumOfElements,
|
||||||
|
_In_ unsigned int _SizeOfElements,
|
||||||
|
_In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
|
||||||
|
|
||||||
|
#ifndef NO_OLDNAMES
|
||||||
|
|
||||||
|
_Check_return_
|
||||||
|
_CRTIMP
|
||||||
|
void *
|
||||||
|
__cdecl
|
||||||
|
lfind(
|
||||||
|
_In_ const void *_Key,
|
||||||
|
_In_reads_bytes_((*_NumOfElements) * _SizeOfElements) const void *_Base,
|
||||||
|
_Inout_ unsigned int *_NumOfElements,
|
||||||
|
_In_ unsigned int _SizeOfElements,
|
||||||
|
_In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
|
||||||
|
|
||||||
|
_Check_return_
|
||||||
|
_CRTIMP
|
||||||
|
void *
|
||||||
|
__cdecl
|
||||||
|
lsearch(
|
||||||
|
_In_ const void *_Key,
|
||||||
|
_Inout_updates_bytes_((*_NumOfElements) * _SizeOfElements) void *_Base,
|
||||||
|
_Inout_ unsigned int *_NumOfElements,
|
||||||
|
_In_ unsigned int _SizeOfElements,
|
||||||
|
_In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -32,4 +91,4 @@ extern "C" {
|
||||||
|
|
||||||
#include <sec_api/search_s.h>
|
#include <sec_api/search_s.h>
|
||||||
|
|
||||||
#endif
|
#endif /*_INC_SEARCH */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue