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
use super::values;
#[repr(C)]
#[derive(Copy, Clone, Debug)]
pub struct ListId(pub u32);
#[repr(C)]
#[allow(unused)]
enum Color {
Red = 0,
Black = 1,
}
#[repr(C)]
pub struct AssociativeListEntry {
key: values::Value,
value: values::Value,
color: Color,
left: *mut AssociativeListEntry,
right: *mut AssociativeListEntry,
}
#[repr(C)]
pub struct List {
pub vector_part: *mut values::Value,
pub assoc_part: *mut AssociativeListEntry,
pub allocated: u32,
pub length: u32,
pub refcount: u32,
unknown: u32,
}