Files
clang-p2996/libc/include/search.yaml
Roland McGrath 6ad0dcf67f [libc] Revamp hdrgen command line and build integration (#121522)
This adds a new main command-line entry point for hdrgen, in the
new main.py.  This new interface is used for generating a header.
The old ways of invoking yaml_to_classes.py for other purposes
are left there for now, but `--e` is renamed to `--entry-point`
for consistency with the new CLI.

The YAML schema is expanded with the `header_template` key where
the corresponding `.h.def` file's path is given relative to where
the YAML file is found.  The build integration no longer gives
the `.h.def` path on the command line.  Instead, the script now
emits a depfile that's used by the cmake rules to track that.
The output file is always explicit in the script command line
rather than sometimes being derived from a directory path.
2025-01-07 15:56:12 -08:00

72 lines
1.4 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: __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