summaryrefslogtreecommitdiff
path: root/6/main.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-11-04 00:06:59 -0800
committerOri Bernstein <ori@eigenstate.org>2015-11-06 00:39:35 -0800
commit2a27b2d8ac101e17e300a2e25421fc25c403b05b (patch)
tree00876c35ca526b7acc9858db9a51ea162535ad54 /6/main.c
parentda4798f000d99dd326a542758da83ad04be72f86 (diff)
downloadmc-2a27b2d8ac101e17e300a2e25421fc25c403b05b.tar.gz
Rewrite pattern matching code.
Much cleaner, and more efficient.
Diffstat (limited to '6/main.c')
-rw-r--r--6/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/6/main.c b/6/main.c
index 1aa1c95..4d884e6 100644
--- a/6/main.c
+++ b/6/main.c
@@ -98,7 +98,7 @@ static void assemble(char *asmsrc, char *path)
}
}
-static char *gentemp(char *buf, size_t bufsz, char *path, char *suffix)
+static char *gentempfile(char *buf, size_t bufsz, char *path, char *suffix)
{
char *tmpdir;
char *base;
@@ -235,7 +235,7 @@ int main(int argc, char **argv)
else
swapsuffix(buf, sizeof buf, ctx.args[i], ".myr", ".s");
} else {
- gentemp(buf, sizeof buf, ctx.args[i], ".s");
+ gentempfile(buf, sizeof buf, ctx.args[i], ".s");
}
genuse(ctx.args[i]);
gen(file, buf);