Newly compiled applications will use the gzgetc macro.
EXPORT SYMBOL("gzputs")
EXPORT SYMBOL("gzgets")
EXPORT SYMBOL("gzputc")
+ EXPORT SYMBOL("gzgetc")
EXPORT SYMBOL("gzflush")
EXPORT SYMBOL("gzseek")
EXPORT SYMBOL("gzrewind")
D file value like(gzFile) File pointer
D c 10I 0 value Character to write
*
+ D gzgetc PR 10i 0 extproc('gzgetc')
+ D file value like(gzFile) File pointer
+ *
D gzgetc_ PR 10i 0 extproc('gzgetc_')
D file value like(gzFile) File pointer
*
zlibVersion @27\r
gzprintf @28\r
gzputc @29\r
+ gzgetc @30\r
gzseek @31\r
gzrewind @32\r
gztell @33\r
zlibVersion @27\r
gzprintf @28\r
gzputc @29\r
+ gzgetc @30\r
gzseek @31\r
gzrewind @32\r
gztell @33\r
(state->err != Z_OK && state->err != Z_BUF_ERROR))
return -1;
- /* try output buffer (no need to check for skip request) -- while
- this check really isn't required since the gzgetc() macro has
- already determined that x.have is zero, we leave it in for
- completeness. */
+ /* try output buffer (no need to check for skip request) */
if (state->x.have) {
state->x.have--;
state->x.pos++;
return ret < 1 ? -1 : buf[0];
}
+#undef gzgetc
+int ZEXPORT gzgetc(file)
+gzFile file;
+{
+ return gzgetc_(file);
+}
+
/* -- see zlib.h -- */
int ZEXPORT gzungetc(c, file)
int c;
gzputs
gzgets
gzputc
+ gzgetc
gzungetc
gzflush
gzseek
returns the value that was written, or -1 in case of error.
*/
-/*
ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
+/*
Reads one byte from the compressed file. gzgetc returns this byte or -1
in case of end of file or error. This is implemented as a macro for speed.
As such, it does not do all of the checking the other functions do. I.e.