Lines Matching refs:dp

132 flush(Deflate_t* dp, size_t w, Sfio_t* op)
143 if (!use && (!(dp->pz->test & 04) || !(file = getenv("_AST_pzip_debug_use")) || !(use = strton(file, NiL, NiL, 1))))
145 dp->pz->count.windows++;
146 if ((dp->pz->flags & (PZ_DUMP|PZ_VERBOSE)) && dp->pz->disc->errorf)
147 (*dp->pz->disc->errorf)(dp->pz, dp->pz->disc, 0, "window %I*u %I*u", sizeof(dp->pz->count.windows), dp->pz->count.windows, sizeof(w), w);
160 for (ip = (Id_t*)dtfirst(dp->ids); ip; ip = (Id_t*)dtnext(dp->ids, ip))
167 if (!ip->used++ && !ip->part && !streq(ip->name, "0") && dp->pz->disc->errorf && (dp->pz->flags & (PZ_SUMMARY|PZ_VERBOSE|PZ_DUMP)))
168 (*dp->pz->disc->errorf)(dp->pz, dp->pz->disc, 1, "%s: generate a partition to improve compression", ip->name);
169 if (ip->use = !(dp->pz->flags & PZ_NOPZIP) && ip->part)
182 if (pzpartwrite(dp->pz, op))
191 for (ip = (Id_t*)dtfirst(dp->sqs); ip; ip = (Id_t*)dtnext(dp->sqs, ip))
198 if ((dp->pz->flags & PZ_DUMP) && dp->pz->disc->errorf)
199 (*dp->pz->disc->errorf)(dp->pz, dp->pz->disc, 0, "%8d %12s %2d %4d %4I*u %12I*u%s", ip->seq, ip->name, !!ip->part, ip->use, sizeof(ip->row), ip->row, sizeof(n), n, ip->windows == 1 ? " NEW" : "");
203 if (dp->pz->disc->errorf)
204 (*dp->pz->disc->errorf)(dp->pz, dp->pz->disc, ERROR_SYSTEM|2, "partition table write error");
214 io = dp->pz->io;
215 for (ip = (Id_t*)dtfirst(dp->sqs); ip; ip = (Id_t*)dtnext(dp->sqs, ip))
221 if (!pzpartset(dp->pz, ip->part))
224 dp->pz->io = state.buf;
225 if (pzdeflate(dp->pz, op))
234 for (ip = (Id_t*)dtfirst(dp->sqs); ip; ip = (Id_t*)dtnext(dp->sqs, ip))
242 if (dp->pz->disc->errorf)
243 (*dp->pz->disc->errorf)(dp->pz, dp->pz->disc, ERROR_SYSTEM|2, "partition data write error");
250 dp->pz->io = io;
256 sfputu(dp->xp, 0);
257 n = sfstrtell(dp->xp);
258 sfstrseek(dp->xp, 0, SEEK_SET);
259 if (sfwrite(op, sfstrbase(dp->xp), n) != n)
261 if (dp->pz->disc->errorf)
262 (*dp->pz->disc->errorf)(dp->pz, dp->pz->disc, ERROR_SYSTEM|2, "record sequence write error");
272 if (dp->pz->disc->errorf)
273 (*dp->pz->disc->errorf)(dp->pz, dp->pz->disc, ERROR_SYSTEM|2, "write error");
276 dtclear(dp->sqs);
277 dp->seq = 0;
282 dp->pz->io = io;