diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | make.c | 6 | ||||
-rw-r--r-- | src/c8asm/parser.c | 2 |
3 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,6 @@ # Autogenerated .cache/ +autogen-* compile_commands.json # Configs @@ -104,8 +104,8 @@ main(int argc, char **argv) } else if (streq(*argv, "clean")) { cmd_t c = {0}; cmdadd(&c, "find", ".", "-type", "f", "(", "-name", "*.[ao]", "-or", - "-name", "c8asm", "-or", "-path", "./src/c8asm/lookup.h", ")", - "-delete"); + "-name", "c8asm", "-or", "-path", "./src/c8asm/autogen-lookup.h", + ")", "-delete"); CMDPRC(c); } else { warnx("invalid subcommand -- '%s'", *argv); @@ -239,7 +239,7 @@ build_c8asm(void) if (FLAGSET('f') || foutdated("src/c8asm/lookup.h", "src/c8asm/instr.gperf")) { - c.dst = "src/c8asm/lookup.h"; + c.dst = "src/c8asm/autogen-lookup.h"; cmdadd(&c, "gperf", "src/c8asm/instr.gperf", "--output-file", c.dst); CMDPRC2(c); } diff --git a/src/c8asm/parser.c b/src/c8asm/parser.c index 86f4ca5..e0f3660 100644 --- a/src/c8asm/parser.c +++ b/src/c8asm/parser.c @@ -52,7 +52,7 @@ static void parseop_add(void), parseop_and(void), parseop_bcd(void), parseop_shl(void), parseop_shr(void), parseop_sknp(void), parseop_skp(void), parseop_sne(void), parseop_stor(void), parseop_sub(void), parseop_subn(void), parseop_sys(void), parseop_xor(void); -#include "lookup.h" +#include "autogen-lookup.h" static size_t i; static struct ast ast; |