mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[rust] fix bindgen imports
- update blacklist rules - use ffi `__va_list_tags`
This commit is contained in:
parent
c52e9c5a47
commit
5f3b2f79cf
@ -30,11 +30,17 @@ fn main() {
|
||||
.generate_comments(true)
|
||||
.clang_arg("-fretain-comments-from-system-headers")
|
||||
.clang_arg("-fparse-all-comments")
|
||||
// Remove warnings about improper_ctypes
|
||||
.blacklist_function("strtold")
|
||||
.blacklist_function("wcstold")
|
||||
.blacklist_function("socketpair")
|
||||
// only import functions from notcurses public API
|
||||
.blacklist_function("[^n].*")
|
||||
.blacklist_function("[^ns].*")
|
||||
.blacklist_function("n[^co].*")
|
||||
.blacklist_function("s[^i].*") // allow sig*
|
||||
// clean more unneeded types
|
||||
.blacklist_item("_[A-FHJ-Z].*")
|
||||
.blacklist_item("_BITS.*")
|
||||
.blacklist_item("_POSIX.*")
|
||||
.blacklist_item("__[A-Z].*")
|
||||
.blacklist_item("[ADHJ-MQ-Z].*")
|
||||
.blacklist_item("IP[^R].*")
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use core::ptr::null_mut;
|
||||
|
||||
use crate::__va_list_tag;
|
||||
use crate::ffi::__va_list_tag;
|
||||
use crate::{
|
||||
cstring, nccell_release, NcAlign, NcAlphaBits, NcBoxMask, NcCell, NcChannel, NcChannelPair,
|
||||
NcColor, NcDim, NcEgc, NcIntResult, NcPlane, NcRgb, NcStyleMask, NCRESULT_ERR, NCRESULT_OK,
|
||||
|
Loading…
x
Reference in New Issue
Block a user