Home | History | Annotate | Download | only in pascal

Lines Matching refs:err

37 procedure CHECK_ERR(err: Integer; msg: String);
39 if err <> Z_OK then
41 WriteLn(msg, ' error: ', err);
58 var err: Integer;
63 err := compress(compr, comprLen, hello, len);
64 CHECK_ERR(err, 'compress');
68 err := uncompress(uncompr, uncomprLen, compr, comprLen);
69 CHECK_ERR(err, 'uncompress');
85 var err: Integer;
101 WriteLn('gzputs err: ', gzerror(zfile, err));
107 WriteLn('gzprintf err: ', gzerror(zfile, err));
113 WriteLn('gzputs err: ', gzerror(zfile, err));
131 WriteLn('gzread err: ', gzerror(zfile, err));
165 WriteLn('gzgets err after gzseek: ', gzerror(zfile, err));
186 err: Integer;
195 err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
196 CHECK_ERR(err, 'deflateInit');
206 err := deflate(c_stream, Z_NO_FLUSH);
207 CHECK_ERR(err, 'deflate');
214 err := deflate(c_stream, Z_FINISH);
215 if err = Z_STREAM_END then
217 CHECK_ERR(err, 'deflate');
220 err := deflateEnd(c_stream);
221 CHECK_ERR(err, 'deflateEnd');
231 var err: Integer;
244 err := inflateInit(d_stream);
245 CHECK_ERR(err, 'inflateInit');
252 err := inflate(d_stream, Z_NO_FLUSH);
253 if err = Z_STREAM_END then
255 CHECK_ERR(err, 'inflate');
258 err := inflateEnd(d_stream);
259 CHECK_ERR(err, 'inflateEnd');
275 err: Integer;
281 err := deflateInit(c_stream, Z_BEST_SPEED);
282 CHECK_ERR(err, 'deflateInit');
292 err := deflate(c_stream, Z_NO_FLUSH);
293 CHECK_ERR(err, 'deflate');
301 err := deflate(c_stream, Z_NO_FLUSH);
302 CHECK_ERR(err, 'deflate');
308 err := deflate(c_stream, Z_NO_FLUSH);
309 CHECK_ERR(err, 'deflate');
311 err := deflate(c_stream, Z_FINISH);
312 if err <> Z_STREAM_END then
315 err := deflateEnd(c_stream);
316 CHECK_ERR(err, 'deflateEnd');
326 var err: Integer;
338 err := inflateInit(d_stream);
339 CHECK_ERR(err, 'inflateInit');
345 err := inflate(d_stream, Z_NO_FLUSH);
346 if err = Z_STREAM_END then
348 CHECK_ERR(err, 'large inflate');
351 err := inflateEnd(d_stream);
352 CHECK_ERR(err, 'inflateEnd');
370 err: Integer;
379 err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
380 CHECK_ERR(err, 'deflateInit');
386 err := deflate(c_stream, Z_FULL_FLUSH);
387 CHECK_ERR(err, 'deflate');
392 err := deflate(c_stream, Z_FINISH);
393 if err <> Z_STREAM_END then
394 CHECK_ERR(err, 'deflate');
396 err := deflateEnd(c_stream);
397 CHECK_ERR(err, 'deflateEnd');
409 var err: Integer;
421 err := inflateInit(d_stream);
422 CHECK_ERR(err, 'inflateInit');
428 CHECK_ERR(err, 'inflate');
431 err := inflateSync(d_stream); (* but skip the damaged part *)
432 CHECK_ERR(err, 'inflateSync');
434 err := inflate(d_stream, Z_FINISH);
435 if err <> Z_DATA_ERROR then
439 err := inflateEnd(d_stream);
440 CHECK_ERR(err, 'inflateEnd');
452 err: Integer;
458 err := deflateInit(c_stream, Z_BEST_COMPRESSION);
459 CHECK_ERR(err, 'deflateInit');
461 err := deflateSetDictionary(c_stream, dictionary, StrLen(dictionary));
462 CHECK_ERR(err, 'deflateSetDictionary');
471 err := deflate(c_stream, Z_FINISH);
472 if err <> Z_STREAM_END then
475 err := deflateEnd(c_stream);
476 CHECK_ERR(err, 'deflateEnd');
486 var err: Integer;
498 err := inflateInit(d_stream);
499 CHECK_ERR(err, 'inflateInit');
506 err := inflate(d_stream, Z_NO_FLUSH);
507 if err = Z_STREAM_END then
509 if err = Z_NEED_DICT then
513 err := inflateSetDictionary(d_stream, dictionary, StrLen(dictionary));
515 CHECK_ERR(err, 'inflate with dict');
518 err := inflateEnd(d_stream);
519 CHECK_ERR(err, 'inflateEnd');