Add char26_t and char32_t defines for cython.

This commit is contained in:
Relintai 2023-06-02 14:57:49 +02:00
parent bf7ccb484c
commit a7d9e11f3d
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,8 @@ STDLIB_INCLUDES = {
"int32_t",
"uint64_t",
"int64_t",
"uint_least16_t",
"uint_least32_t"
],
"wchar.h": ["wchar_t", "size_t"],
"uchar.h": [
@ -369,6 +371,9 @@ if __name__ == "__main__":
from libc.stddef cimport wchar_t, size_t
from libc.stdint cimport {', '.join(STDLIB_INCLUDES['stdint.h'])}
ctypedef uint_least16_t char16_t
ctypedef uint_least32_t char32_t
cdef extern from "{header_name}" nogil:
\"\"\"