forked from kevinlawler/kona
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkc.h
93 lines (91 loc) · 1.67 KB
/
kc.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
void init_genrand64(unsigned long long seed);
extern I SEED;
V alloc(size_t sz);
K _dot_t();
K newE(S s,K k);
K newEntry(S s);
K Kd();
extern K KTREE;
extern K KONA_WHO;
extern K KONA_PORT;
extern K KONA_GSET;
extern K KONA_IDX;
extern K KONA_CLIENT;
K _n();
extern F mUsed;
extern F mMax;
extern F mAlloc;
extern F mMap;
extern I fWksp;
extern __thread I fer;
extern I fLoad;
extern S lineA;
extern S lineB;
extern C errmsg[256];
I test();
extern S IFS[3];
extern S IFP[3];
extern S LS;
extern S fnc;
extern V fncp[128];
extern I fnci;
extern I fom;
extern I fam;
extern I fll;
extern __thread K cls;
S sp(S k);
extern S d_;
K Kn();
extern K NIL;
void seedPRNG(I s);
N newN();
extern N SYMBOLS;
extern V offsetSSR,offsetWhat,offsetAt,offsetDot,offsetColon,offsetJoin;
extern C vc[];
I charpos(S s,C c);
extern V vd[];
extern V adverbs[];
extern V vt_[];
extern V vd_[];
extern V vm_[];
extern V vn_[];
void finally();
I kinit();
extern K KFIXED;
K load(S s);
I args(int n,S *v);
I wipe_tape(I i);
extern S IPC_PORT;
extern S HTTP_PORT;
I attend();
extern fd_set master;
K wd(S s,I n);
K ex(K a);
I lines(FILE *f);
K kap(K *a,V v);
K cd(K a);
void pdafree(PDA p);
K newK(I t,I n);
K kerr(cS s);
K show(K a);
I parsedepth(PDA p);
I complete(S a,I n,PDA *q,I *marks);
I appender(S *s,I *n,S t,I k);
I wds(K *a,FILE*f);
I wds_(K *a,FILE *f,I l);
I prompt(I n);
extern I adverb_ct;
extern I vn_ct,vm_ct,vd_ct,vt_ct;
#ifdef __FreeBSD__
extern ssize_t getline(S *lineptr, size_t *n, FILE *f);
#endif
K read_tape(I i,I j,I type);
I line(FILE *f,S *a,I *n,PDA *p);
K* denameS(S dir_string, S t, I create);
I ninit();
extern M0 CP[FD_SETSIZE+1];
K _h();
K _host(K x);
extern S HOST_IFACE;
S spn(S s,I n);
K Ks(S x);