• Home
  • Raw
  • Download

Lines Matching refs:bzerror

149 Util_CatchBZ2Error(int bzerror)  in Util_CatchBZ2Error()  argument
152 switch(bzerror) { in Util_CatchBZ2Error()
246 int bzerror; in Util_GetLine() local
263 bytes_read = BZ2_bzRead(&bzerror, f->fp, &c, 1); in Util_GetLine()
274 if (bzerror != BZ_OK) break; in Util_GetLine()
275 bytes_read = BZ2_bzRead(&bzerror, f->fp, &c, 1); in Util_GetLine()
289 if (bzerror != BZ_OK || c == '\n') break; in Util_GetLine()
291 if (univ_newline && bzerror == BZ_STREAM_END && skipnextlf) in Util_GetLine()
296 if (bzerror == BZ_STREAM_END) { in Util_GetLine()
300 } else if (bzerror != BZ_OK) { in Util_GetLine()
301 Util_CatchBZ2Error(bzerror); in Util_GetLine()
334 Util_UnivNewlineRead(int *bzerror, BZFILE *stream, in Util_UnivNewlineRead() argument
344 return BZ2_bzRead(bzerror, stream, buf, n); in Util_UnivNewlineRead()
357 nread = BZ2_bzRead(bzerror, stream, dst, n); in Util_UnivNewlineRead()
389 if (skipnextlf && *bzerror == BZ_STREAM_END) in Util_UnivNewlineRead()
414 int bzerror; in Util_ReadAhead() local
432 chunksize = Util_UnivNewlineRead(&bzerror, f->fp, f->f_buf, in Util_ReadAhead()
436 if (bzerror == BZ_STREAM_END) { in Util_ReadAhead()
439 } else if (bzerror != BZ_OK) { in Util_ReadAhead()
440 Util_CatchBZ2Error(bzerror); in Util_ReadAhead()
511 int bzerror; in BZ2File_read() local
555 chunksize = Util_UnivNewlineRead(&bzerror, self->fp, in BZ2File_read()
562 if (bzerror == BZ_STREAM_END) { in BZ2File_read()
566 } else if (bzerror != BZ_OK) { in BZ2File_read()
567 Util_CatchBZ2Error(bzerror); in BZ2File_read()
662 int bzerror; in BZ2File_readlines() local
693 nread = Util_UnivNewlineRead(&bzerror, self->fp, in BZ2File_readlines()
698 if (bzerror == BZ_STREAM_END) { in BZ2File_readlines()
706 } else if (bzerror != BZ_OK) { in BZ2File_readlines()
707 Util_CatchBZ2Error(bzerror); in BZ2File_readlines()
820 int bzerror; in BZ2File_write() local
846 BZ2_bzWrite (&bzerror, self->fp, buf, len); in BZ2File_write()
850 if (bzerror != BZ_OK) { in BZ2File_write()
851 Util_CatchBZ2Error(bzerror); in BZ2File_write()
882 int bzerror; in BZ2File_writelines() local
973 BZ2_bzWrite (&bzerror, self->fp, in BZ2File_writelines()
975 if (bzerror != BZ_OK) { in BZ2File_writelines()
977 Util_CatchBZ2Error(bzerror); in BZ2File_writelines()
1023 int bzerror; in BZ2File_seek() local
1061 &bzerror, self->fp, in BZ2File_seek()
1068 if (bzerror == BZ_STREAM_END) { in BZ2File_seek()
1070 } else if (bzerror != BZ_OK) { in BZ2File_seek()
1071 Util_CatchBZ2Error(bzerror); in BZ2File_seek()
1092 BZ2_bzReadClose(&bzerror, self->fp); in BZ2File_seek()
1097 if (bzerror != BZ_OK) { in BZ2File_seek()
1098 Util_CatchBZ2Error(bzerror); in BZ2File_seek()
1107 self->fp = BZ2_bzReadOpen(&bzerror, PyFile_AsFile(self->file), in BZ2File_seek()
1111 if (bzerror != BZ_OK) { in BZ2File_seek()
1112 Util_CatchBZ2Error(bzerror); in BZ2File_seek()
1132 chunksize = Util_UnivNewlineRead(&bzerror, self->fp, in BZ2File_seek()
1137 if (bzerror == BZ_STREAM_END) { in BZ2File_seek()
1141 } else if (bzerror != BZ_OK) { in BZ2File_seek()
1142 Util_CatchBZ2Error(bzerror); in BZ2File_seek()
1197 int bzerror = BZ_OK; in BZ2File_close() local
1203 BZ2_bzReadClose(&bzerror, self->fp); in BZ2File_close()
1206 BZ2_bzWriteClose(&bzerror, self->fp, in BZ2File_close()
1220 if (bzerror != BZ_OK) { in BZ2File_close()
1221 Util_CatchBZ2Error(bzerror); in BZ2File_close()
1366 int bzerror; in BZ2File_init() local
1440 self->fp = BZ2_bzReadOpen(&bzerror, in BZ2File_init()
1444 self->fp = BZ2_bzWriteOpen(&bzerror, in BZ2File_init()
1448 if (bzerror != BZ_OK) { in BZ2File_init()
1449 Util_CatchBZ2Error(bzerror); in BZ2File_init()
1472 int bzerror; in BZ2File_dealloc() local
1480 BZ2_bzReadClose(&bzerror, self->fp); in BZ2File_dealloc()
1483 BZ2_bzWriteClose(&bzerror, self->fp, in BZ2File_dealloc()
1618 int bzerror; in BZ2Comp_compress() local
1651 bzerror = BZ2_bzCompress(bzs, BZ_RUN); in BZ2Comp_compress()
1655 if (bzerror != BZ_RUN_OK) { in BZ2Comp_compress()
1656 Util_CatchBZ2Error(bzerror); in BZ2Comp_compress()
1706 int bzerror; in BZ2Comp_flush() local
1727 bzerror = BZ2_bzCompress(bzs, BZ_FINISH); in BZ2Comp_flush()
1731 if (bzerror == BZ_STREAM_END) { in BZ2Comp_flush()
1733 } else if (bzerror != BZ_FINISH_OK) { in BZ2Comp_flush()
1734 Util_CatchBZ2Error(bzerror); in BZ2Comp_flush()
1778 int bzerror; in BZ2Comp_init() local
1800 bzerror = BZ2_bzCompressInit(&self->bzs, compresslevel, 0, 0); in BZ2Comp_init()
1801 if (bzerror != BZ_OK) { in BZ2Comp_init()
1802 Util_CatchBZ2Error(bzerror); in BZ2Comp_init()
1920 int bzerror; in BZ2Decomp_decompress() local
1948 bzerror = BZ2_bzDecompress(bzs); in BZ2Decomp_decompress()
1952 if (bzerror == BZ_STREAM_END) { in BZ2Decomp_decompress()
1963 if (bzerror != BZ_OK) { in BZ2Decomp_decompress()
1964 Util_CatchBZ2Error(bzerror); in BZ2Decomp_decompress()
2014 int bzerror; in BZ2Decomp_init() local
2032 bzerror = BZ2_bzDecompressInit(&self->bzs, 0, 0); in BZ2Decomp_init()
2033 if (bzerror != BZ_OK) { in BZ2Decomp_init()
2034 Util_CatchBZ2Error(bzerror); in BZ2Decomp_init()
2143 int bzerror; in bz2_compress() local
2173 bzerror = BZ2_bzCompressInit(bzs, compresslevel, 0, 0); in bz2_compress()
2174 if (bzerror != BZ_OK) { in bz2_compress()
2175 Util_CatchBZ2Error(bzerror); in bz2_compress()
2188 bzerror = BZ2_bzCompress(bzs, action); in bz2_compress()
2192 if (bzerror == BZ_STREAM_END) { in bz2_compress()
2194 } else if (bzerror != BZ_RUN_OK && bzerror != BZ_FINISH_OK) { in bz2_compress()
2196 Util_CatchBZ2Error(bzerror); in bz2_compress()
2248 int bzerror; in bz2_decompress() local
2273 bzerror = BZ2_bzDecompressInit(bzs, 0, 0); in bz2_decompress()
2274 if (bzerror != BZ_OK) { in bz2_decompress()
2275 Util_CatchBZ2Error(bzerror); in bz2_decompress()
2286 bzerror = BZ2_bzDecompress(bzs); in bz2_decompress()
2290 if (bzerror == BZ_STREAM_END) { in bz2_decompress()
2292 } else if (bzerror != BZ_OK) { in bz2_decompress()
2294 Util_CatchBZ2Error(bzerror); in bz2_decompress()