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
//
// GENERATED FILE
//
use super::*;
use f2rust_std::*;
pub const LBCELL: i32 = -5;
const GRPOFF: i32 = -2;
//$Procedure PODONI ( Pod, offset and number, integer )
pub fn PODONI(
POD: &[i32],
OFFSET: &mut i32,
NUMBER: &mut i32,
ctx: &mut Context,
) -> f2rust_std::Result<()> {
let POD = DummyArray::new(POD, LBCELL..);
//
// SPICELIB functions
//
//
// Local parameters
//
//
// Standard SPICE error handling.
//
if spicelib::RETURN(ctx) {
return Ok(());
} else {
spicelib::CHKIN(b"PODONI", ctx)?;
}
//
// The offset of the active group can be recovered directly from
// the control area of the pod. The cardinality of the pod always
// indicates the end of the active group.
//
DCODEI(POD[GRPOFF], OFFSET, ctx)?;
*NUMBER = (spicelib::CARDI(POD.as_slice(), ctx)? - *OFFSET);
spicelib::CHKOUT(b"PODONI", ctx)?;
Ok(())
}