(strm)
| 117 | } |
| 118 | |
| 119 | int ZEXPORT inflateResetKeep(strm) |
| 120 | z_streamp strm; |
| 121 | { |
| 122 | struct inflate_state FAR *state; |
| 123 | |
| 124 | if (inflateStateCheck(strm)) return Z_STREAM_ERROR; |
| 125 | state = (struct inflate_state FAR *)strm->state; |
| 126 | strm->total_in = strm->total_out = state->total = 0; |
| 127 | strm->msg = Z_NULL; |
| 128 | if (state->wrap) /* to support ill-conceived Java test suite */ |
| 129 | strm->adler = state->wrap & 1; |
| 130 | state->mode = HEAD; |
| 131 | state->last = 0; |
| 132 | state->havedict = 0; |
| 133 | state->dmax = 32768U; |
| 134 | state->head = Z_NULL; |
| 135 | state->hold = 0; |
| 136 | state->bits = 0; |
| 137 | state->lencode = state->distcode = state->next = state->codes; |
| 138 | state->sane = 1; |
| 139 | state->back = -1; |
| 140 | Tracev((stderr, "inflate: reset\n")); |
| 141 | return Z_OK; |
| 142 | } |
| 143 | |
| 144 | int ZEXPORT inflateReset(strm) |
| 145 | z_streamp strm; |
no test coverage detected