Merge branch 'verify-strings-includes' into 'master'

verify strings header includes

See merge request redox-os/relibc!1218
This commit is contained in:
Jeremy Soller
2026-04-22 06:36:07 -06:00
+14 -1
View File
@@ -1,9 +1,22 @@
sys_includes = ["features.h", "stddef.h", "stdint.h"]
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/strings.h.html
#
# Spec quotations relating to includes:
# - "The <strings.h> header shall define the locale_t type as described in <locale.h>."
# - "The <strings.h> header shall define the size_t type as described in <sys/types.h>."
#
# sys/types.h gets size_t from stddef.h (just include stddef.h here instead of importing all of sys/types.h)
# features.h required for deprecated annotations
sys_includes = ["features.h", "stddef.h"]
include_guard = "_RELIBC_STRINGS_H"
after_includes = """
#include <bits/locale-t.h> // for locale_t from locale.h
"""
language = "C"
style = "Tag"
no_includes = true
cpp_compat = true
# make size_t actually size_t instead of uintptr_t (which would require stdint.h)
usize_is_size_t = true
[enum]
prefix_with_name = true