Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions c/c.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions c/ctypes_32bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ type (
Long = int32
Ulong = uint32
)

type (
WcharT = int32
)
4 changes: 4 additions & 0 deletions c/ctypes_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ type (
Long = int32
Ulong = uint32
)

type (
WcharT = uint16
)
4 changes: 4 additions & 0 deletions c/llcppg.pub
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading