This repository has been archived by the owner on Sep 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfg.h
80 lines (68 loc) · 1.59 KB
/
cfg.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
// cfg.h
/*
This file is part of Tripover, a broad-search journey planner.
Copyright (C) 2014-2016 Joris van der Geer.
*/
// search limits: practical
// max stops aka transfers supported (=15), plus a few for srcinf
#define Nstop 20
// not yet
#define Nvia 16
#define Maxquerysize (1024 * 64)
// time in seconds to accept a query
#define Queryage 3
// end of limits
enum Engvars { Eng_periodlim,Eng_conchk,Eng_allocrep,Eng_cnt };
enum Netvars {
Net_sparsethres,
Net_sumwalklimit,
Net_walklimit,
Net_walkspeed,
Net_taxilimit,
Net_taxilimitgnd,
Net_gridscale,
Net_eventzlo,
Net_period0,
Net_period1,
Net_tpat0,
Net_tpat1,
Net_dirconlimit,
Net_net1walklimit,
Net_net2walklimit,
Net_net1timlim,
Net_net2timlim,
Net_net3timlim,
Net_net2altlim,
Net_net3altlim,
Net_net1limitlo,
Net_net1limitmi,
Net_net1limithi,
Net_net2limitlo,
Net_net2limitmi,
Net_net2limithi,
Net_net3limitlo,
Net_net3limitmi,
Net_net3limithi,
Net_net1conlo,
Net_net1conmi,
Net_net1conhi,
Net_net2conlo,
Net_net2conmi,
Net_net2conhi,
Net_net3conlo,
Net_net3conmi,
Net_net3conhi,
Net_net1above,
Net_net2above,
Net_net3above,
Net_cnt
};
sassert(Net_cnt < sizeof(globs.netvars),"globs.netvars < Net_cnt") sassert_end
sassert(Net_cnt < Elemcnt(globs.netvars),"globs.netvars < Net_cnt") sassert_end
sassert(Eng_cnt < sizeof(globs.engvars),"globs.engvars < Eng_cnt") sassert_end
#define Cfgcl (1U << 31)
#define Cfgdef (1U << 30)
extern int readcfg(const char *name);
extern int inicfg(void);
extern int inicfgcl(void);
extern const char *runlvlnames(enum Runlvl lvl);