opt_lenb = static_lenb = stored_len + 5; /* force a stored block */
}
-#ifdef FORCE_STORED
- if (buf != NULL) { /* force stored block */
-#else
if (stored_len+4 <= opt_lenb && buf != NULL) {
- /* 4: two words for the lengths */
-#endif
- /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
+ /* 4: two words for the lengths
+ * The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
* Otherwise we can't have processed more than WSIZE input bytes since
* the last block flush, because compression would have been
* successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
*/
zng_tr_stored_block(s, buf, stored_len, last);
-#ifdef FORCE_STATIC
- } else if (static_lenb >= 0) { /* force static trees */
-#else
} else if (s->strategy == Z_FIXED || static_lenb == opt_lenb) {
-#endif
zng_tr_emit_tree(s, STATIC_TREES, last);
compress_block(s, (const ct_data *)static_ltree, (const ct_data *)static_dtree);
cmpr_bits_add(s, s->static_len);