zip_err_str.c 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. This file was generated automatically by CMake
  3. from zip.h and zipint.h; make changes there.
  4. */
  5. #include "zipint.h"
  6. #define L ZIP_ET_LIBZIP
  7. #define N ZIP_ET_NONE
  8. #define S ZIP_ET_SYS
  9. #define Z ZIP_ET_ZLIB
  10. #define E ZIP_DETAIL_ET_ENTRY
  11. #define G ZIP_DETAIL_ET_GLOBAL
  12. const struct _zip_err_info _zip_err_str[] = {
  13. { N, "No error" },
  14. { N, "Multi-disk zip archives not supported" },
  15. { S, "Renaming temporary file failed" },
  16. { S, "Closing zip archive failed" },
  17. { S, "Seek error" },
  18. { S, "Read error" },
  19. { S, "Write error" },
  20. { N, "CRC error" },
  21. { N, "Containing zip archive was closed" },
  22. { N, "No such file" },
  23. { N, "File already exists" },
  24. { S, "Can't open file" },
  25. { S, "Failure to create temporary file" },
  26. { Z, "Zlib error" },
  27. { N, "Malloc failure" },
  28. { N, "Entry has been changed" },
  29. { N, "Compression method not supported" },
  30. { N, "Premature end of file" },
  31. { N, "Invalid argument" },
  32. { N, "Not a zip archive" },
  33. { N, "Internal error" },
  34. { L, "Zip archive inconsistent" },
  35. { S, "Can't remove file" },
  36. { N, "Entry has been deleted" },
  37. { N, "Encryption method not supported" },
  38. { N, "Read-only archive" },
  39. { N, "No password provided" },
  40. { N, "Wrong password provided" },
  41. { N, "Operation not supported" },
  42. { N, "Resource still in use" },
  43. { S, "Tell error" },
  44. { N, "Compressed data invalid" },
  45. { N, "Operation cancelled" },
  46. };
  47. const int _zip_err_str_count = sizeof(_zip_err_str)/sizeof(_zip_err_str[0]);
  48. const struct _zip_err_info _zip_err_details[] = {
  49. { G, "no detail" },
  50. { G, "central directory overlaps EOCD, or there is space between them" },
  51. { G, "archive comment length incorrect" },
  52. { G, "central directory length invalid" },
  53. { E, "central header invalid" },
  54. { G, "central directory count of entries is incorrect" },
  55. { E, "local and central headers do not match" },
  56. { G, "wrong EOCD length" },
  57. { G, "EOCD64 overlaps EOCD, or there is space between them" },
  58. { G, "EOCD64 magic incorrect" },
  59. { G, "EOCD64 and EOCD do not match" },
  60. { G, "invalid value in central directory" },
  61. { E, "variable size fields overflow header" },
  62. { E, "invalid UTF-8 in filename" },
  63. { E, "invalid UTF-8 in comment" },
  64. { E, "invalid Zip64 extra field" },
  65. { E, "invalid WinZip AES extra field" },
  66. { E, "garbage at end of extra fields" },
  67. { E, "extra field length is invalid" },
  68. { E, "file length in header doesn't match actual file length" },
  69. };
  70. const int _zip_err_details_count = sizeof(_zip_err_details)/sizeof(_zip_err_details[0]);