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
//
// GENERATED FILE
//
use super::*;
use f2rust_std::*;
struct SaveVars {
M2HAVE: i32,
SIZE: i32,
}
impl SaveInit for SaveVars {
fn new() -> Self {
let mut M2HAVE: i32 = 0;
let mut SIZE: i32 = 0;
Self { M2HAVE, SIZE }
}
}
//$Procedure M2HAVE ( META/2 --- How many matches do we have )
pub fn M2HAVE(NAME: &[u8], ctx: &mut Context) -> f2rust_std::Result<i32> {
let save = ctx.get_vars::<SaveVars>();
let save = &mut *save.borrow_mut();
//
//
// Local variables
//
//
// Find out how many endpoints were matched, and put the answer into
// M2HAVE.
//
M2VSIZ(NAME, &mut save.SIZE, ctx)?;
save.M2HAVE = save.SIZE;
Ok(save.M2HAVE)
}