~pixelherodev/zyg

ref: 7dccbd7d9dc502f2cd859c4c7ebd84a0d8f3acd7 zyg/context.h -rw-r--r-- 511 bytes
7dccbd7dNoam Preil merge 3 months ago
                                                                                
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
struct pathed_tire{
	char *path;
	c3ctx *tree;
};

struct context {
	// TODO: full package list
	struct package root;
	// zyg path
	const char *self;
	// Each entry is a pathed_tire
	struct pathed_tire *trees;
	// whether to restrict execution to one process
	int single_process;
	enum {
		arm64, amd64, z80, c, none, detect,
		default_target = c,
	} target;
	int dump_parsed;
	int dump_analyzed;
	int parse_only;
	int usage_debug;
	int asm_only;
	int tests;
	char *out_path;
};

extern struct context zyg_ctx;