Skip to content

Commit db8785d

Browse files
committed
Do not use tuple structs
1 parent fe67d7d commit db8785d

File tree

21 files changed

+68
-22
lines changed

21 files changed

+68
-22
lines changed

src/unix/bsd/apple/b32/align.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(16))]
3-
pub struct max_align_t([f64; 2]);
3+
pub struct max_align_t {
4+
priv_: [f64; 2]
5+
}
46
}

src/unix/bsd/apple/b64/align.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(16))]
3-
pub struct max_align_t([f64; 2]);
3+
pub struct max_align_t {
4+
priv_: [f64; 2]
5+
}
46
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(16))]
3-
pub struct max_align_t([f64; 4]);
3+
pub struct max_align_t {
4+
priv_: [f64; 4]
5+
}
46
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(8))]
3-
pub struct max_align_t([f64; 2]);
3+
pub struct max_align_t {
4+
priv_: [f64; 2]
5+
}
46
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(16))]
3-
pub struct max_align_t([f32; 8]);
3+
pub struct max_align_t {
4+
priv_: [f32; 8]
5+
}
46
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(16))]
3-
pub struct max_align_t([f64; 4]);
3+
pub struct max_align_t {
4+
priv_: [f64; 4]
5+
}
46
}

src/unix/linux_like/emscripten/align.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ macro_rules! expand_align {
22
() => {
33
s! {
44
#[repr(align(8))]
5-
pub struct max_align_t([f64; 2]);
5+
pub struct max_align_t {
6+
priv_: f64; 2]
7+
}
68

79
#[repr(align(4))]
810
pub struct pthread_mutex_t {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(8))]
3-
pub struct max_align_t([i64; 2]);
3+
pub struct max_align_t {
4+
priv_: [i64; 2]
5+
}
46
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(8))]
3-
pub struct max_align_t([f32; 4]);
3+
pub struct max_align_t {
4+
priv_: [f32; 4]
5+
}
46
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
s! {
22
#[repr(align(16))]
3-
pub struct max_align_t([f64; 6]);
3+
pub struct max_align_t {
4+
priv_: [f64; 6]
5+
}
46
}

0 commit comments

Comments
 (0)