• 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()
1359 int bzerror; in BZ2File_clear() local
1365 BZ2_bzReadClose(&bzerror, self->fp); in BZ2File_clear()
1368 BZ2_bzWriteClose(&bzerror, self->fp, in BZ2File_clear()
1390 int bzerror; in BZ2File_init() local
1469 self->fp = BZ2_bzReadOpen(&bzerror, in BZ2File_init()
1473 self->fp = BZ2_bzWriteOpen(&bzerror, in BZ2File_init()
1477 if (bzerror != BZ_OK) { in BZ2File_init()
1478 Util_CatchBZ2Error(bzerror); in BZ2File_init()
1632 int bzerror; in BZ2Comp_compress() local
1665 bzerror = BZ2_bzCompress(bzs, BZ_RUN); in BZ2Comp_compress()
1669 if (bzerror != BZ_RUN_OK) { in BZ2Comp_compress()
1670 Util_CatchBZ2Error(bzerror); in BZ2Comp_compress()
1720 int bzerror; in BZ2Comp_flush() local
1741 bzerror = BZ2_bzCompress(bzs, BZ_FINISH); in BZ2Comp_flush()
1745 if (bzerror == BZ_STREAM_END) { in BZ2Comp_flush()
1747 } else if (bzerror != BZ_FINISH_OK) { in BZ2Comp_flush()
1748 Util_CatchBZ2Error(bzerror); in BZ2Comp_flush()
1792 int bzerror; in BZ2Comp_init() local
1814 bzerror = BZ2_bzCompressInit(&self->bzs, compresslevel, 0, 0); in BZ2Comp_init()
1815 if (bzerror != BZ_OK) { in BZ2Comp_init()
1816 Util_CatchBZ2Error(bzerror); in BZ2Comp_init()
1934 int bzerror; in BZ2Decomp_decompress() local
1962 bzerror = BZ2_bzDecompress(bzs); in BZ2Decomp_decompress()
1966 if (bzerror == BZ_STREAM_END) { in BZ2Decomp_decompress()
1977 if (bzerror != BZ_OK) { in BZ2Decomp_decompress()
1978 Util_CatchBZ2Error(bzerror); in BZ2Decomp_decompress()
2028 int bzerror; in BZ2Decomp_init() local
2046 bzerror = BZ2_bzDecompressInit(&self->bzs, 0, 0); in BZ2Decomp_init()
2047 if (bzerror != BZ_OK) { in BZ2Decomp_init()
2048 Util_CatchBZ2Error(bzerror); in BZ2Decomp_init()
2157 int bzerror; in bz2_compress() local
2187 bzerror = BZ2_bzCompressInit(bzs, compresslevel, 0, 0); in bz2_compress()
2188 if (bzerror != BZ_OK) { in bz2_compress()
2189 Util_CatchBZ2Error(bzerror); in bz2_compress()
2202 bzerror = BZ2_bzCompress(bzs, action); in bz2_compress()
2206 if (bzerror == BZ_STREAM_END) { in bz2_compress()
2208 } else if (bzerror != BZ_RUN_OK && bzerror != BZ_FINISH_OK) { in bz2_compress()
2210 Util_CatchBZ2Error(bzerror); in bz2_compress()
2262 int bzerror; in bz2_decompress() local
2287 bzerror = BZ2_bzDecompressInit(bzs, 0, 0); in bz2_decompress()
2288 if (bzerror != BZ_OK) { in bz2_decompress()
2289 Util_CatchBZ2Error(bzerror); in bz2_decompress()
2300 bzerror = BZ2_bzDecompress(bzs); in bz2_decompress()
2304 if (bzerror == BZ_STREAM_END) { in bz2_decompress()
2306 } else if (bzerror != BZ_OK) { in bz2_decompress()
2308 Util_CatchBZ2Error(bzerror); in bz2_decompress()