Skip to content

Commit 60ec9ce

Browse files
committed
restore repr(C)
1 parent cdcbea6 commit 60ec9ce

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

z80.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,81 +183,97 @@ impl z80 {
183183
}
184184

185185
#[derive(Copy, Clone)]
186+
#[repr(C)]
186187
pub union C2RustUnnamed_0 {
187188
pub c2rust_unnamed: C2RustUnnamed_1,
188189
pub h_l_: uint16_t,
189190
}
190191
#[derive(Copy, Clone)]
192+
#[repr(C)]
191193
pub struct C2RustUnnamed_1 {
192194
pub l_: uint8_t,
193195
pub h_: uint8_t,
194196
}
195197
#[derive(Copy, Clone)]
198+
#[repr(C)]
196199
pub union C2RustUnnamed_2 {
197200
pub c2rust_unnamed: C2RustUnnamed_3,
198201
pub d_e_: uint16_t,
199202
}
200203
#[derive(Copy, Clone)]
204+
#[repr(C)]
201205
pub struct C2RustUnnamed_3 {
202206
pub e_: uint8_t,
203207
pub d_: uint8_t,
204208
}
205209
#[derive(Copy, Clone)]
210+
#[repr(C)]
206211
pub union C2RustUnnamed_4 {
207212
pub c2rust_unnamed: C2RustUnnamed_5,
208213
pub b_c_: uint16_t,
209214
}
210215
#[derive(Copy, Clone)]
216+
#[repr(C)]
211217
pub struct C2RustUnnamed_5 {
212218
pub c_: uint8_t,
213219
pub b_: uint8_t,
214220
}
215221
#[derive(Copy, Clone)]
222+
#[repr(C)]
216223
pub union C2RustUnnamed_6 {
217224
pub c2rust_unnamed: C2RustUnnamed_7,
218225
pub a_f_: uint16_t,
219226
}
220227
#[derive(Copy, Clone)]
228+
#[repr(C)]
221229
pub struct C2RustUnnamed_7 {
222230
pub f_: uint8_t,
223231
pub a_: uint8_t,
224232
}
225233
#[derive(Copy, Clone)]
234+
#[repr(C)]
226235
pub union C2RustUnnamed_8 {
227236
pub c2rust_unnamed: C2RustUnnamed_9,
228237
pub hl: uint16_t,
229238
}
230239
#[derive(Copy, Clone)]
240+
#[repr(C)]
231241
pub struct C2RustUnnamed_9 {
232242
pub l: uint8_t,
233243
pub h: uint8_t,
234244
}
235245
#[derive(Copy, Clone)]
246+
#[repr(C)]
236247
pub union C2RustUnnamed_10 {
237248
pub c2rust_unnamed: C2RustUnnamed_11,
238249
pub de: uint16_t,
239250
}
240251
#[derive(Copy, Clone)]
252+
#[repr(C)]
241253
pub struct C2RustUnnamed_11 {
242254
pub e: uint8_t,
243255
pub d: uint8_t,
244256
}
245257
#[derive(Copy, Clone)]
258+
#[repr(C)]
246259
pub union C2RustUnnamed_12 {
247260
pub c2rust_unnamed: C2RustUnnamed_13,
248261
pub bc: uint16_t,
249262
}
250263
#[derive(Copy, Clone)]
264+
#[repr(C)]
251265
pub struct C2RustUnnamed_13 {
252266
pub c: uint8_t,
253267
pub b: uint8_t,
254268
}
255269
#[derive(Copy, Clone)]
270+
#[repr(C)]
256271
pub union C2RustUnnamed_14 {
257272
pub c2rust_unnamed: C2RustUnnamed_15,
258273
pub af: uint16_t,
259274
}
260275
#[derive(Copy, Clone)]
276+
#[repr(C)]
261277
pub struct C2RustUnnamed_15 {
262278
pub f: uint8_t,
263279
pub a: uint8_t,

0 commit comments

Comments
 (0)