Replace PACKED_STRUCT and PACKED_STRUCT_UNALIGNED

This commit is contained in:
Nobuyoshi Nakada 2023-02-08 12:21:58 +09:00
parent fefe37f98d
commit a56d959ed5
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2023-02-08 06:21:27 +00:00
4 changed files with 15 additions and 13 deletions

5
iseq.h
View file

@ -270,10 +270,11 @@ struct iseq_catch_table_entry {
unsigned int sp;
};
PACKED_STRUCT_UNALIGNED(struct iseq_catch_table {
RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_BEGIN()
struct iseq_catch_table {
unsigned int size;
struct iseq_catch_table_entry entries[FLEX_ARY_LEN];
});
} RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_END();
static inline int
iseq_catch_table_bytes(int n)