1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

gz_statep is union

This commit is contained in:
Przemyslaw Skibinski
2016-11-29 15:50:28 +01:00
parent 0fa3447dee
commit a1f60632cb
3 changed files with 121 additions and 116 deletions

View File

@ -191,7 +191,12 @@ typedef struct {
/* zlib inflate or deflate stream */
z_stream strm; /* stream structure in-place (not a pointer) */
} gz_state;
typedef gz_state FAR *gz_statep;
typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
typedef union {
gz_state* state;
gzFile file;
} gz_statep;
/* shared functions */
void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *));