modffi: Support short types.
This commit is contained in:
parent
8139494e54
commit
a23475979b
|
@ -100,6 +100,8 @@ STATIC ffi_type *char2ffi_type(char c)
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'b': return &ffi_type_schar;
|
case 'b': return &ffi_type_schar;
|
||||||
case 'B': return &ffi_type_uchar;
|
case 'B': return &ffi_type_uchar;
|
||||||
|
case 'h': return &ffi_type_sshort;
|
||||||
|
case 'H': return &ffi_type_ushort;
|
||||||
case 'i': return &ffi_type_sint;
|
case 'i': return &ffi_type_sint;
|
||||||
case 'I': return &ffi_type_uint;
|
case 'I': return &ffi_type_uint;
|
||||||
case 'l': return &ffi_type_slong;
|
case 'l': return &ffi_type_slong;
|
||||||
|
|
Loading…
Reference in New Issue