Lines Matching defs:bzerr
297 Int32 bzerr, bzerr_dummy, ret;
305 bzf = bzWriteOpen ( &bzerr, zStream,
307 if (bzerr != BZ_OK) goto errhandler;
316 if (nIbuf > 0) bzWrite ( &bzerr, bzf, (void*)ibuf, nIbuf );
317 if (bzerr != BZ_OK) goto errhandler;
321 bzWriteClose ( &bzerr, bzf, 0, &nbytes_in, &nbytes_out );
322 if (bzerr != BZ_OK) goto errhandler;
351 switch (bzerr) {
371 Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i;
389 &bzerr, zStream, verbosity,
392 if (bzf == NULL || bzerr != BZ_OK) goto errhandler;
395 while (bzerr == BZ_OK) {
396 nread = bzRead ( &bzerr, bzf, obuf, 5000 );
397 if (bzerr == BZ_DATA_ERROR_MAGIC) goto errhandler;
398 if ((bzerr == BZ_OK || bzerr == BZ_STREAM_END) && nread > 0)
402 if (bzerr != BZ_STREAM_END) goto errhandler;
404 bzReadGetUnused ( &bzerr, bzf, &unusedTmp, &nUnused );
405 if (bzerr != BZ_OK) panic ( "decompress:bzReadGetUnused" );
409 bzReadClose ( &bzerr, bzf );
410 if (bzerr != BZ_OK) panic ( "decompress:bzReadGetUnused" );
432 switch (bzerr) {
464 Int32 bzerr, bzerr_dummy, ret, streamNo, i;
479 &bzerr, zStream, verbosity,
482 if (bzf == NULL || bzerr != BZ_OK) goto errhandler;
485 while (bzerr == BZ_OK) {
486 bzRead ( &bzerr, bzf, obuf, 5000 );
487 if (bzerr == BZ_DATA_ERROR_MAGIC) goto errhandler;
489 if (bzerr != BZ_STREAM_END) goto errhandler;
491 bzReadGetUnused ( &bzerr, bzf, &unusedTmp, &nUnused );
492 if (bzerr != BZ_OK) panic ( "test:bzReadGetUnused" );
496 bzReadClose ( &bzerr, bzf );
497 if (bzerr != BZ_OK) panic ( "test:bzReadGetUnused" );
511 switch (bzerr) {