annotate src/plugins/zlib/istream-bzlib.c @ 9575:0a00dcc4f0ea HEAD

lib-storage: Allow shared namespace prefix to use %variable modifiers.
author Timo Sirainen <tss@iki.fi>
date Wed, 26 May 2010 17:07:51 +0100
parents 00cd9aacd03c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9532
00cd9aacd03c Updated copyright notices to include year 2010.
Timo Sirainen <tss@iki.fi>
parents: 9176
diff changeset
1 /* Copyright (c) 2005-2010 Dovecot authors, see the included COPYING file */
7981
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3 #include "lib.h"
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
4 #include "istream-internal.h"
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
5 #include "istream-zlib.h"
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
6
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7 #ifdef HAVE_BZLIB
8047
965f8809d30c bzlib: Include stdio.h in case bzlib.h needs it.
Timo Sirainen <tss@iki.fi>
parents: 7981
diff changeset
8 #include <stdio.h>
7981
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 #include <bzlib.h>
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 #define BZLIB_INCLUDE
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13 #define gzFile BZFILE
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
14 #define gzdopen BZ2_bzdopen
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
15 #define gzclose BZ2_bzclose
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
16 #define gzread BZ2_bzread
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
17 #define gzseek BZ2_bzseek
9176
fcebba0f438f zlib: Fixed error handling.
Timo Sirainen <tss@iki.fi>
parents: 8590
diff changeset
18 #define gzerror BZ2_bzerror
fcebba0f438f zlib: Fixed error handling.
Timo Sirainen <tss@iki.fi>
parents: 8590
diff changeset
19 #define Z_ERRNO BZ_IO_ERROR
7981
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
20
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
21 #define i_stream_create_zlib i_stream_create_bzlib
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
22 #include "istream-zlib.c"
bb9d3aabcb61 zlib plugin supports now bzip2 also.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
23 #endif