blob: b9042ec0cef0320c52170e42516a42146a0b156e (
plain)
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
|
# warning: autogenerated code; don't bother to change this, change mktypeset.b or grid.b instead
Grid: module {
PATH: con "/dis/alphabet/grid.dis";
Value: adt {
b: fn(v: self ref Value): ref Value.Vb; # records
e: fn(v: self ref Value): ref Value.Ve; # endpoint
w: fn(v: self ref Value): ref Value.Vw; # wfd
c: fn(v: self ref Value): ref Value.Vc; # cmd
r: fn(v: self ref Value): ref Value.Vr; # status
f: fn(v: self ref Value): ref Value.Vf; # fd
s: fn(v: self ref Value): ref Value.Vs; # string
typec: fn(v: self ref Value): int;
type2s: fn(t: int): string;
free: fn(v: self ref Value, used: int);
dup: fn(v: self ref Value): ref Value;
pick {
Vb =>
i: chan of ref Sys->FD;
Ve =>
i: chan of Endpoints->Endpoint;
Vw =>
i: chan of ref Sys->FD;
Vc =>
i: ref Sh->Cmd;
Vr =>
i: chan of string;
Vf =>
i: chan of ref Sys->FD;
Vs =>
i: string;
}
};
init: fn();
};
Gridmodule: module {
types: fn(): string;
init: fn();
run: fn(errorc: chan of string, r: ref Reports->Report,
opts: list of (int, list of ref Grid->Value), args: list of ref Grid->Value): ref Grid->Value;
};
|