diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-07-09 09:00:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-07-09 09:00:26 -0700 |
commit | feb8eefb2fc97e5f8ccc831f28ef10e67717ec22 (patch) | |
tree | 4ef3b27f5372d1ce1b0d74f6a1ef48494946628c /debug.c | |
parent | f48e22cfb4de514a02ef20da8ff863a175c3dc87 (diff) | |
download | txr-feb8eefb2fc97e5f8ccc831f28ef10e67717ec22.tar.gz txr-feb8eefb2fc97e5f8ccc831f28ef10e67717ec22.tar.bz2 txr-feb8eefb2fc97e5f8ccc831f28ef10e67717ec22.zip |
chksum: generate with TXR.
A giant macro that generates numerous functions and variables
is hell for anyone who has to debug the code. The right
approach is external code generation, where the result is
a clean source file that is checked into the repository.
* genchksum.txr: New file.
* chksum.c: Now generated.
(chksum_impl): Macro and its invocations removed.
(sha1_stream_impl, sha1_stream, sha1_szmax_upd,
sha1_buf, sha1_str, sha1, sha1_ops,
sha1_begin,
sha1_utf8_byte_callback, sha1_hash,
sha1_end): These are directly defined again.
(sha256_stream_impl, sha256_stream, sha256_szmax_upd,
sha256_buf, sha256_str, sha256, sha256_ops,
sha256_begin,
sha256_utf8_byte_callback, sha256_hash,
sha256_end): Likewise.
generated by macro.
md5_stream_impl, md5_stream,
md5_szmax_upd,
md5_buf, md5_str, md5, md5_ops,
md5_begin,
md5_utf8_byte_callback, md5_hash,
md5_end): Likewise.
Diffstat (limited to 'debug.c')
0 files changed, 0 insertions, 0 deletions