|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |

Go to the source code of this file.
Classes | |
| struct | internal_state |
| struct | gz_stream |
Defines | |
| #define | Z_BUFSIZE 16384 |
| #define | Z_PRINTF_BUFSIZE 4096 |
| #define | ALLOC(size) malloc(size) |
| #define | TRYFREE(p) {if (p) free(p);} |
| #define | ASCII_FLAG 0x01 |
| #define | HEAD_CRC 0x02 |
| #define | EXTRA_FIELD 0x04 |
| #define | ORIG_NAME 0x08 |
| #define | COMMENT 0x10 |
| #define | RESERVED 0xE0 |
| #define | zstrerror(errnum) "" |
Typedefs | |
| typedef struct gz_stream | gz_stream |
Functions | |
| voidp malloc | OF ((uInt size)) |
| void free | OF ((voidpf ptr)) |
| local gzFile gz_open | OF ((const char *path, const char *mode, intfd)) |
| local int do_flush | OF ((gzFile file, int flush)) |
| local int get_byte | OF ((gz_stream *s)) |
| local void putLong | OF ((FILE *file, uLong x)) |
| local gzFile | gz_open (char *path, const char *mode, int fd) const |
| gzFile ZEXPORT | gzopen (char *path, const char *mode) const |
| gzFile ZEXPORT | gzdopen (int fd, const char *mode) |
| int ZEXPORT | gzsetparams (gzFile file, int level, int strategy) |
| local int | get_byte (gz_stream *s) |
| local void | check_header (gz_stream *s) |
| local int | destroy (gz_stream *s) |
| int ZEXPORT | gzread (gzFile file, voidp buf, unsigned len) |
| int ZEXPORT | gzgetc (gzFile file) |
| int ZEXPORT | gzungetc (int c, gzFile file) |
| char *ZEXPORT | gzgets (gzFile file, char *buf, int len) |
| int ZEXPORT | gzwrite (gzFile file, voidpc buf, unsigned len) |
| int ZEXPORTVA | gzprintf (gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20) |
| int ZEXPORT | gzputc (gzFile file, int c) |
| int ZEXPORT | gzputs (gzFile file, const char *s) |
| local int | do_flush (gzFile file, int flush) |
| int ZEXPORT | gzflush (gzFile file, int flush) |
| z_off_t ZEXPORT | gzseek (gzFile file, z_off_t offset, int whence) |
| int ZEXPORT | gzrewind (gzFile file) |
| z_off_t ZEXPORT | gztell (gzFile file) |
| int ZEXPORT | gzeof (gzFile file) |
| int ZEXPORT | gzdirect (gzFile file) |
| local void | putLong (FILE *file, uLong x) |
| local uLong | getLong (gz_stream *s) |
| int ZEXPORT | gzclose (gzFile file) |
| const char *ZEXPORT | gzerror (gzFile file, int *errnum) |
| void ZEXPORT | gzclearerr (gzFile file) |
| #define COMMENT 0x10 |
Definition at line 53 of file gzio.c.
Referenced by check_header().
| #define EXTRA_FIELD 0x04 |
Definition at line 51 of file gzio.c.
Referenced by check_header().
| #define HEAD_CRC 0x02 |
Definition at line 50 of file gzio.c.
Referenced by check_header().
| #define ORIG_NAME 0x08 |
Definition at line 52 of file gzio.c.
Referenced by check_header().
| #define RESERVED 0xE0 |
Definition at line 54 of file gzio.c.
Referenced by check_header().
| #define TRYFREE | ( | p | ) | {if (p) free(p);} |
| #define Z_BUFSIZE 16384 |
Definition at line 26 of file gzio.c.
Referenced by check_header(), do_flush(), get_byte(), gz_open(), gzread(), gzseek(), gzsetparams(), and gzwrite().
| #define Z_PRINTF_BUFSIZE 4096 |
Definition at line 30 of file gzio.c.
Referenced by gzprintf().
| local void check_header | ( | gz_stream * | s | ) |
Definition at line 288 of file gzio.c.
References COMMENT, EXTRA_FIELD, flags, get_byte(), HEAD_CRC, method, ORIG_NAME, RESERVED, Z_BUFSIZE, Z_DATA_ERROR, Z_DEFLATED, Z_ERRNO, and Z_OK.
| local int destroy | ( | gz_stream * | s | ) |
Definition at line 355 of file gzio.c.
References deflateEnd(), inflateEnd(), NULL, TRYFREE, Z_ERRNO, Z_OK, and Z_STREAM_ERROR.
| local int do_flush | ( | gzFile | file, |
| int | flush | ||
| ) |
Definition at line 705 of file gzio.c.
References z_stream_s::avail_in, z_stream_s::avail_out, deflate(), gz_stream::file, gz_stream::mode, z_stream_s::next_out, NULL, gz_stream::out, gz_stream::outbuf, gz_stream::stream, Z_BUF_ERROR, Z_BUFSIZE, gz_stream::z_err, Z_ERRNO, Z_OK, Z_STREAM_END, and Z_STREAM_ERROR.
| local int get_byte | ( | gz_stream * | s | ) |
Definition at line 261 of file gzio.c.
References z_stream_s::avail_in, gz_stream::stream, Z_BUFSIZE, and Z_ERRNO.
Referenced by check_header(), and getLong().
Definition at line 935 of file gzio.c.
References get_byte(), x, and Z_DATA_ERROR.
Referenced by gzread().
| local gzFile gz_open | ( | char * | path, |
| const char * | mode, | ||
| int | fd | ||
| ) | const |
Definition at line 93 of file gzio.c.
References ALLOC, z_stream_s::avail_in, z_stream_s::avail_out, gz_stream::back, check_header(), gz_stream::crc, crc32(), DEF_MEM_LEVEL, deflateInit2, destroy(), F_OPEN, gz_stream::file, gz_stream::in, gz_stream::inbuf, inflateInit2, level, m, MAX_WBITS, gz_stream::mode, gz_stream::msg, z_stream_s::next_in, z_stream_s::next_out, NULL, z_stream_s::opaque, OS_CODE, gz_stream::out, gz_stream::outbuf, gz_stream::path, gz_stream::start, strategy, gz_stream::stream, gz_stream::transparent, Z_BUFSIZE, Z_DEFAULT_COMPRESSION, Z_DEFAULT_STRATEGY, Z_DEFLATED, gz_stream::z_eof, gz_stream::z_err, Z_FILTERED, Z_HUFFMAN_ONLY, Z_NULL, Z_OK, Z_RLE, Z_STREAM_ERROR, z_stream_s::zalloc, and z_stream_s::zfree.
| void ZEXPORT gzclearerr | ( | gzFile | file | ) |
Definition at line 1017 of file gzio.c.
References gz_stream::file, NULL, gz_stream::z_eof, gz_stream::z_err, Z_OK, and Z_STREAM_END.
| int ZEXPORT gzclose | ( | gzFile | file | ) |
Definition at line 953 of file gzio.c.
References gz_stream::crc, destroy(), do_flush(), gz_stream::file, gz_stream::in, gz_stream::mode, NULL, putLong(), Z_FINISH, Z_OK, and Z_STREAM_ERROR.
| int ZEXPORT gzdirect | ( | gzFile | file | ) |
Definition at line 908 of file gzio.c.
References gz_stream::mode, NULL, and gz_stream::transparent.
| gzFile ZEXPORT gzdopen | ( | int | fd, |
| const char * | mode | ||
| ) |
| int ZEXPORT gzeof | ( | gzFile | file | ) |
Definition at line 891 of file gzio.c.
References gz_stream::mode, NULL, gz_stream::z_eof, gz_stream::z_err, and Z_STREAM_END.
| const char* ZEXPORT gzerror | ( | gzFile | file, |
| int * | errnum | ||
| ) |
Definition at line 987 of file gzio.c.
References ALLOC, ERR_MSG, m, gz_stream::msg, z_stream_s::msg, NULL, gz_stream::path, gz_stream::stream, TRYFREE, gz_stream::z_err, Z_ERRNO, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, and zstrerror.
| int ZEXPORT gzflush | ( | gzFile | file, |
| int | flush | ||
| ) |
Definition at line 746 of file gzio.c.
References do_flush(), gz_stream::file, gz_stream::z_err, Z_OK, and Z_STREAM_END.
| char* ZEXPORT gzgets | ( | gzFile | file, |
| char * | buf, | ||
| int | len | ||
| ) |
| gzFile ZEXPORT gzopen | ( | char * | path, |
| const char * | mode | ||
| ) | const |
| int ZEXPORTVA gzprintf | ( | gzFile | file, |
| const char * | format, | ||
| int | a1, | ||
| int | a2, | ||
| int | a3, | ||
| int | a4, | ||
| int | a5, | ||
| int | a6, | ||
| int | a7, | ||
| int | a8, | ||
| int | a9, | ||
| int | a10, | ||
| int | a11, | ||
| int | a12, | ||
| int | a13, | ||
| int | a14, | ||
| int | a15, | ||
| int | a16, | ||
| int | a17, | ||
| int | a18, | ||
| int | a19, | ||
| int | a20 | ||
| ) |
| int ZEXPORT gzputc | ( | gzFile | file, |
| int | c | ||
| ) |
| int ZEXPORT gzputs | ( | gzFile | file, |
| const char * | s | ||
| ) |
Definition at line 394 of file gzio.c.
References z_stream_s::avail_in, z_stream_s::avail_out, gz_stream::back, check_header(), gz_stream::crc, crc32(), gz_stream::file, getLong(), gz_stream::in, gz_stream::inbuf, inflate(), inflateReset(), gz_stream::last, gz_stream::mode, z_stream_s::next_in, z_stream_s::next_out, NULL, gz_stream::out, start, gz_stream::stream, gz_stream::transparent, void(), Z_BUFSIZE, Z_DATA_ERROR, gz_stream::z_eof, gz_stream::z_err, Z_ERRNO, Z_NO_FLUSH, Z_NULL, Z_OK, Z_STREAM_END, Z_STREAM_ERROR, and zmemcpy().
| int ZEXPORT gzrewind | ( | gzFile | file | ) |
Definition at line 857 of file gzio.c.
References z_stream_s::avail_in, gz_stream::back, gz_stream::crc, crc32(), gz_stream::file, gz_stream::in, gz_stream::inbuf, inflateReset(), gz_stream::mode, z_stream_s::next_in, NULL, gz_stream::out, SEEK_SET, gz_stream::start, gz_stream::stream, gz_stream::transparent, void(), gz_stream::z_eof, gz_stream::z_err, Z_NULL, and Z_OK.
Referenced by gzseek().
| z_off_t ZEXPORT gzseek | ( | gzFile | file, |
| z_off_t | offset, | ||
| int | whence | ||
| ) |
Definition at line 767 of file gzio.c.
References ALLOC, z_stream_s::avail_in, gz_stream::back, gz_stream::file, gzread(), gzrewind(), gzwrite(), gz_stream::in, gz_stream::inbuf, int, gz_stream::last, gz_stream::mode, z_stream_s::next_in, NULL, gz_stream::out, gz_stream::outbuf, SEEK_CUR, SEEK_END, SEEK_SET, size, gz_stream::stream, gz_stream::transparent, Z_BUFSIZE, Z_DATA_ERROR, gz_stream::z_err, Z_ERRNO, Z_NULL, Z_STREAM_END, and zmemzero().
Referenced by gztell().
| int ZEXPORT gzsetparams | ( | gzFile | file, |
| int | level, | ||
| int | strategy | ||
| ) |
Definition at line 234 of file gzio.c.
References z_stream_s::avail_out, deflateParams(), gz_stream::file, gz_stream::mode, z_stream_s::next_out, NULL, gz_stream::outbuf, gz_stream::stream, Z_BUFSIZE, gz_stream::z_err, Z_ERRNO, and Z_STREAM_ERROR.
| z_off_t ZEXPORT gztell | ( | gzFile | file | ) |
| int ZEXPORT gzungetc | ( | int | c, |
| gzFile | file | ||
| ) |
Definition at line 515 of file gzio.c.
References gz_stream::back, gz_stream::last, gz_stream::mode, NULL, gz_stream::out, gz_stream::z_eof, gz_stream::z_err, Z_OK, and Z_STREAM_END.
Definition at line 559 of file gzio.c.
References z_stream_s::avail_in, z_stream_s::avail_out, gz_stream::crc, crc32(), deflate(), gz_stream::file, gz_stream::in, gz_stream::mode, z_stream_s::next_in, z_stream_s::next_out, NULL, gz_stream::out, gz_stream::outbuf, gz_stream::stream, Z_BUFSIZE, gz_stream::z_err, Z_ERRNO, Z_NO_FLUSH, Z_OK, and Z_STREAM_ERROR.
Referenced by gzprintf(), gzputc(), gzputs(), and gzseek().
| local int do_flush OF | ( | (gzFile file, int flush) | ) |
| local gzFile gz_open OF | ( | (const char *path, const char *mode, intfd) | ) |
| local int get_byte OF | ( | (gz_stream *s) | ) |