Merge pull request #1353 from gwenn/bindgen

Tweak bindgen
This commit is contained in:
gwenn 2023-06-18 12:31:08 +02:00 committed by GitHub
commit 3fe9a7f2cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 15 deletions

View File

@ -487,8 +487,7 @@ mod bindings {
use super::HeaderLocation;
use bindgen::callbacks::{IntKind, ParseCallbacks};
use std::fs::OpenOptions;
use std::io::Write;
use std::fs;
use std::path::Path;
use super::win_target;
@ -625,10 +624,7 @@ mod bindings {
.blocklist_function("sqlite3_vsnprintf")
.blocklist_function("sqlite3_str_vappendf")
.blocklist_type("va_list")
.blocklist_type("__builtin_va_list")
.blocklist_type("__gnuc_va_list")
.blocklist_type("__va_list_tag")
.blocklist_item("__GNUC_VA_LIST");
.blocklist_item("__.*");
}
bindings
@ -649,14 +645,7 @@ mod bindings {
output.push_str("\npub const SQLITE_DETERMINISTIC: i32 = 2048;\n");
}
let mut file = OpenOptions::new()
.write(true)
.truncate(true)
.create(true)
.open(out_path)
.unwrap_or_else(|_| panic!("Could not write to {:?}", out_path));
file.write_all(output.as_bytes())
fs::write(out_path, output.as_bytes())
.unwrap_or_else(|_| panic!("Could not write to {:?}", out_path));
}
}

View File

@ -2881,7 +2881,6 @@ pub struct sqlite3_rtree_query_info {
pub const NOT_WITHIN: i32 = 0;
pub const PARTLY_WITHIN: i32 = 1;
pub const FULLY_WITHIN: i32 = 2;
pub const __SQLITESESSION_H_: i32 = 1;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sqlite3_session {