diff -r 2da754532dd3 -r 69de49c4e39c contrib/python-zstandard/zstd/decompress/zstd_decompress_internal.h --- a/contrib/python-zstandard/zstd/decompress/zstd_decompress_internal.h Sun Sep 15 00:07:30 2019 -0400 +++ b/contrib/python-zstandard/zstd/decompress/zstd_decompress_internal.h Sun Sep 15 20:04:00 2019 -0700 @@ -89,6 +89,12 @@ typedef enum { zdss_init=0, zdss_loadHeader, zdss_read, zdss_load, zdss_flush } ZSTD_dStreamStage; +typedef enum { + ZSTD_use_indefinitely = -1, /* Use the dictionary indefinitely */ + ZSTD_dont_use = 0, /* Do not use the dictionary (if one exists free it) */ + ZSTD_use_once = 1 /* Use the dictionary once and set to ZSTD_dont_use */ +} ZSTD_dictUses_e; + struct ZSTD_DCtx_s { const ZSTD_seqSymbol* LLTptr; @@ -123,6 +129,7 @@ const ZSTD_DDict* ddict; /* set by ZSTD_initDStream_usingDDict(), or ZSTD_DCtx_refDDict() */ U32 dictID; int ddictIsCold; /* if == 1 : dictionary is "new" for working context, and presumed "cold" (not in cpu cache) */ + ZSTD_dictUses_e dictUses; /* streaming */ ZSTD_dStreamStage streamStage;