From 6c4cb922494c32e7b8da72fef682c2319176e3fc Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Wed, 27 Nov 2024 23:48:02 +0800 Subject: [PATCH] c:stdint type --- c/c.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/c/c.go b/c/c.go index a68a4720..e9ba88d5 100644 --- a/c/c.go +++ b/c/c.go @@ -51,6 +51,15 @@ type integer interface { ~int | ~uint | ~uintptr | ~int32 | ~uint32 | ~int64 | ~uint64 } +type SizeT = uintptr + +type IntptrT = uintptr +type UintptrT = uintptr +type Int8T = int8 +type Int16T = int16 +type Int32T = int32 +type Int64T = int64 + //go:linkname Str llgo.cstr func Str(string) *Char