]> git.ipfire.org Git - thirdparty/ccache.git/commit
Introduce Util::parse_{unsigned,signed} functions
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 5 Sep 2020 18:31:36 +0000 (20:31 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 5 Sep 2020 18:35:34 +0000 (20:35 +0200)
commitb66de2584756944dac85d55968bba1911580d385
tree49e3144467428976948e975f4d279c87f55d726b
parente56d12cf57c4a8371b3ebcb6c57e2846cf3b4119
Introduce Util::parse_{unsigned,signed} functions

parse_unsigned replaces parse_uint32 while parse_signed replaces
parse_int. For simplicity, both return 64-bit values; I see no need to
be able to return narrower types since they are used for parsing
configuration values where a valid range is more important. Therefore
the functions optionally verify minimum and maximum allowed values.
cmake/GenerateConfigurationFile.cmake
cmake/config.h.in
src/Compression.hpp
src/Config.cpp
src/Util.cpp
src/Util.hpp
src/ccache.cpp
unittest/test_Config.cpp
unittest/test_Util.cpp