90 unsigned int i, nbytes;
95 _(
"GRASS needs to be compiled with BZIP2 for BZIP2 compression"));
124 "G_bz2_compress(): programmer error, destination is too small");
141 G_warning(
_(
"BZIP2 version %s compression error %d"),
149 if (nbytes >= (
unsigned int)
src_sz) {
158 for (i = 0; i < nbytes; i++)
175 _(
"GRASS needs to be compiled with BZIP2 for BZIP2 compression"));
206 G_warning(
_(
"BZIP2 version %s decompression error %d"),
217 G_warning(
_(
"Got uncompressed size %d, expected %d"), (
int)nbytes,
int G_bz2_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
int G_bz2_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
int G_bz2_compress_bound(int src_sz)
void G_free(void *)
Free allocated memory.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
SYMBOL * err(FILE *fp, SYMBOL *s, char *msg)