diff options
Diffstat (limited to 'src/common/unzip.c')
-rw-r--r-- | src/common/unzip.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common/unzip.c b/src/common/unzip.c index a469a5b..6f6eef7 100644 --- a/src/common/unzip.c +++ b/src/common/unzip.c | |||
@@ -331,7 +331,7 @@ struct EXTRACTOR_UnzipFile | |||
331 | /** | 331 | /** |
332 | * Read a byte from a gz_stream; update next_in and avail_in. Return EOF | 332 | * Read a byte from a gz_stream; update next_in and avail_in. Return EOF |
333 | * for end of file. | 333 | * for end of file. |
334 | * IN assertion: the stream s has been sucessfully opened for reading. | 334 | * IN assertion: the stream s has been successfully opened for reading. |
335 | * | 335 | * |
336 | * @param ffd functions for performing IO operations | 336 | * @param ffd functions for performing IO operations |
337 | * @param pi where to store the byte that was read | 337 | * @param pi where to store the byte that was read |
@@ -353,7 +353,7 @@ read_byte_from_ffd (const struct FileFuncDefs *ffd, | |||
353 | /** | 353 | /** |
354 | * Read a short (2 bytes) from a gz_stream; update next_in and avail_in. Return EOF | 354 | * Read a short (2 bytes) from a gz_stream; update next_in and avail_in. Return EOF |
355 | * for end of file. | 355 | * for end of file. |
356 | * IN assertion: the stream s has been sucessfully opened for reading. | 356 | * IN assertion: the stream s has been successfully opened for reading. |
357 | * | 357 | * |
358 | * @param ffd functions for performing IO operations | 358 | * @param ffd functions for performing IO operations |
359 | * @param pi where to store the short that was read | 359 | * @param pi where to store the short that was read |
@@ -382,7 +382,7 @@ read_short_from_ffd (const struct FileFuncDefs *ffd, | |||
382 | /** | 382 | /** |
383 | * Read a 'long' (4 bytes) from a gz_stream; update next_in and avail_in. Return EOF | 383 | * Read a 'long' (4 bytes) from a gz_stream; update next_in and avail_in. Return EOF |
384 | * for end of file. | 384 | * for end of file. |
385 | * IN assertion: the stream s has been sucessfully opened for reading. | 385 | * IN assertion: the stream s has been successfully opened for reading. |
386 | * | 386 | * |
387 | * @param ffd functions for performing IO operations | 387 | * @param ffd functions for performing IO operations |
388 | * @param pi where to store the long that was read | 388 | * @param pi where to store the long that was read |
@@ -434,7 +434,7 @@ read_long_from_ffd (const struct FileFuncDefs *ffd, | |||
434 | * @param filename2 name of second file | 434 | * @param filename2 name of second file |
435 | * @param iCaseSensitivity, use 1 for case sensitivity (like strcmp); | 435 | * @param iCaseSensitivity, use 1 for case sensitivity (like strcmp); |
436 | * 2 for no case sensitivity (like strcmpi or strcasecmp); or | 436 | * 2 for no case sensitivity (like strcmpi or strcasecmp); or |
437 | * 0 for defaut of your operating system (like 1 on Unix, 2 on Windows) | 437 | * 0 for default of your operating system (like 1 on Unix, 2 on Windows) |
438 | * @return 0 if names are equal | 438 | * @return 0 if names are equal |
439 | */ | 439 | */ |
440 | static int | 440 | static int |
@@ -735,9 +735,9 @@ unzip_open_using_ffd (struct FileFuncDefs *ffd) | |||
735 | uLong central_pos; | 735 | uLong central_pos; |
736 | uLong uL; | 736 | uLong uL; |
737 | uLong number_disk; /* number of the current dist, used for | 737 | uLong number_disk; /* number of the current dist, used for |
738 | spaning ZIP, unsupported, always 0*/ | 738 | spanning ZIP, unsupported, always 0*/ |
739 | uLong number_disk_with_CD; /* number of the disk with central dir, used | 739 | uLong number_disk_with_CD; /* number of the disk with central dir, used |
740 | for spaning ZIP, unsupported, always 0*/ | 740 | for spanning ZIP, unsupported, always 0*/ |
741 | uLong number_entry_CD; /* total number of entries in | 741 | uLong number_entry_CD; /* total number of entries in |
742 | the central dir | 742 | the central dir |
743 | (same than number_entry on nospan) */ | 743 | (same than number_entry on nospan) */ |
@@ -961,7 +961,7 @@ EXTRACTOR_common_unzip_go_to_next_file (struct EXTRACTOR_UnzipFile *file) | |||
961 | * @param szFileName name to find | 961 | * @param szFileName name to find |
962 | * @param iCaseSensitivity, use 1 for case sensitivity (like strcmp); | 962 | * @param iCaseSensitivity, use 1 for case sensitivity (like strcmp); |
963 | * 2 for no case sensitivity (like strcmpi or strcasecmp); or | 963 | * 2 for no case sensitivity (like strcmpi or strcasecmp); or |
964 | * 0 for defaut of your operating system (like 1 on Unix, 2 on Windows) | 964 | * 0 for default of your operating system (like 1 on Unix, 2 on Windows) |
965 | * @return #EXTRACTOR_UNZIP_OK if the file is found. It becomes the current file. | 965 | * @return #EXTRACTOR_UNZIP_OK if the file is found. It becomes the current file. |
966 | * #EXTRACTOR_UNZIP_END_OF_LIST_OF_FILE if the file is not found | 966 | * #EXTRACTOR_UNZIP_END_OF_LIST_OF_FILE if the file is not found |
967 | */ | 967 | */ |
@@ -1029,7 +1029,7 @@ EXTRACTOR_common_unzip_go_find_local_file (struct EXTRACTOR_UnzipFile *file, | |||
1029 | * | 1029 | * |
1030 | * @param buf contain buffer where data must be copied | 1030 | * @param buf contain buffer where data must be copied |
1031 | * @param len the size of buf. | 1031 | * @param len the size of buf. |
1032 | * @return the number of byte copied if somes bytes are copied | 1032 | * @return the number of byte copied if some bytes are copied |
1033 | * 0 if the end of file was reached | 1033 | * 0 if the end of file was reached |
1034 | * <0 with error code if there is an error | 1034 | * <0 with error code if there is an error |
1035 | * (#EXTRACTOR_UNZIP_ERRNO for IO error, or zLib error for uncompress error) | 1035 | * (#EXTRACTOR_UNZIP_ERRNO for IO error, or zLib error for uncompress error) |