Skip to content

Commit

Permalink
re-generate bindings to use core instead of std
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn authored and tantaman committed Dec 27, 2023
1 parent 359e52e commit 7bffe87
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions core/rs/core/src/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,20 @@ fn bindgen_test_layout_crsql_Changes_cursor() {
#[test]
#[allow(non_snake_case)]
fn bindgen_test_layout_crsql_ExtData() {
const UNINIT: ::std::mem::MaybeUninit<crsql_ExtData> = ::std::mem::MaybeUninit::uninit();
const UNINIT: ::core::mem::MaybeUninit<crsql_ExtData> = ::core::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<crsql_ExtData>(),
::core::mem::size_of::<crsql_ExtData>(),
136usize,
concat!("Size of: ", stringify!(crsql_ExtData))
);
assert_eq!(
::std::mem::align_of::<crsql_ExtData>(),
::core::mem::align_of::<crsql_ExtData>(),
8usize,
concat!("Alignment of ", stringify!(crsql_ExtData))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pPragmaSchemaVersionStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pPragmaSchemaVersionStmt) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
Expand All @@ -282,7 +282,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pPragmaDataVersionStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pPragmaDataVersionStmt) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
Expand All @@ -292,7 +292,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pragmaDataVersion) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pragmaDataVersion) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
Expand All @@ -302,7 +302,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dbVersion) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).dbVersion) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
Expand All @@ -312,7 +312,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pendingDbVersion) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pendingDbVersion) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
Expand All @@ -322,7 +322,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pragmaSchemaVersion) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pragmaSchemaVersion) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
Expand All @@ -332,7 +332,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).updatedTableInfosThisTx) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).updatedTableInfosThisTx) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
Expand All @@ -343,7 +343,7 @@ fn bindgen_test_layout_crsql_ExtData() {
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).pragmaSchemaVersionForTableInfos) as usize - ptr as usize
::core::ptr::addr_of!((*ptr).pragmaSchemaVersionForTableInfos) as usize - ptr as usize
},
48usize,
concat!(
Expand All @@ -354,7 +354,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).siteId) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).siteId) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
Expand All @@ -364,7 +364,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pDbVersionStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pDbVersionStmt) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
Expand All @@ -374,7 +374,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tableInfos) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).tableInfos) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
Expand All @@ -384,7 +384,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rowsImpacted) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).rowsImpacted) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
Expand All @@ -394,7 +394,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).seq) as usize - ptr as usize },
84usize,
concat!(
"Offset of field: ",
Expand All @@ -404,7 +404,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pSetSyncBitStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pSetSyncBitStmt) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
Expand All @@ -414,7 +414,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pClearSyncBitStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pClearSyncBitStmt) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
Expand All @@ -424,7 +424,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pSetSiteIdOrdinalStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pSetSiteIdOrdinalStmt) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
Expand All @@ -434,7 +434,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pSelectSiteIdOrdinalStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pSelectSiteIdOrdinalStmt) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
Expand All @@ -444,7 +444,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pSelectClockTablesStmt) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).pSelectClockTablesStmt) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
Expand All @@ -454,7 +454,7 @@ fn bindgen_test_layout_crsql_ExtData() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mergeEqualValues) as usize - ptr as usize },
unsafe { ::core::ptr::addr_of!((*ptr).mergeEqualValues) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
Expand Down

0 comments on commit 7bffe87

Please sign in to comment.