ref: df6464ed444920bfbcbf22582547c562bebec026
parent: d7b6eea294156408552a78e9d0f19fce6d80f91d
parent: fecb41187dbd193df9a2879b22a18f7d4954ccbf
author: Lennart Augustsson <lennart@augustsson.net>
date: Sat Jan 13 15:00:18 EST 2024
Merge pull request #16 from gergoerdi/master Match the output format of `mhs -ofoo.c`.
--- a/Tools/Addcombs.hs
+++ b/Tools/Addcombs.hs
@@ -23,9 +23,9 @@
file <- hGetContents ifile
let size = length file
chunks = chunkify 20 file
- hPutStrLn ofile $ "const unsigned char combexprdata[] = {"+ hPutStrLn ofile $ "static unsigned char combexprdata[] = {"mapM_ (hPutStrLn ofile . showChunk) chunks
- hPutStrLn ofile "0 };"
+ hPutStrLn ofile "};"
hPutStrLn ofile "const unsigned char *combexpr = combexprdata;"
hPutStrLn ofile $ "const int combexprlen = " ++ show size ++ ";"
-- hClose ifile
--- a/src/runtime/eval.c
+++ b/src/runtime/eval.c
@@ -2804,8 +2804,10 @@
} else {if (strcmp(p, "-v") == 0)
verbose++;
+#if WANT_TICKS
else if (strcmp(p, "-T") == 0)
dump_ticks = 1;
+#endif
else if (strncmp(p, "-H", 2) == 0)
heap_size = memsize(&p[2]);
else if (strncmp(p, "-K", 2) == 0)
--
⑨