ref: 04ebecac63e17ce1b808f60217b87a162ea24263
parent: 86f201f7df1f2ff278201d00f323097c69928a2d
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Fri Jan 12 16:09:30 EST 2024
Generate const tables.
--- a/Tools/Addcombs.hs
+++ b/Tools/Addcombs.hs
@@ -23,11 +23,11 @@
file <- hGetContents ifile
let size = length file
chunks = chunkify 20 file
- hPutStrLn ofile $ "unsigned char combexprdata[] = {"+ hPutStrLn ofile $ "const unsigned char combexprdata[] = {"mapM_ (hPutStrLn ofile . showChunk) chunks
hPutStrLn ofile "0 };"
- hPutStrLn ofile "unsigned char *combexpr = combexprdata;"
- hPutStrLn ofile $ "int combexprlen = " ++ show size ++ ";"
- hClose ifile
- hClose ofile
+ hPutStrLn ofile "const unsigned char *combexpr = combexprdata;"
+ hPutStrLn ofile $ "const int combexprlen = " ++ show size ++ ";"
+-- hClose ifile
+-- hClose ofile
--
⑨