Move decompress symbols into zstd_internal.h, remove dependency

This commit is contained in:
Sen Huang
2019-11-08 13:57:26 -05:00
parent 341e0641ed
commit 84404cff6e
3 changed files with 29 additions and 24 deletions
+1 -1
View File
@@ -48,7 +48,6 @@
# define ZDICT_STATIC_LINKING_ONLY
#endif
#include "zdict.h"
#include "decompress/zstd_decompress_internal.h" /* ZSTD_entropyDTables_t */
/*-*************************************
@@ -109,6 +108,7 @@ size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize)
if (!dummyEntropyTables) {
return 0;
}
dummyEntropyTables->hufTable[0] = (HUF_DTable)((HufLog)*0x1000001);
headerSize = ZSTD_loadDEntropy(dummyEntropyTables, dictBuffer, dictSize);
free(dummyEntropyTables);