move ctype bits from C to cbindgen

This commit is contained in:
auronandace
2026-03-27 08:07:18 +00:00
parent 3bdca6200e
commit 71560ce9ca
2 changed files with 7 additions and 9 deletions
-7
View File
@@ -1,7 +0,0 @@
#ifndef _BITS_CTYPE_H
#define _BITS_CTYPE_H
#define _tolower(c) tolower(c)
#define _toupper(c) toupper(c)
#endif /* _BITS_CTYPE_H */
+7 -2
View File
@@ -4,9 +4,14 @@
# - "The <ctype.h> header shall define the locale_t type as described in <locale.h>, representing a locale object."
#
# features.h included for #[deprecated] annotation
sys_includes = ["bits/ctype.h", "features.h"]
sys_includes = ["features.h"]
include_guard = "_RELIBC_CTYPE_H"
after_includes = "#include <bits/locale-t.h> // for locale_t"
after_includes = """
#include <bits/locale-t.h> // for locale_t
#define _tolower(c) tolower(c)
#define _toupper(c) toupper(c)
"""
language = "C"
style = "Tag"
no_includes = true