llvm-project/libc/include/locale.yaml
Alexey Samsonov ead9ac8331
[libc] Remove header templates from several C standard headers. (#188878)
Switches the following headers to hdrgen-produced ones by referencing
some macro from C standard and the file containing the declarations in
corresponding YAML files:

* limits.h (referenced _WIDTH / _MAX / _MIN families).
* locale.h (referenced LC_ family).
* time.h (referenced CLOCKS_PER_SEC).
* wchar.h (referenced WEOF).
2026-03-27 17:55:37 +00:00

64 lines
1.3 KiB
YAML

header: locale.h
standards:
- stdc
macros:
- macro_name: "NULL"
macro_header: null-macro.h
- macro_name: LC_ALL
macro_header: locale-macros.h
- macro_name: LC_COLLATE
macro_header: locale-macros.h
- macro_name: LC_CTYPE
macro_header: locale-macros.h
- macro_name: LC_MESSAGES
macro_header: locale-macros.h
- macro_name: LC_MONETARY
macro_header: locale-macros.h
- macro_name: LC_NUMERIC
macro_header: locale-macros.h
- macro_name: LC_TIME
macro_header: locale-macros.h
types:
- type_name: locale_t
- type_name: struct_lconv
functions:
- name: localeconv
standards:
- stdc
return_type: struct lconv *
arguments:
- type: void
- name: duplocale
standards:
- stdc
return_type: locale_t
arguments:
- type: locale_t
- name: freelocale
standards:
- stdc
return_type: void
arguments:
- type: locale_t
- name: newlocale
standards:
- stdc
return_type: locale_t
arguments:
- type: int
- type: const char *
- type: locale_t
- name: setlocale
standards:
- stdc
return_type: char *
arguments:
- type: int
- type: const char *
- name: uselocale
standards:
- stdc
return_type: locale_t
arguments:
- type: locale_t