mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 02:21:37 +08:00
commit
3fe9a7f2cd
@ -487,8 +487,7 @@ mod bindings {
|
|||||||
use super::HeaderLocation;
|
use super::HeaderLocation;
|
||||||
use bindgen::callbacks::{IntKind, ParseCallbacks};
|
use bindgen::callbacks::{IntKind, ParseCallbacks};
|
||||||
|
|
||||||
use std::fs::OpenOptions;
|
use std::fs;
|
||||||
use std::io::Write;
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
use super::win_target;
|
use super::win_target;
|
||||||
@ -625,10 +624,7 @@ mod bindings {
|
|||||||
.blocklist_function("sqlite3_vsnprintf")
|
.blocklist_function("sqlite3_vsnprintf")
|
||||||
.blocklist_function("sqlite3_str_vappendf")
|
.blocklist_function("sqlite3_str_vappendf")
|
||||||
.blocklist_type("va_list")
|
.blocklist_type("va_list")
|
||||||
.blocklist_type("__builtin_va_list")
|
.blocklist_item("__.*");
|
||||||
.blocklist_type("__gnuc_va_list")
|
|
||||||
.blocklist_type("__va_list_tag")
|
|
||||||
.blocklist_item("__GNUC_VA_LIST");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bindings
|
bindings
|
||||||
@ -649,14 +645,7 @@ mod bindings {
|
|||||||
output.push_str("\npub const SQLITE_DETERMINISTIC: i32 = 2048;\n");
|
output.push_str("\npub const SQLITE_DETERMINISTIC: i32 = 2048;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut file = OpenOptions::new()
|
fs::write(out_path, output.as_bytes())
|
||||||
.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())
|
|
||||||
.unwrap_or_else(|_| panic!("Could not write to {:?}", out_path));
|
.unwrap_or_else(|_| panic!("Could not write to {:?}", out_path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2881,7 +2881,6 @@ pub struct sqlite3_rtree_query_info {
|
|||||||
pub const NOT_WITHIN: i32 = 0;
|
pub const NOT_WITHIN: i32 = 0;
|
||||||
pub const PARTLY_WITHIN: i32 = 1;
|
pub const PARTLY_WITHIN: i32 = 1;
|
||||||
pub const FULLY_WITHIN: i32 = 2;
|
pub const FULLY_WITHIN: i32 = 2;
|
||||||
pub const __SQLITESESSION_H_: i32 = 1;
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
pub struct sqlite3_session {
|
pub struct sqlite3_session {
|
||||||
|
Loading…
Reference in New Issue
Block a user