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:
Ayke van Laethem
2019-04-20 15:10:27 +02:00
committed by Ron Evans
parent b2e96fc35a
commit 9c46ac4eed
6 changed files with 20 additions and 1 deletions
+1
View File
@@ -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;