modstruct: Implement 'O', 'P', 's' types for packed structs.
This is required to deal with, well, packed C structs containing pointers.
This commit is contained in:
parent
722e562736
commit
78fde4819c
@ -58,6 +58,8 @@ int mp_binary_get_size(char struct_type, char val_type, mp_uint_t *palign) {
|
|||||||
size = 4; break;
|
size = 4; break;
|
||||||
case 'q': case 'Q':
|
case 'q': case 'Q':
|
||||||
size = 8; break;
|
size = 8; break;
|
||||||
|
case 'P': case 'O': case 'S':
|
||||||
|
size = sizeof(void*); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '@': {
|
case '@': {
|
||||||
|
Loading…
Reference in New Issue
Block a user