mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 14:03:39 +00:00
cgo: implement char type
This type is a bit more difficult because it can be signed or unsigned depending on the target platform.
This commit is contained in:
committed by
Ron Evans
parent
b2e96fc35a
commit
9c46ac4eed
@@ -66,6 +66,7 @@ var cgoAliases = map[string]string{
|
||||
// somehow from C. This is done by adding some typedefs to get the size of each
|
||||
// type.
|
||||
const cgoTypes = `
|
||||
typedef char _Cgo_char;
|
||||
typedef signed char _Cgo_schar;
|
||||
typedef unsigned char _Cgo_uchar;
|
||||
typedef short _Cgo_short;
|
||||
|
||||
Reference in New Issue
Block a user