[rust] nccell updates

This commit is contained in:
nick black 2021-04-10 09:23:42 -04:00
parent ff76dba6ed
commit 849ec2748f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 27 additions and 27 deletions

View File

@ -58,12 +58,12 @@ pub use ffi::{
#[doc(inline)]
pub use ffi::{
// functions
cell_duplicate,
cell_extended_gcluster,
cell_load,
cell_release,
cells_double_box,
cells_rounded_box,
nccell_duplicate,
nccell_release,
};
// channel ---------------------------------------------------------------------

View File

@ -4,7 +4,7 @@ use core::ptr::null_mut;
use crate::ffi::__va_list_tag;
use crate::{
cell_release, cstring, ncplane_channels, NcAlign, NcAlphaBits, NcBoxMask, NcCell, NcChannel,
nccell_release, cstring, ncplane_channels, NcAlign, NcAlphaBits, NcBoxMask, NcCell, NcChannel,
NcChannelPair, NcColor, NcDim, NcEgc, NcIntResult, NcPlane, NcRgb, NcStyleMask, NCRESULT_ERR,
NCRESULT_OK,
};
@ -384,12 +384,12 @@ pub fn ncplane_perimeter_double(
boxmask,
);
unsafe {
cell_release(plane, &mut ul);
cell_release(plane, &mut ur);
cell_release(plane, &mut ll);
cell_release(plane, &mut lr);
cell_release(plane, &mut hl);
cell_release(plane, &mut vl);
nccell_release(plane, &mut ul);
nccell_release(plane, &mut ur);
nccell_release(plane, &mut ll);
nccell_release(plane, &mut lr);
nccell_release(plane, &mut hl);
nccell_release(plane, &mut vl);
}
ret
}
@ -446,12 +446,12 @@ pub fn ncplane_perimeter_rounded(
boxmask,
);
unsafe {
cell_release(plane, &mut ul);
cell_release(plane, &mut ur);
cell_release(plane, &mut ll);
cell_release(plane, &mut lr);
cell_release(plane, &mut hl);
cell_release(plane, &mut vl);
nccell_release(plane, &mut ul);
nccell_release(plane, &mut ur);
nccell_release(plane, &mut ll);
nccell_release(plane, &mut lr);
nccell_release(plane, &mut hl);
nccell_release(plane, &mut vl);
}
ret
}
@ -546,12 +546,12 @@ pub fn ncplane_double_box(
);
}
cell_release(plane, &mut ul);
cell_release(plane, &mut ur);
cell_release(plane, &mut ll);
cell_release(plane, &mut lr);
cell_release(plane, &mut hl);
cell_release(plane, &mut vl);
nccell_release(plane, &mut ul);
nccell_release(plane, &mut ur);
nccell_release(plane, &mut ll);
nccell_release(plane, &mut lr);
nccell_release(plane, &mut hl);
nccell_release(plane, &mut vl);
}
ret
}
@ -630,12 +630,12 @@ pub fn ncplane_rounded_box(
boxmask,
);
}
cell_release(plane, &mut ul);
cell_release(plane, &mut ur);
cell_release(plane, &mut ll);
cell_release(plane, &mut lr);
cell_release(plane, &mut hl);
cell_release(plane, &mut vl);
nccell_release(plane, &mut ul);
nccell_release(plane, &mut ur);
nccell_release(plane, &mut ll);
nccell_release(plane, &mut lr);
nccell_release(plane, &mut hl);
nccell_release(plane, &mut vl);
}
ret
}