ALL: initialise -> initialize
This commit is contained in:
parent
7ff9f34aef
commit
9539017ee3
121 changed files with 324 additions and 324 deletions
|
@ -349,7 +349,7 @@ typedef struct {
|
|||
z_stream stream; /* zLib stream structure for inflate */
|
||||
|
||||
uLong pos_in_zipfile; /* position in byte on the zipfile, for fseek*/
|
||||
uLong stream_initialised; /* flag set if stream structure is initialised*/
|
||||
uLong stream_initialized; /* flag set if stream structure is initialized*/
|
||||
|
||||
uLong offset_local_extrafield;/* offset of the local extra field */
|
||||
uInt size_local_extrafield;/* size of the local extra field */
|
||||
|
@ -1073,7 +1073,7 @@ int unzOpenCurrentFile (unzFile file) {
|
|||
return UNZ_INTERNALERROR;
|
||||
}
|
||||
|
||||
pfile_in_zip_read_info->stream_initialised=0;
|
||||
pfile_in_zip_read_info->stream_initialized=0;
|
||||
|
||||
if ((s->cur_file_info.compression_method!=0) &&
|
||||
(s->cur_file_info.compression_method!=Z_DEFLATED))
|
||||
|
@ -1096,7 +1096,7 @@ int unzOpenCurrentFile (unzFile file) {
|
|||
|
||||
err=inflateInit2(&pfile_in_zip_read_info->stream, -MAX_WBITS);
|
||||
if (err == Z_OK)
|
||||
pfile_in_zip_read_info->stream_initialised = 1;
|
||||
pfile_in_zip_read_info->stream_initialized = 1;
|
||||
/* windowBits is passed < 0 to tell that there is no zlib header.
|
||||
* Note that in this case inflate *requires* an extra "dummy" byte
|
||||
* after the compressed stream in order to complete decompression and
|
||||
|
@ -1365,7 +1365,7 @@ int unzCloseCurrentFile(unzFile file) {
|
|||
if (pfile_in_zip_read_info->crc32_data != pfile_in_zip_read_info->crc32_wait)
|
||||
err=UNZ_CRCERROR;
|
||||
}
|
||||
if (pfile_in_zip_read_info->stream_initialised)
|
||||
if (pfile_in_zip_read_info->stream_initialized)
|
||||
inflateEnd(&pfile_in_zip_read_info->stream);
|
||||
#endif
|
||||
|
||||
|
@ -1373,7 +1373,7 @@ int unzCloseCurrentFile(unzFile file) {
|
|||
free(pfile_in_zip_read_info->read_buffer);
|
||||
pfile_in_zip_read_info->read_buffer = NULL;
|
||||
|
||||
pfile_in_zip_read_info->stream_initialised = 0;
|
||||
pfile_in_zip_read_info->stream_initialized = 0;
|
||||
free(pfile_in_zip_read_info);
|
||||
|
||||
s->pfile_in_zip_read=NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue