]> git.ipfire.org Git - thirdparty/ccache.git/commit
Add binary representation of hash-size (#399)
authorAnders Björklund <anders.f.bjorklund@gmail.com>
Sat, 8 Jun 2019 19:17:14 +0000 (21:17 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 8 Jun 2019 19:17:14 +0000 (21:17 +0200)
commit2b568ba6ba93cec78e478fb63f5353975055539b
tree50b68ad2272db1e5886602806e405c4d403beb8b
parenta1dbb8a15e034e5a63eb6b4407c9e3ccac469162
Add binary representation of hash-size (#399)

* Add binary representation of hash-size

Fixed size efficient binary representation data,
instead of the variable size hexadecimal string.

This is suitable for machine use, while the other
is more suitable for human readability as string.

* Promote hex format as a global function

* Add unittest for the format_hex function

Make sure that output is NUL-terminated
configure.ac
src/ccache.h
src/util.c
unittest/framework.c
unittest/framework.h
unittest/test_util.c