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:
parent
9558dd20e1
commit
a360628e95
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user