summaryrefslogtreecommitdiffstats
path: root/tests/load-hook.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-07-08 12:42:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-07-08 12:42:09 -0700
commiteb576809489a7b1aa15425dfbb5047dac449bd05 (patch)
treed32f2feafe5bfbf052cc8c4ec5f7fc799ec8b3b3 /tests/load-hook.tl
parentb0b19cf4a46b55a54be5a12e03b3eed244621cb4 (diff)
downloadtxr-eb576809489a7b1aa15425dfbb5047dac449bd05.tar.gz
txr-eb576809489a7b1aa15425dfbb5047dac449bd05.tar.bz2
txr-eb576809489a7b1aa15425dfbb5047dac449bd05.zip
chksum: merge SHA256 and MD5 code with macro.
* chksum.c (chksum_impl): New macro. Two calls to this macro generate the implementations of SHA256 and MD5. The code is identical. (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): Directly written definitions removed, now 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 'tests/load-hook.tl')
0 files changed, 0 insertions, 0 deletions