struct pathed_tire{
char *path;
struct c3tree *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 = detect,
} 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;