2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-02-12 18:43:19 +08:00

core1: use repr C in attribute writeback

This commit is contained in:
Simon Renblad 2025-02-06 15:06:24 +08:00 committed by Sébastien Bourdeauducq
parent 9558dd20e1
commit a360628e95

View File

@ -562,12 +562,14 @@ extern "C-unwind" fn subkernel_await_message(id: i32, timeout: i64, tags: &CSlic
}
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 ()