update library builder

This commit is contained in:
Yann Collet
2015-11-19 11:23:44 +01:00
parent b2549846ba
commit dcac00e7a6
2 changed files with 13 additions and 7 deletions
+5 -2
View File
@@ -35,9 +35,8 @@
*****************************************************************/
/*!
* HEAPMODE :
* Select how default compression functions will allocate memory for their hash table,
* Select how default functions will allocate memory for their context,
* in memory stack (0, fastest), or in memory heap (1, requires malloc())
* Note that compression context is fairly large, as a consequence heap memory is recommended.
*/
#ifndef ZSTD_HEAPMODE
# define ZSTD_HEAPMODE 1
@@ -393,6 +392,10 @@ typedef struct {
} seqState_t;
/** ZSTD_decodeSequence
* Decode the next sequence, defined as nbLiterals, PtrToLiterals, nbMatches, Offset
* @seq : store sequence into this seq_t
*/
static void ZSTD_decodeSequence(seq_t* seq, seqState_t* seqState)
{
size_t litLength;