Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include "zlib.h"
Go to the source code of this file.
Macros | |
#define | SET_BINARY_MODE(file) |
#define | local static |
#define | BYE(...) |
#define | CHUNK 16384 |
Functions | |
char * | aprintf (char *fmt,...) |
int | gzip_normalize (FILE *in, FILE *out, char **err) |
int | main (void) |
#define BYE | ( | ... | ) |
char * aprintf | ( | char * | fmt, |
... | |||
) |
Definition at line 86 of file gznorm.c.
References z_stream_s::avail_in, z_stream_s::avail_out, bits(), BYE, CHUNK, crc32_combine(), z_stream_s::data_type, err, ferror, HEAD, in(), inflate(), inflateEnd(), inflateInit2, inflateReset(), last, len, long(), z_stream_s::msg, z_stream_s::next_in, z_stream_s::next_out, NULL, num, z_stream_s::opaque, out, strerror(), Z_BLOCK, Z_BUF_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Z_NULL, z_off_t, Z_OK, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
int main | ( | void | ) |
Definition at line 458 of file gznorm.c.
References err, free, gzip_normalize(), and SET_BINARY_MODE.