core1: use C repr in attribute writeback

This commit is contained in:
Simon Renblad 2025-02-06 14:34:18 +08:00
parent a82d356f52
commit 21a4a0b5dd

View File

@ -25,12 +25,14 @@ extern "C" {
}
unsafe fn attribute_writeback(typeinfo: *const ()) {
#[repr(C)]
struct Attr {
offset: usize,
tag: CSlice<'static, u8>,
name: CSlice<'static, u8>,
}
#[repr(C)]
struct Type {
attributes: *const *const Attr,
objects: *const *const (),