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 {
SIZE: i32,
}
impl SaveInit for SaveVars {
fn new() -> Self {
let mut SIZE: i32 = 0;
Self { SIZE }
}
}
//$Procedure M2XIST ( META/2 --- does a named template word exist )
pub fn M2XIST(NAME: &[u8], ctx: &mut Context) -> f2rust_std::Result<bool> {
let save = ctx.get_vars::<SaveVars>();
let save = &mut *save.borrow_mut();
let mut M2XIST: bool = false;
//
//
// Local variables
//
//
// Find out how many endpoints were matched. The NAME is there
// if SIZE is greater than 0.
//
M2VSIZ(NAME, &mut save.SIZE, ctx)?;
M2XIST = (save.SIZE > 0);
Ok(M2XIST)
}