llvm-project/libc/include/search.yaml
Connector Switch 7a5ce55124
[libc] Add VISIT enum for search.h (#132746)
This patch introduces the `VISIT` enum for tree search. Existing tests
ensure the correct generation of headers.
2025-03-26 10:00:32 +08:00

83 lines
1.6 KiB
YAML

header: search.h
header_template: search.h.def
macros: []
types:
- type_name: struct_hsearch_data
- type_name: ENTRY
- type_name: ACTION
- type_name: VISIT
- type_name: __lsearchcompare_t
enums: []
objects: []
functions:
- name: hcreate
standards:
- POSIX
return_type: int
arguments:
- type: size_t
- name: hcreate_r
standards: GNUExtensions
return_type: int
arguments:
- type: size_t
- type: struct hsearch_data *
- name: hdestroy
standards: GNUExtensions
return_type: void
arguments: []
- name: hdestroy_r
standards:
- POSIX
return_type: void
arguments:
- type: struct hsearch_data *
- name: hsearch
standards:
- POSIX
return_type: ENTRY *
arguments:
- type: ENTRY
- type: ACTION
- name: hsearch_r
standards: GNUExtensions
return_type: int
arguments:
- type: ENTRY
- type: ACTION
- type: ENTRY * *
- type: struct hsearch_data *
- name: insque
standards:
- POSIX
return_type: void
arguments:
- type: void *
- type: void *
- name: remque
standards:
- POSIX
return_type: void
arguments:
- type: void *
- name: lfind
standards:
- POSIX
return_type: void *
arguments:
- type: const void *
- type: const void *
- type: size_t *
- type: size_t
- type: __lsearchcompare_t
- name: lsearch
standards:
- POSIX
return_type: void *
arguments:
- type: const void *
- type: void *
- type: size_t *
- type: size_t
- type: __lsearchcompare_t