1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use libc;
use crate::misc::Rci;
use crate::mzd::Mzd;
#[repr(C)]
pub struct Mzp {
private: [u8; 0],
}
extern "C" {
pub fn mzp_init(length: Rci) -> *mut Mzp;
pub fn mzp_free(p: *mut Mzp);
pub fn mzp_init_window(p: *mut Mzp, begin: Rci, end: Rci);
pub fn Mzp_free_window(condemned: *mut Mzp);
pub fn mzp_copy(p: *mut Mzp, q: *const Mzp) -> *mut Mzp;
pub fn mzp_set_ui(p: *mut Mzp, value: libc::c_uint);
pub fn mzd_apply_p_left(a: *mut Mzd, p: *const Mzp);
pub fn mzd_apply_p_left_trans(a: *mut Mzd, p: *const Mzp);
pub fn mzd_apply_p_right(a: *mut Mzd, p: *const Mzp);
pub fn mzd_apply_p_right_trans(a: *mut Mzd, p: *const Mzp);
pub fn mzp_print(p: *const Mzp);
}