First Commit
This commit is contained in:
70
3rdparty/libzip/msvc/config.h
vendored
Normal file
70
3rdparty/libzip/msvc/config.h
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
#ifndef HAD_CONFIG_H
|
||||
#define HAD_CONFIG_H
|
||||
#ifndef _HAD_ZIPCONF_H
|
||||
#include "zipconf.h"
|
||||
#endif
|
||||
/* BEGIN DEFINES */
|
||||
#define ENABLE_FDOPEN
|
||||
/* #undef HAVE___PROGNAME */
|
||||
#define HAVE__CLOSE
|
||||
#define HAVE__DUP
|
||||
#define HAVE__FDOPEN
|
||||
#define HAVE__FILENO
|
||||
#define HAVE__SETMODE
|
||||
#define HAVE__SNPRINTF
|
||||
#define HAVE__SNPRINTF_S
|
||||
#define HAVE__SNWPRINTF_S
|
||||
#define HAVE__STRDUP
|
||||
#define HAVE__STRICMP
|
||||
#define HAVE__STRTOI64
|
||||
#define HAVE__STRTOUI64
|
||||
#define HAVE__UNLINK
|
||||
/* #undef HAVE_ARC4RANDOM */
|
||||
/* #undef HAVE_CLONEFILE */
|
||||
/* #undef HAVE_COMMONCRYPTO */
|
||||
/* #undef HAVE_CRYPTO */
|
||||
/* #undef HAVE_FICLONERANGE */
|
||||
#define HAVE_FILENO
|
||||
/* #undef HAVE_FCHMOD */
|
||||
/* #undef HAVE_FSEEKO */
|
||||
/* #undef HAVE_FTELLO */
|
||||
/* #undef HAVE_GETPROGNAME */
|
||||
/* #undef HAVE_GNUTLS */
|
||||
/* #undef HAVE_LIBBZ2 */
|
||||
/* #undef HAVE_LIBLZMA */
|
||||
#define HAVE_LIBZSTD
|
||||
/* #undef HAVE_LOCALTIME_R */
|
||||
#define HAVE_LOCALTIME_S
|
||||
#define HAVE_MEMCPY_S
|
||||
/* #undef HAVE_MBEDTLS */
|
||||
/* #undef HAVE_MKSTEMP */
|
||||
/* #undef HAVE_NULLABLE */
|
||||
/* #undef HAVE_OPENSSL */
|
||||
#define HAVE_SETMODE
|
||||
#define HAVE_SNPRINTF
|
||||
/* #undef HAVE_SNPRINTF_S */
|
||||
/* #undef HAVE_STRCASECMP */
|
||||
#define HAVE_STRDUP
|
||||
#define HAVE_STRERROR_S
|
||||
/* #undef HAVE_STRERRORLEN_S */
|
||||
#define HAVE_STRICMP
|
||||
#define HAVE_STRNCPY_S
|
||||
#define HAVE_STRTOLL
|
||||
#define HAVE_STRTOULL
|
||||
/* #undef HAVE_STRUCT_TM_TM_ZONE */
|
||||
#define HAVE_STDBOOL_H
|
||||
/* #undef HAVE_STRINGS_H */
|
||||
/* #undef HAVE_UNISTD_H */
|
||||
/* #undef HAVE_WINDOWS_CRYPTO */
|
||||
#define SIZEOF_OFF_T 4
|
||||
#define SIZEOF_SIZE_T 8
|
||||
/* #undef HAVE_DIRENT_H */
|
||||
/* #undef HAVE_FTS_H */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
/* #undef WORDS_BIGENDIAN */
|
||||
/* #undef HAVE_SHARED */
|
||||
/* END DEFINES */
|
||||
|
||||
#endif /* HAD_CONFIG_H */
|
||||
79
3rdparty/libzip/msvc/zip_err_str.c
vendored
Normal file
79
3rdparty/libzip/msvc/zip_err_str.c
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
This file was generated automatically by CMake
|
||||
from zip.h and zipint.h; make changes there.
|
||||
*/
|
||||
|
||||
#include "zipint.h"
|
||||
|
||||
#define L ZIP_ET_LIBZIP
|
||||
#define N ZIP_ET_NONE
|
||||
#define S ZIP_ET_SYS
|
||||
#define Z ZIP_ET_ZLIB
|
||||
|
||||
#define E ZIP_DETAIL_ET_ENTRY
|
||||
#define G ZIP_DETAIL_ET_GLOBAL
|
||||
|
||||
const struct _zip_err_info _zip_err_str[] = {
|
||||
{ N, "No error" },
|
||||
{ N, "Multi-disk zip archives not supported" },
|
||||
{ S, "Renaming temporary file failed" },
|
||||
{ S, "Closing zip archive failed" },
|
||||
{ S, "Seek error" },
|
||||
{ S, "Read error" },
|
||||
{ S, "Write error" },
|
||||
{ N, "CRC error" },
|
||||
{ N, "Containing zip archive was closed" },
|
||||
{ N, "No such file" },
|
||||
{ N, "File already exists" },
|
||||
{ S, "Can't open file" },
|
||||
{ S, "Failure to create temporary file" },
|
||||
{ Z, "Zlib error" },
|
||||
{ N, "Malloc failure" },
|
||||
{ N, "Entry has been changed" },
|
||||
{ N, "Compression method not supported" },
|
||||
{ N, "Premature end of file" },
|
||||
{ N, "Invalid argument" },
|
||||
{ N, "Not a zip archive" },
|
||||
{ N, "Internal error" },
|
||||
{ L, "Zip archive inconsistent" },
|
||||
{ S, "Can't remove file" },
|
||||
{ N, "Entry has been deleted" },
|
||||
{ N, "Encryption method not supported" },
|
||||
{ N, "Read-only archive" },
|
||||
{ N, "No password provided" },
|
||||
{ N, "Wrong password provided" },
|
||||
{ N, "Operation not supported" },
|
||||
{ N, "Resource still in use" },
|
||||
{ S, "Tell error" },
|
||||
{ N, "Compressed data invalid" },
|
||||
{ N, "Operation cancelled" },
|
||||
{ N, "Unexpected length of data" },
|
||||
{ N, "Not allowed in torrentzip" },
|
||||
};
|
||||
|
||||
const int _zip_err_str_count = sizeof(_zip_err_str)/sizeof(_zip_err_str[0]);
|
||||
|
||||
const struct _zip_err_info _zip_err_details[] = {
|
||||
{ G, "no detail" },
|
||||
{ G, "central directory overlaps EOCD, or there is space between them" },
|
||||
{ G, "archive comment length incorrect" },
|
||||
{ G, "central directory length invalid" },
|
||||
{ E, "central header invalid" },
|
||||
{ G, "central directory count of entries is incorrect" },
|
||||
{ E, "local and central headers do not match" },
|
||||
{ G, "wrong EOCD length" },
|
||||
{ G, "EOCD64 overlaps EOCD, or there is space between them" },
|
||||
{ G, "EOCD64 magic incorrect" },
|
||||
{ G, "EOCD64 and EOCD do not match" },
|
||||
{ G, "invalid value in central directory" },
|
||||
{ E, "variable size fields overflow header" },
|
||||
{ E, "invalid UTF-8 in filename" },
|
||||
{ E, "invalid UTF-8 in comment" },
|
||||
{ E, "invalid Zip64 extra field" },
|
||||
{ E, "invalid WinZip AES extra field" },
|
||||
{ E, "garbage at end of extra fields" },
|
||||
{ E, "extra field length is invalid" },
|
||||
{ E, "file length in header doesn't match actual file length" },
|
||||
};
|
||||
|
||||
const int _zip_err_details_count = sizeof(_zip_err_details)/sizeof(_zip_err_details[0]);
|
||||
51
3rdparty/libzip/msvc/zipconf.h
vendored
Normal file
51
3rdparty/libzip/msvc/zipconf.h
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
#ifndef _HAD_ZIPCONF_H
|
||||
#define _HAD_ZIPCONF_H
|
||||
|
||||
/*
|
||||
zipconf.h -- platform specific include file
|
||||
|
||||
This file was generated automatically by CMake
|
||||
based on ../cmake-zipconf.h.in.
|
||||
*/
|
||||
|
||||
#define LIBZIP_VERSION "1.10.1"
|
||||
#define LIBZIP_VERSION_MAJOR 1
|
||||
#define LIBZIP_VERSION_MINOR 10
|
||||
#define LIBZIP_VERSION_MICRO 1
|
||||
|
||||
#define ZIP_STATIC
|
||||
|
||||
#define _Nullable
|
||||
#define _Nonnull
|
||||
|
||||
#if !defined(__STDC_FORMAT_MACROS)
|
||||
#define __STDC_FORMAT_MACROS 1
|
||||
#endif
|
||||
#include <inttypes.h>
|
||||
|
||||
typedef int8_t zip_int8_t;
|
||||
typedef uint8_t zip_uint8_t;
|
||||
typedef int16_t zip_int16_t;
|
||||
typedef uint16_t zip_uint16_t;
|
||||
typedef int32_t zip_int32_t;
|
||||
typedef uint32_t zip_uint32_t;
|
||||
typedef int64_t zip_int64_t;
|
||||
typedef uint64_t zip_uint64_t;
|
||||
|
||||
#define ZIP_INT8_MIN (-ZIP_INT8_MAX-1)
|
||||
#define ZIP_INT8_MAX 0x7f
|
||||
#define ZIP_UINT8_MAX 0xff
|
||||
|
||||
#define ZIP_INT16_MIN (-ZIP_INT16_MAX-1)
|
||||
#define ZIP_INT16_MAX 0x7fff
|
||||
#define ZIP_UINT16_MAX 0xffff
|
||||
|
||||
#define ZIP_INT32_MIN (-ZIP_INT32_MAX-1L)
|
||||
#define ZIP_INT32_MAX 0x7fffffffL
|
||||
#define ZIP_UINT32_MAX 0xffffffffLU
|
||||
|
||||
#define ZIP_INT64_MIN (-ZIP_INT64_MAX-1LL)
|
||||
#define ZIP_INT64_MAX 0x7fffffffffffffffLL
|
||||
#define ZIP_UINT64_MAX 0xffffffffffffffffULL
|
||||
|
||||
#endif /* zipconf.h */
|
||||
Reference in New Issue
Block a user