fill_window(s);
while (s->lookahead >= STD_MIN_MATCH) {
str = s->strstart;
- n = s->lookahead - (STD_MIN_MATCH-1);
+ n = s->lookahead - (STD_MIN_MATCH - 1);
functable.insert_string(s, str, n);
s->strstart = str + n;
- s->lookahead = STD_MIN_MATCH-1;
+ s->lookahead = STD_MIN_MATCH - 1;
fill_window(s);
}
s->strstart += s->lookahead;
s->block_start = (int)s->strstart;
s->insert = s->lookahead;
s->lookahead = 0;
- s->prev_length = STD_MIN_MATCH-1;
+ s->prev_length = STD_MIN_MATCH - 1;
s->match_available = 0;
strm->next_in = (z_const unsigned char *)next;
strm->avail_in = avail;
s->block_start = 0;
s->lookahead = 0;
s->insert = 0;
- s->prev_length = STD_MIN_MATCH-1;
+ s->prev_length = STD_MIN_MATCH - 1;
s->match_available = 0;
s->match_start = 0;
}
if (UNLIKELY(bflush))
FLUSH_BLOCK(s, 0);
}
- s->insert = s->strstart < STD_MIN_MATCH-1 ? s->strstart : STD_MIN_MATCH-1;
+ s->insert = s->strstart < (STD_MIN_MATCH - 1) ? s->strstart : (STD_MIN_MATCH - 1);
if (UNLIKELY(flush == Z_FINISH)) {
FLUSH_BLOCK(s, 1);
return finish_done;
/* Insert new strings in the hash table only if the match length
* is not too large. This saves time but degrades compression.
*/
- if (match.match_length <= 16* s->max_insert_length && s->lookahead >= WANT_MIN_MATCH) {
+ if (match.match_length <= 16 * s->max_insert_length && s->lookahead >= WANT_MIN_MATCH) {
match.match_length--; /* string at strstart already in table */
match.strstart++;
if (UNLIKELY(bflush))
FLUSH_BLOCK(s, 0);
}
- s->insert = s->strstart < STD_MIN_MATCH-1 ? s->strstart : STD_MIN_MATCH-1;
+ s->insert = s->strstart < (STD_MIN_MATCH - 1) ? s->strstart : (STD_MIN_MATCH - 1);
if (flush == Z_FINISH) {
FLUSH_BLOCK(s, 1);
return finish_done;
s->lookahead--;
}
- s->insert = s->strstart < STD_MIN_MATCH-1 ? s->strstart : STD_MIN_MATCH-1;
+ s->insert = s->strstart < (STD_MIN_MATCH - 1) ? s->strstart : (STD_MIN_MATCH - 1);
if (UNLIKELY(last)) {
QUICK_END_BLOCK(s, 1);
return finish_done;
/* Find the longest match, discarding those <= prev_length.
*/
s->prev_match = (Pos)s->match_start;
- match_len = STD_MIN_MATCH-1;
+ match_len = STD_MIN_MATCH - 1;
dist = (int64_t)s->strstart - hash_head;
if (dist <= MAX_DIST(s) && dist > 0 && s->prev_length < s->max_lazy_match && hash_head != 0) {
/* If prev_match is also WANT_MIN_MATCH, match_start is garbage
* but we will ignore the current match anyway.
*/
- match_len = STD_MIN_MATCH-1;
+ match_len = STD_MIN_MATCH - 1;
}
}
/* If there was a match at the previous step and the current
(void) zng_tr_tally_lit(s, s->window[s->strstart-1]);
s->match_available = 0;
}
- s->insert = s->strstart < STD_MIN_MATCH-1 ? s->strstart : STD_MIN_MATCH-1;
+ s->insert = s->strstart < (STD_MIN_MATCH - 1) ? s->strstart : (STD_MIN_MATCH - 1);
if (UNLIKELY(flush == Z_FINISH)) {
FLUSH_BLOCK(s, 1);
return finish_done;