| 86 | #include "inffast.h" |
| 87 | |
| 88 | local int inflateStateCheck(z_streamp strm) { |
| 89 | struct inflate_state FAR *state; |
| 90 | if (strm == Z_NULL || |
| 91 | strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) |
| 92 | return 1; |
| 93 | state = (struct inflate_state FAR *)strm->state; |
| 94 | if (state == Z_NULL || state->strm != strm || |
| 95 | state->mode < HEAD || state->mode > SYNC) |
| 96 | return 1; |
| 97 | return 0; |
| 98 | } |
| 99 | |
| 100 | int ZEXPORT inflateResetKeep(z_streamp strm) { |
| 101 | struct inflate_state FAR *state; |
no outgoing calls
no test coverage detected