[rust] remove ncplane_vprintf

- remove `__va_list_tag`

The `printf` functions wont be implemented, since they require
`__va_list` which causes compatibility problems.
pull/1637/head
joseLuís 3 years ago
parent 5f3b2f79cf
commit 5ec11e5897

@ -25,25 +25,6 @@ pub use ffi::{
ncstrwidth,
};
// https://github.com/dankamongmen/notcurses/issues/1339
//
// Let's first see whether this works for: i686, aarch64, armv7l & ppc64le.
//
// #[cfg(target_arch = "x86_64")]
// #[cfg(target_arch = "s390x")]
// pub use ffi::{__va_list_tag};
//
// #[cfg(not(target_arch = "x86_64"))]
// #[cfg(not(target_arch = "s390x"))]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: cty::c_uint,
pub fp_offset: cty::c_uint,
pub overflow_arg_area: *mut cty::c_void,
pub reg_save_area: *mut cty::c_void,
}
// blitset ---------------------------------------------------------------------
//
// already wrapped:

@ -2,10 +2,10 @@
// functions already exported by bindgen : 113
// -------------------------------------------
// (X) wont: 6
// (X) wont: 10
// (D) depr: 4
// (#) test: 13
// (W) wrap: 83 of 102 (112 - 6 - 4)
// (W) wrap: 83
// -------------------------------------------
//W ncpile_bottom
//W# ncpile_create
@ -114,9 +114,9 @@
//W ncplane_translate_abs
// ncplane_userptr
// ncplane_vline_interp
// ncplane_vprintf_aligned
// ncplane_vprintf_stained
// ncplane_vprintf_yx
// X ncplane_vprintf_aligned
// X ncplane_vprintf_stained
// X ncplane_vprintf_yx
//W ncplane_x
//W ncplane_y
//W ncplane_yx
@ -168,9 +168,7 @@
// + ncplane_rounded_box_sized
//W+ ncplane_halign
// + ncplane_vline
// + ncplane_vprintf
//
// NOTE: TODO: Still remains all the ncplane_printf* functions/macros (at the end)
// X ncplane_vprintf
#[cfg(test)]
mod test;

@ -2,7 +2,6 @@
use core::ptr::null_mut;
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,
@ -248,14 +247,6 @@ pub fn ncplane_putnstr(plane: &mut NcPlane, size: u32, gclustarr: &[u8]) -> NcIn
unsafe { crate::ncplane_putnstr_yx(plane, -1, -1, size.into(), cstring![gclustarr]) }
}
/// The [NcPlane] equivalent of `vprintf(3)`.
///
/// *Method: NcPlane.[vprintf()][NcPlane#method.vprintf].*
#[inline]
pub fn ncplane_vprintf(plane: &mut NcPlane, format: &str, ap: &mut __va_list_tag) -> NcIntResult {
unsafe { crate::ncplane_vprintf_yx(plane, -1, -1, cstring![format], ap) }
}
// size & alignment ------------------------------------------------------------
/// Gets the columns of the [NcPlane].

Loading…
Cancel
Save