added ability to remove error messages and dictionary support (#1975)

for the benefit of smaller binary.
This commit is contained in:
Yann Collet
2020-01-27 11:39:29 -08:00
committed by GitHub
parent 5bcd6448b6
commit 9a71d07aa4
4 changed files with 147 additions and 120 deletions
+5
View File
@@ -95,7 +95,12 @@ int main(int argc, char **argv)
dictionary_t* const parsed_dict = create_dictionary();
if (dict.size) {
#if defined (ZDEC_NO_DICTIONARY)
printf("dict.size = %zu \n", dict.size);
ERR_OUT("no dictionary support \n");
#else
parse_dictionary(parsed_dict, dict.address, dict.size);
#endif
}
size_t const decompressed_size =
ZSTD_decompress_with_dict(output, out_capacity,