gen/
.clang-format
570 B
.gitignore
30 B
.gitsigners
112 B
LICENSE
1.1 KiB
Makefile
911 B
README
1.8 KiB
ast.c
5.0 KiB
ast.h
15.1 KiB
desugar.c
23.1 KiB
desugar.h
286 B
gen.c
108.5 KiB
gen.h
4.9 KiB
io.c
1.1 KiB
io.h
444 B
limits.h
1.3 KiB
module.c
10.0 KiB
module.h
2.2 KiB
options.c
1.4 KiB
options.h
472 B
parser.c
68.3 KiB
parser.h
942 B
radiance.c
3.7 KiB
ralloc.c
2.0 KiB
ralloc.h
1.1 KiB
resolver.c
109.7 KiB
resolver.h
5.6 KiB
riscv.c
12.0 KiB
riscv.h
12.0 KiB
scanner.c
10.2 KiB
scanner.h
3.2 KiB
strings.c
2.6 KiB
strings.h
407 B
symtab.c
5.7 KiB
symtab.h
4.6 KiB
types.h
1.0 KiB
util.h
1.5 KiB
options.h
raw
| 1 | #ifndef OPTIONS_H |
| 2 | #define OPTIONS_H |
| 3 | |
| 4 | /* Command-line flags. */ |
| 5 | enum flags { |
| 6 | FLAG_TEST = 1 << 9, |
| 7 | }; |
| 8 | |
| 9 | /* Command-line options structure. */ |
| 10 | struct options { |
| 11 | char *output; |
| 12 | char *inputs[32]; |
| 13 | int ninputs; |
| 14 | char *modules[64]; |
| 15 | int nmodules; |
| 16 | int argc; |
| 17 | char **argv; |
| 18 | }; |
| 19 | |
| 20 | /* Create a new options struct. */ |
| 21 | struct options options(int argc, char *argv[]); |
| 22 | |
| 23 | /* Parse the command line options. */ |
| 24 | int options_parse(struct options *o); |
| 25 | |
| 26 | #endif |