diff --git a/c/c.go b/c/c.go index 9cb38db..ce4cf09 100644 --- a/c/c.go +++ b/c/c.go @@ -21,12 +21,19 @@ import ( ) type ( - Void = [0]byte + Void = [0]byte + Char = int8 - Float = float32 - Double = float64 + Char8T = uint8 + Char16T = uint16 + Char32T = uint32 + + Float = float32 + Double = float64 + Pointer = unsafe.Pointer VaList = Pointer + FilePtr = *FILE Int = int32 diff --git a/c/ctypes_32bit.go b/c/ctypes_32bit.go index 7d64ca5..d9ba12f 100644 --- a/c/ctypes_32bit.go +++ b/c/ctypes_32bit.go @@ -25,3 +25,7 @@ type ( Long = int32 Ulong = uint32 ) + +type ( + WcharT = int32 +) diff --git a/c/ctypes_windows.go b/c/ctypes_windows.go index 1ca0749..f4897db 100644 --- a/c/ctypes_windows.go +++ b/c/ctypes_windows.go @@ -24,3 +24,7 @@ type ( Long = int32 Ulong = uint32 ) + +type ( + WcharT = uint16 +) diff --git a/c/llcppg.pub b/c/llcppg.pub index 66f8ef8..0c53833 100644 --- a/c/llcppg.pub +++ b/c/llcppg.pub @@ -1,6 +1,10 @@ D github.com/goplus/lib/c/os D github.com/goplus/lib/c/time T FILE FILE +T wchar_t WcharT +T char8_t Char8T +T char16_t Char16T +T char32_t Char32T T size_t SizeT T ssize_t SsizeT T ptrdiff_t PtrdiffT