react-native-update 10.34.2 → 10.34.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (908) hide show
  1. package/.gitmodules +4 -4
  2. package/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +291 -0
  3. package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +48 -0
  4. package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +473 -0
  5. package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +552 -0
  6. package/harmony/pushy/src/main/cpp/HDiffPatch/README_cn.md +547 -0
  7. package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +127 -0
  8. package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +59 -0
  9. package/harmony/pushy/src/main/cpp/HDiffPatch/_dir_ignore.h +191 -0
  10. package/harmony/pushy/src/main/cpp/HDiffPatch/_hextobytes.h +112 -0
  11. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.cpp +389 -0
  12. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.h +73 -0
  13. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.c +266 -0
  14. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.h +58 -0
  15. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +190 -0
  16. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +8 -0
  17. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.bat +1 -0
  18. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.sh +1 -0
  19. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.bat +1 -0
  20. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.sh +1 -0
  21. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +49 -0
  22. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +31 -0
  23. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +38 -0
  24. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +26 -0
  25. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +155 -0
  26. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +364 -0
  27. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +348 -0
  28. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/bzip2.vcxproj +228 -0
  29. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/hpatchz_test.vcxproj +215 -0
  30. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/libdeflate.vcxproj +256 -0
  31. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/longPathAware.exe.manifest +7 -0
  32. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/lzma.vcxproj +271 -0
  33. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/testHashClash.vcxproj +228 -0
  34. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +296 -0
  35. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zlib.vcxproj +242 -0
  36. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zstd.vcxproj +287 -0
  37. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +39 -0
  38. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  39. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  40. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +447 -0
  41. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +703 -0
  42. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +463 -0
  43. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/libdeflate.xcodeproj/project.pbxproj +286 -0
  44. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lz4.xcodeproj/project.pbxproj +268 -0
  45. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +585 -0
  46. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +301 -0
  47. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +591 -0
  48. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zlib.xcodeproj/project.pbxproj +308 -0
  49. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +524 -0
  50. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.h +33 -0
  51. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.m +33 -0
  52. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatchz.xcodeproj/project.pbxproj +774 -0
  53. package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +799 -0
  54. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +201 -0
  55. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +59 -0
  56. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +1526 -0
  57. package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +1637 -0
  58. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +846 -0
  59. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +79 -0
  60. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +339 -0
  61. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +190 -0
  62. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +339 -0
  63. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.h +87 -0
  64. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +43 -0
  65. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +836 -0
  66. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +246 -0
  67. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_private.h +47 -0
  68. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +112 -0
  69. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +69 -0
  70. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +65 -0
  71. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +346 -0
  72. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +149 -0
  73. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +176 -0
  74. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +84 -0
  75. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +146 -0
  76. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +61 -0
  77. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +152 -0
  78. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +76 -0
  79. package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +735 -0
  80. package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +240 -0
  81. package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +1971 -0
  82. package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.c +31 -0
  83. package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.h +42 -0
  84. package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +307 -0
  85. package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +1786 -0
  86. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +1746 -0
  87. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +201 -0
  88. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_for_hpatch_lite.h +74 -0
  89. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +187 -0
  90. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp +478 -0
  91. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.h +222 -0
  92. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +383 -0
  93. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +73 -0
  94. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +184 -0
  95. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +88 -0
  96. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/config.h +89 -0
  97. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +325 -0
  98. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.cpp +10 -0
  99. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +97 -0
  100. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.cpp +14 -0
  101. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +108 -0
  102. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +186 -0
  103. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +780 -0
  104. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +579 -0
  105. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +415 -0
  106. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +144 -0
  107. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +164 -0
  108. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +148 -0
  109. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +769 -0
  110. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +97 -0
  111. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +954 -0
  112. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +299 -0
  113. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.cpp +168 -0
  114. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.h +44 -0
  115. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +72 -0
  116. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +130 -0
  117. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/qsort_parallel.h +125 -0
  118. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +428 -0
  119. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +133 -0
  120. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +52 -0
  121. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.c +243 -0
  122. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.h +51 -0
  123. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.c +153 -0
  124. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.h +54 -0
  125. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.c +158 -0
  126. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.h +49 -0
  127. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.c +294 -0
  128. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.h +59 -0
  129. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_patch_private_mt.h +217 -0
  130. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.c +349 -0
  131. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.h +110 -0
  132. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +2643 -0
  133. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +253 -0
  134. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +245 -0
  135. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +361 -0
  136. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.c +366 -0
  137. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h +91 -0
  138. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_input_cache.h +31 -0
  139. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_types.h +106 -0
  140. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +170 -0
  141. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +250 -0
  142. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +67 -0
  143. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.c +497 -0
  144. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.h +106 -0
  145. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.cpp +254 -0
  146. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.h +39 -0
  147. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_sign_diff_type.h +37 -0
  148. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.cpp +62 -0
  149. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.h +44 -0
  150. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dict_decompress_plugin.h +156 -0
  151. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.cpp +440 -0
  152. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.h +88 -0
  153. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.cpp +332 -0
  154. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.h +48 -0
  155. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_types.h +198 -0
  156. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.cpp +697 -0
  157. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.h +74 -0
  158. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_private.h +262 -0
  159. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type.h +174 -0
  160. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type_private.h +174 -0
  161. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.cpp +252 -0
  162. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.h +67 -0
  163. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.cpp +680 -0
  164. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.h +137 -0
  165. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dict_compress_plugin.h +83 -0
  166. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.cpp +125 -0
  167. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.h +56 -0
  168. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/hsynz_plugin.h +55 -0
  169. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.cpp +147 -0
  170. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.h +38 -0
  171. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.cpp +354 -0
  172. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.h +76 -0
  173. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.cpp +521 -0
  174. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.h +69 -0
  175. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_hash_clash.h +122 -0
  176. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_private.h +66 -0
  177. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type.h +36 -0
  178. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type_private.h +81 -0
  179. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.cpp +247 -0
  180. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.h +71 -0
  181. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.cpp +351 -0
  182. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.h +42 -0
  183. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.cpp +124 -0
  184. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.h +38 -0
  185. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.cpp +203 -0
  186. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.h +55 -0
  187. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.cpp +79 -0
  188. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.h +66 -0
  189. package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +301 -0
  190. package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +291 -0
  191. package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +630 -0
  192. package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +889 -0
  193. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.cpp +628 -0
  194. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.h +95 -0
  195. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_code_table.h +78 -0
  196. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.c +950 -0
  197. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.h +72 -0
  198. package/harmony/pushy/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +100 -0
  199. package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/7zAsm.S +181 -0
  200. package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/LzmaDecOpt.S +1487 -0
  201. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +341 -0
  202. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +258 -0
  203. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +742 -0
  204. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzFindOpt.asm +540 -0
  205. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +1339 -0
  206. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sha256Opt.asm +275 -0
  207. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sort.asm +860 -0
  208. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +523 -0
  209. package/harmony/pushy/src/main/cpp/lzma/C/7z.h +204 -0
  210. package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +89 -0
  211. package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +19 -0
  212. package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +1786 -0
  213. package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.c +36 -0
  214. package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +35 -0
  215. package/harmony/pushy/src/main/cpp/lzma/C/7zBuf2.c +52 -0
  216. package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +464 -0
  217. package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +28 -0
  218. package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +199 -0
  219. package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +673 -0
  220. package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +443 -0
  221. package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +92 -0
  222. package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +199 -0
  223. package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +597 -0
  224. package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +27 -0
  225. package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.rc +55 -0
  226. package/harmony/pushy/src/main/cpp/lzma/C/7zWindows.h +101 -0
  227. package/harmony/pushy/src/main/cpp/lzma/C/7zip_gcc_c.mak +360 -0
  228. package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +429 -0
  229. package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +60 -0
  230. package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +1002 -0
  231. package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +605 -0
  232. package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +76 -0
  233. package/harmony/pushy/src/main/cpp/lzma/C/Asm_c.mak +12 -0
  234. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +290 -0
  235. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +332 -0
  236. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +506 -0
  237. package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +709 -0
  238. package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +105 -0
  239. package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +187 -0
  240. package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +14 -0
  241. package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +246 -0
  242. package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +970 -0
  243. package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +686 -0
  244. package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +169 -0
  245. package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +19 -0
  246. package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +99 -0
  247. package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +20 -0
  248. package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +1746 -0
  249. package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +160 -0
  250. package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +1422 -0
  251. package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +114 -0
  252. package/harmony/pushy/src/main/cpp/lzma/C/LzFindOpt.c +578 -0
  253. package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +34 -0
  254. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +493 -0
  255. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +121 -0
  256. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +1095 -0
  257. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +81 -0
  258. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +807 -0
  259. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +58 -0
  260. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +111 -0
  261. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +53 -0
  262. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +103 -0
  263. package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +1363 -0
  264. package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +237 -0
  265. package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +3150 -0
  266. package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +85 -0
  267. package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +42 -0
  268. package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +138 -0
  269. package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +604 -0
  270. package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +144 -0
  271. package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +1124 -0
  272. package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +202 -0
  273. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +169 -0
  274. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +1131 -0
  275. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +181 -0
  276. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +312 -0
  277. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +337 -0
  278. package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +127 -0
  279. package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +50 -0
  280. package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +492 -0
  281. package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +86 -0
  282. package/harmony/pushy/src/main/cpp/lzma/C/Sha256Opt.c +451 -0
  283. package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +268 -0
  284. package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +15 -0
  285. package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.c +835 -0
  286. package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.h +17 -0
  287. package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +812 -0
  288. package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +260 -0
  289. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +249 -0
  290. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsw +29 -0
  291. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +889 -0
  292. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.c +4 -0
  293. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +13 -0
  294. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +44 -0
  295. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +32 -0
  296. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +313 -0
  297. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +192 -0
  298. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsw +29 -0
  299. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/Precomp.h +13 -0
  300. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +30 -0
  301. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +21 -0
  302. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.def +4 -0
  303. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +206 -0
  304. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsw +29 -0
  305. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +15 -0
  306. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.c +4 -0
  307. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.h +13 -0
  308. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +59 -0
  309. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/resource.rc +3 -0
  310. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.c +4 -0
  311. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +13 -0
  312. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +657 -0
  313. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsp +231 -0
  314. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsw +29 -0
  315. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +44 -0
  316. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +40 -0
  317. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/resource.rc +5 -0
  318. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/setup.ico +0 -0
  319. package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +92 -0
  320. package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +542 -0
  321. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +140 -0
  322. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +26 -0
  323. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +261 -0
  324. package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +2876 -0
  325. package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +1384 -0
  326. package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +64 -0
  327. package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +385 -0
  328. package/harmony/pushy/src/main/cpp/lzma/C/var_clang.mak +11 -0
  329. package/harmony/pushy/src/main/cpp/lzma/C/var_clang_arm64.mak +12 -0
  330. package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x64.mak +11 -0
  331. package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x86.mak +11 -0
  332. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc.mak +12 -0
  333. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_arm64.mak +12 -0
  334. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x64.mak +10 -0
  335. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x86.mak +10 -0
  336. package/harmony/pushy/src/main/cpp/lzma/C/var_mac_arm64.mak +11 -0
  337. package/harmony/pushy/src/main/cpp/lzma/C/var_mac_x64.mak +11 -0
  338. package/harmony/pushy/src/main/cpp/lzma/C/warn_clang.mak +1 -0
  339. package/harmony/pushy/src/main/cpp/lzma/C/warn_clang_mac.mak +1 -0
  340. package/harmony/pushy/src/main/cpp/lzma/C/warn_gcc.mak +51 -0
  341. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +240 -0
  342. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip_gcc.mak +1370 -0
  343. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +10 -0
  344. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp +3 -0
  345. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +92 -0
  346. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +599 -0
  347. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +73 -0
  348. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +721 -0
  349. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +95 -0
  350. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +444 -0
  351. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +264 -0
  352. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +101 -0
  353. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +795 -0
  354. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +178 -0
  355. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +1162 -0
  356. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +19 -0
  357. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +156 -0
  358. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +1764 -0
  359. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +454 -0
  360. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +207 -0
  361. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +1026 -0
  362. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +346 -0
  363. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +182 -0
  364. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +26 -0
  365. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +27 -0
  366. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +31 -0
  367. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +49 -0
  368. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +3088 -0
  369. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +167 -0
  370. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.cpp +3 -0
  371. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +11 -0
  372. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +14 -0
  373. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +21 -0
  374. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +158 -0
  375. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +1144 -0
  376. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +447 -0
  377. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +17 -0
  378. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +23 -0
  379. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +315 -0
  380. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +169 -0
  381. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +57 -0
  382. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +64 -0
  383. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +140 -0
  384. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +33 -0
  385. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +193 -0
  386. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +86 -0
  387. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +18 -0
  388. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +35 -0
  389. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp +3 -0
  390. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +6 -0
  391. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +11 -0
  392. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +175 -0
  393. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +754 -0
  394. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Icons/7z.ico +0 -0
  395. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +608 -0
  396. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +353 -0
  397. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +11 -0
  398. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +1452 -0
  399. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +11 -0
  400. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +12 -0
  401. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +2090 -0
  402. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsw +29 -0
  403. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +3 -0
  404. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +11 -0
  405. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +168 -0
  406. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile.gcc +279 -0
  407. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/resource.rc +7 -0
  408. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +3 -0
  409. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +11 -0
  410. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +98 -0
  411. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/resource.rc +5 -0
  412. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +3 -0
  413. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +11 -0
  414. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +121 -0
  415. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/resource.rc +5 -0
  416. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +817 -0
  417. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +540 -0
  418. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +29 -0
  419. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +3 -0
  420. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +11 -0
  421. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +68 -0
  422. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +131 -0
  423. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/resource.rc +3 -0
  424. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaSpec/LzmaSpec.cpp +715 -0
  425. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
  426. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +1017 -0
  427. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +29 -0
  428. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +521 -0
  429. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +3 -0
  430. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +11 -0
  431. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +137 -0
  432. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile.gcc +215 -0
  433. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +9 -0
  434. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +246 -0
  435. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +83 -0
  436. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +135 -0
  437. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +11 -0
  438. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +872 -0
  439. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +29 -0
  440. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +371 -0
  441. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +3 -0
  442. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +6 -0
  443. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +121 -0
  444. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.h +6 -0
  445. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.rc +16 -0
  446. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
  447. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
  448. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +1074 -0
  449. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +29 -0
  450. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +268 -0
  451. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +3 -0
  452. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +6 -0
  453. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +159 -0
  454. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.h +1 -0
  455. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +55 -0
  456. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +358 -0
  457. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +182 -0
  458. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +548 -0
  459. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +200 -0
  460. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +46 -0
  461. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +10 -0
  462. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +923 -0
  463. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +205 -0
  464. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +577 -0
  465. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +201 -0
  466. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +182 -0
  467. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +121 -0
  468. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +237 -0
  469. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +45 -0
  470. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +393 -0
  471. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +221 -0
  472. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.cpp +3 -0
  473. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +6 -0
  474. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.cpp +3 -0
  475. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +10 -0
  476. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +765 -0
  477. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +349 -0
  478. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.cpp +855 -0
  479. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.h +160 -0
  480. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +37 -0
  481. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +22 -0
  482. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +111 -0
  483. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +133 -0
  484. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +51 -0
  485. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +33 -0
  486. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +117 -0
  487. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +80 -0
  488. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +106 -0
  489. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +11 -0
  490. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +151 -0
  491. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +78 -0
  492. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +290 -0
  493. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +146 -0
  494. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +101 -0
  495. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +31 -0
  496. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +57 -0
  497. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +41 -0
  498. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +47 -0
  499. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +24 -0
  500. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +867 -0
  501. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +127 -0
  502. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +24 -0
  503. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +24 -0
  504. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +37 -0
  505. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +17 -0
  506. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +106 -0
  507. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +59 -0
  508. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +58 -0
  509. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +91 -0
  510. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +378 -0
  511. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +153 -0
  512. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +34 -0
  513. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyRegister.cpp +15 -0
  514. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +126 -0
  515. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +267 -0
  516. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +87 -0
  517. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +134 -0
  518. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +30 -0
  519. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +22 -0
  520. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +350 -0
  521. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +113 -0
  522. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +374 -0
  523. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +45 -0
  524. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +22 -0
  525. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +219 -0
  526. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +87 -0
  527. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +193 -0
  528. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +49 -0
  529. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +22 -0
  530. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +11 -0
  531. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +151 -0
  532. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +86 -0
  533. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +243 -0
  534. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +35 -0
  535. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +8 -0
  536. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +8 -0
  537. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +315 -0
  538. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +130 -0
  539. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +17 -0
  540. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +277 -0
  541. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +122 -0
  542. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +29 -0
  543. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +241 -0
  544. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +41 -0
  545. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +11 -0
  546. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +119 -0
  547. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +243 -0
  548. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +480 -0
  549. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +76 -0
  550. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +54 -0
  551. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +20 -0
  552. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +210 -0
  553. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzFindOpt.mak +7 -0
  554. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +7 -0
  555. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec_gcc.mak +14 -0
  556. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersion.h +2 -0
  557. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +2 -0
  558. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +178 -0
  559. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sha256.mak +13 -0
  560. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sort.mak +6 -0
  561. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/SubBuild.mak +3 -0
  562. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +1145 -0
  563. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +331 -0
  564. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsw +29 -0
  565. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.cpp +3 -0
  566. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +11 -0
  567. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +29 -0
  568. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile.gcc +72 -0
  569. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/resource.rc +3 -0
  570. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +1799 -0
  571. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +170 -0
  572. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +3077 -0
  573. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +641 -0
  574. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +176 -0
  575. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +16 -0
  576. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +398 -0
  577. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +182 -0
  578. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +5026 -0
  579. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +121 -0
  580. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +37 -0
  581. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +11 -0
  582. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +407 -0
  583. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +1637 -0
  584. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +38 -0
  585. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +27 -0
  586. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +575 -0
  587. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +107 -0
  588. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +44 -0
  589. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +296 -0
  590. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +31 -0
  591. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +2273 -0
  592. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +322 -0
  593. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +112 -0
  594. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +1337 -0
  595. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +482 -0
  596. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +3702 -0
  597. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +469 -0
  598. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +745 -0
  599. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +18 -0
  600. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +14 -0
  601. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +88 -0
  602. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +10 -0
  603. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.cpp +25 -0
  604. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +10 -0
  605. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +11 -0
  606. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +20 -0
  607. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +19 -0
  608. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +1931 -0
  609. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +221 -0
  610. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.cpp +64 -0
  611. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +66 -0
  612. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +1069 -0
  613. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +197 -0
  614. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +302 -0
  615. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +27 -0
  616. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +74 -0
  617. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +60 -0
  618. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +84 -0
  619. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +30 -0
  620. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +212 -0
  621. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +41 -0
  622. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +14 -0
  623. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +46 -0
  624. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +16 -0
  625. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +98 -0
  626. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +39 -0
  627. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +946 -0
  628. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +211 -0
  629. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +426 -0
  630. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +58 -0
  631. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +1417 -0
  632. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +42 -0
  633. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +1635 -0
  634. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +235 -0
  635. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +115 -0
  636. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +73 -0
  637. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +186 -0
  638. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +66 -0
  639. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.cpp +3 -0
  640. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +11 -0
  641. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +998 -0
  642. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +148 -0
  643. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +118 -0
  644. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +27 -0
  645. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +68 -0
  646. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile.gcc +187 -0
  647. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/resource.rc +7 -0
  648. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +43 -0
  649. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +16 -0
  650. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +1132 -0
  651. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +32 -0
  652. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialogRes.h +9 -0
  653. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +64 -0
  654. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +28 -0
  655. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialogRes.h +4 -0
  656. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +16 -0
  657. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +1272 -0
  658. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +347 -0
  659. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp +28 -0
  660. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +14 -0
  661. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +48 -0
  662. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.cpp +218 -0
  663. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.h +48 -0
  664. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialogRes.h +13 -0
  665. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +119 -0
  666. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +288 -0
  667. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +89 -0
  668. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +93 -0
  669. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +19 -0
  670. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +58 -0
  671. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +28 -0
  672. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +18 -0
  673. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialogRes.h +5 -0
  674. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +201 -0
  675. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +171 -0
  676. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.rc +12 -0
  677. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +1483 -0
  678. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +355 -0
  679. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.rc +40 -0
  680. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +49 -0
  681. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +85 -0
  682. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialogRes.h +3 -0
  683. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.cpp +23 -0
  684. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +10 -0
  685. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +104 -0
  686. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/StdAfx.h +67 -0
  687. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +351 -0
  688. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +65 -0
  689. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +199 -0
  690. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +25 -0
  691. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/7zG.exe.manifest +23 -0
  692. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +59 -0
  693. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +421 -0
  694. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +113 -0
  695. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.rc +98 -0
  696. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialogRes.h +24 -0
  697. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +297 -0
  698. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +39 -0
  699. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractRes.h +51 -0
  700. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +27 -0
  701. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/resource2.h +2 -0
  702. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang.mak +3 -0
  703. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_arm64.mak +3 -0
  704. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x64.mak +3 -0
  705. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x86.mak +3 -0
  706. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc.mak +3 -0
  707. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_arm64.mak +3 -0
  708. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x64.mak +3 -0
  709. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x86.mak +3 -0
  710. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_arm64.mak +3 -0
  711. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_x64.mak +3 -0
  712. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang.mak +11 -0
  713. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_arm64.mak +19 -0
  714. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x64.mak +11 -0
  715. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x86.mak +11 -0
  716. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc.mak +12 -0
  717. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_arm64.mak +12 -0
  718. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x64.mak +11 -0
  719. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x86.mak +10 -0
  720. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_arm64.mak +13 -0
  721. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_x64.mak +11 -0
  722. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang.mak +3 -0
  723. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang_mac.mak +9 -0
  724. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_gcc.mak +55 -0
  725. package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +252 -0
  726. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +46 -0
  727. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +7 -0
  728. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +3 -0
  729. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +6 -0
  730. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +21 -0
  731. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +231 -0
  732. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +63 -0
  733. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +28 -0
  734. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common0.h +330 -0
  735. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +77 -0
  736. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +16 -0
  737. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.cpp +93 -0
  738. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.h +41 -0
  739. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +76 -0
  740. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +215 -0
  741. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +54 -0
  742. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +30 -0
  743. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +150 -0
  744. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +18 -0
  745. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/LzFindPrepare.cpp +7 -0
  746. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +297 -0
  747. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +185 -0
  748. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +693 -0
  749. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +14 -0
  750. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +63 -0
  751. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +57 -0
  752. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +75 -0
  753. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +1842 -0
  754. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +1079 -0
  755. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +38 -0
  756. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +8 -0
  757. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.cpp +3 -0
  758. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +724 -0
  759. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +292 -0
  760. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +325 -0
  761. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +340 -0
  762. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +121 -0
  763. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Prepare.cpp +7 -0
  764. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +67 -0
  765. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +8 -0
  766. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +98 -0
  767. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +46 -0
  768. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +248 -0
  769. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +87 -0
  770. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +762 -0
  771. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +110 -0
  772. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +154 -0
  773. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +38 -0
  774. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +123 -0
  775. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +19 -0
  776. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +863 -0
  777. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +384 -0
  778. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +789 -0
  779. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +231 -0
  780. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Init.cpp +7 -0
  781. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +39 -0
  782. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +86 -0
  783. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.cpp +130 -0
  784. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.h +28 -0
  785. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +269 -0
  786. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +43 -0
  787. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +66 -0
  788. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +77 -0
  789. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +52 -0
  790. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +446 -0
  791. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +213 -0
  792. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +19 -0
  793. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.cpp +10 -0
  794. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +87 -0
  795. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +162 -0
  796. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +156 -0
  797. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +35 -0
  798. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +165 -0
  799. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +50 -0
  800. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +34 -0
  801. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +28 -0
  802. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +42 -0
  803. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +11 -0
  804. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +43 -0
  805. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +27 -0
  806. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +202 -0
  807. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +53 -0
  808. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +178 -0
  809. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +103 -0
  810. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +17 -0
  811. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +133 -0
  812. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +16 -0
  813. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +1362 -0
  814. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +172 -0
  815. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +1449 -0
  816. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +347 -0
  817. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +954 -0
  818. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +467 -0
  819. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +697 -0
  820. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.cpp +12 -0
  821. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +66 -0
  822. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +911 -0
  823. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +142 -0
  824. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +187 -0
  825. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +31 -0
  826. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +39 -0
  827. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.cpp +36 -0
  828. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.h +55 -0
  829. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +127 -0
  830. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +40 -0
  831. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +58 -0
  832. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +393 -0
  833. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +173 -0
  834. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +274 -0
  835. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +47 -0
  836. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +474 -0
  837. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +96 -0
  838. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +103 -0
  839. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +17 -0
  840. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +186 -0
  841. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +150 -0
  842. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +839 -0
  843. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +129 -0
  844. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +11 -0
  845. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +87 -0
  846. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +386 -0
  847. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +421 -0
  848. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +189 -0
  849. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.cpp +1251 -0
  850. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.h +19 -0
  851. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +46 -0
  852. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +467 -0
  853. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +146 -0
  854. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +179 -0
  855. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +363 -0
  856. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CRC.cs +55 -0
  857. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CommandLineParser.cs +274 -0
  858. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/InBuffer.cs +72 -0
  859. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/OutBuffer.cs +47 -0
  860. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/IMatchFinder.cs +24 -0
  861. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzBinTree.cs +367 -0
  862. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzInWindow.cs +132 -0
  863. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzOutWindow.cs +110 -0
  864. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaBase.cs +76 -0
  865. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaDecoder.cs +398 -0
  866. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaEncoder.cs +1480 -0
  867. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.cs +364 -0
  868. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.sln +20 -0
  869. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaBench.cs +340 -0
  870. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/AssemblyInfo.cs +29 -0
  871. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Resources.cs +70 -0
  872. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Settings.cs +42 -0
  873. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoder.cs +234 -0
  874. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBit.cs +117 -0
  875. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBitTree.cs +157 -0
  876. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/ICoder.cs +157 -0
  877. package/harmony/pushy/src/main/cpp/lzma/DOC/7zC.txt +187 -0
  878. package/harmony/pushy/src/main/cpp/lzma/DOC/7zFormat.txt +469 -0
  879. package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +177 -0
  880. package/harmony/pushy/src/main/cpp/lzma/DOC/installer.txt +166 -0
  881. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +651 -0
  882. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +437 -0
  883. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-specification.txt +1176 -0
  884. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +345 -0
  885. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/CRC.java +52 -0
  886. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/BinTree.java +382 -0
  887. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/InWindow.java +131 -0
  888. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/OutWindow.java +85 -0
  889. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Base.java +88 -0
  890. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Decoder.java +329 -0
  891. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Encoder.java +1416 -0
  892. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.java +55 -0
  893. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.java +99 -0
  894. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.java +88 -0
  895. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.java +151 -0
  896. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/ICodeProgress.java +6 -0
  897. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaAlone.java +253 -0
  898. package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaBench.java +392 -0
  899. package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
  900. package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
  901. package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
  902. package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
  903. package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
  904. package/harmony/pushy/src/main/cpp/lzma/bin/installer/config.txt +5 -0
  905. package/harmony/pushy/src/main/cpp/lzma/bin/installer/cr.bat +5 -0
  906. package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
  907. package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
  908. package/package.json +1 -1
@@ -0,0 +1,1799 @@
1
+ // ArchiveCommandLine.cpp
2
+
3
+ #include "StdAfx.h"
4
+ #undef printf
5
+ #undef sprintf
6
+
7
+ #ifdef _WIN32
8
+ #ifndef UNDER_CE
9
+ #include <io.h>
10
+ #endif
11
+ #else
12
+ // for isatty()
13
+ #include <unistd.h>
14
+ #endif
15
+
16
+ #include <stdio.h>
17
+
18
+ #ifdef Z7_LARGE_PAGES
19
+ #include "../../../../C/Alloc.h"
20
+ #endif
21
+
22
+ #include "../../../Common/IntToString.h"
23
+ #include "../../../Common/ListFileUtils.h"
24
+ #include "../../../Common/StringConvert.h"
25
+ #include "../../../Common/StringToInt.h"
26
+
27
+ #include "../../../Windows/ErrorMsg.h"
28
+ #include "../../../Windows/FileDir.h"
29
+ #include "../../../Windows/FileName.h"
30
+ #include "../../../Windows/PropVariantConv.h"
31
+ #include "../../../Windows/System.h"
32
+ #ifdef _WIN32
33
+ #include "../../../Windows/FileMapping.h"
34
+ #include "../../../Windows/MemoryLock.h"
35
+ #include "../../../Windows/Synchronization.h"
36
+ #endif
37
+
38
+ #include "ArchiveCommandLine.h"
39
+ #include "EnumDirItems.h"
40
+ #include "Update.h"
41
+ #include "UpdateAction.h"
42
+
43
+ extern bool g_CaseSensitive;
44
+ extern bool g_PathTrailReplaceMode;
45
+
46
+ #ifdef Z7_LARGE_PAGES
47
+ extern
48
+ bool g_LargePagesMode;
49
+ bool g_LargePagesMode = false;
50
+ #endif
51
+
52
+ /*
53
+ #ifdef ENV_HAVE_LSTAT
54
+ EXTERN_C_BEGIN
55
+ extern int global_use_lstat;
56
+ EXTERN_C_END
57
+ #endif
58
+ */
59
+
60
+ #ifdef UNDER_CE
61
+
62
+ #define MY_IS_TERMINAL(x) false;
63
+
64
+ #else
65
+
66
+ static bool MY_IS_TERMINAL(FILE *x)
67
+ {
68
+ #ifdef _WIN32
69
+ /*
70
+ crt/stdio.h:
71
+ typedef struct _iobuf FILE;
72
+ #define stdin (&_iob[0])
73
+ #define stdout (&_iob[1])
74
+ #define stderr (&_iob[2])
75
+ */
76
+ // fprintf(stderr, "\nMY_IS_TERMINAL = %p", x);
77
+ const int fd = _fileno(x);
78
+ /* (fd) is 0, 1 or 2 in console program.
79
+ docs: If stdout or stderr is not associated with
80
+ an output stream (for example, in a Windows application
81
+ without a console window), the file descriptor returned is -2.
82
+ In previous versions, the file descriptor returned was -1.
83
+ */
84
+ if (fd < 0) // is not associated with an output stream application (without a console window)
85
+ return false;
86
+ // fprintf(stderr, "\n\nstderr _fileno(%p) = %d", x, fd);
87
+ if (!_isatty(fd))
88
+ return false;
89
+ // fprintf(stderr, "\nisatty_val = true");
90
+ const HANDLE h = (HANDLE)_get_osfhandle(fd);
91
+ /* _get_osfhandle() returns intptr_t in new SDK, or long in MSVC6.
92
+ Also it can return (INVALID_HANDLE_VALUE).
93
+ docs: _get_osfhandle also returns the special value -2 when
94
+ the file descriptor is not associated with a stream
95
+ in old msvcrt.dll: it returns (-1) for incorrect value
96
+ */
97
+ // fprintf(stderr, "\n_get_osfhandle() = %p", (void *)h);
98
+ if (h == NULL || h == INVALID_HANDLE_VALUE)
99
+ return false;
100
+ DWORD st;
101
+ // fprintf(stderr, "\nGetConsoleMode() = %u", (unsigned)GetConsoleMode(h, &st));
102
+ return GetConsoleMode(h, &st) != 0;
103
+ #else
104
+ return isatty(fileno(x)) != 0;
105
+ #endif
106
+ }
107
+
108
+ #endif
109
+
110
+ using namespace NCommandLineParser;
111
+ using namespace NWindows;
112
+ using namespace NFile;
113
+
114
+ static bool StringToUInt32(const wchar_t *s, UInt32 &v)
115
+ {
116
+ if (*s == 0)
117
+ return false;
118
+ const wchar_t *end;
119
+ v = ConvertStringToUInt32(s, &end);
120
+ return *end == 0;
121
+ }
122
+
123
+
124
+ namespace NKey {
125
+ enum Enum
126
+ {
127
+ kHelp1 = 0,
128
+ kHelp2,
129
+ kHelp3,
130
+
131
+ kDisableHeaders,
132
+ kDisablePercents,
133
+ kShowTime,
134
+ kLogLevel,
135
+
136
+ kOutStream,
137
+ kErrStream,
138
+ kPercentStream,
139
+
140
+ kYes,
141
+
142
+ kShowDialog,
143
+ kOverwrite,
144
+
145
+ kArchiveType,
146
+ kExcludedArcType,
147
+
148
+ kProperty,
149
+ kOutputDir,
150
+ kWorkingDir,
151
+
152
+ kInclude,
153
+ kExclude,
154
+ kArInclude,
155
+ kArExclude,
156
+ kNoArName,
157
+
158
+ kUpdate,
159
+ kVolume,
160
+ kRecursed,
161
+
162
+ kAffinity,
163
+ kSfx,
164
+ kEmail,
165
+ kHash,
166
+ // kHashGenFile,
167
+ kHashDir,
168
+ kExtractMemLimit,
169
+
170
+ kStdIn,
171
+ kStdOut,
172
+
173
+ kLargePages,
174
+ kListfileCharSet,
175
+ kConsoleCharSet,
176
+ kTechMode,
177
+ kListFields,
178
+ kListPathSlash,
179
+ kListTimestampUTC,
180
+
181
+ kPreserveATime,
182
+ kShareForWrite,
183
+ kStopAfterOpenError,
184
+ kCaseSensitive,
185
+ kArcNameMode,
186
+
187
+ kUseSlashMark,
188
+ kDisableWildcardParsing,
189
+ kElimDup,
190
+ kFullPathMode,
191
+
192
+ kHardLinks,
193
+ kSymLinks_AllowDangerous,
194
+ kSymLinks,
195
+ kNtSecurity,
196
+
197
+ kStoreOwnerId,
198
+ kStoreOwnerName,
199
+
200
+ kZoneFile,
201
+ kAltStreams,
202
+ kReplaceColonForAltStream,
203
+ kWriteToAltStreamIfColon,
204
+
205
+ kNameTrailReplace,
206
+
207
+ kDeleteAfterCompressing,
208
+ kSetArcMTime
209
+
210
+ #ifndef Z7_NO_CRYPTO
211
+ , kPassword
212
+ #endif
213
+ };
214
+
215
+ }
216
+
217
+
218
+ static const wchar_t kRecursedIDChar = 'r';
219
+ static const char * const kRecursedPostCharSet = "0-";
220
+
221
+ static const char * const k_ArcNameMode_PostCharSet = "sea";
222
+
223
+ static const char * const k_Stream_PostCharSet = "012";
224
+
225
+ static inline EArcNameMode ParseArcNameMode(int postCharIndex)
226
+ {
227
+ switch (postCharIndex)
228
+ {
229
+ case 1: return k_ArcNameMode_Exact;
230
+ case 2: return k_ArcNameMode_Add;
231
+ default: return k_ArcNameMode_Smart;
232
+ }
233
+ }
234
+
235
+ namespace NRecursedPostCharIndex {
236
+ enum EEnum
237
+ {
238
+ kWildcardRecursionOnly = 0,
239
+ kNoRecursion = 1
240
+ };
241
+ }
242
+
243
+ // static const char
244
+ #define kImmediateNameID '!'
245
+ #ifdef _WIN32
246
+ #define kMapNameID '#'
247
+ #endif
248
+ #define kFileListID '@'
249
+
250
+ static const Byte kSomeCludePostStringMinSize = 2; // at least <@|!><N>ame must be
251
+ static const Byte kSomeCludeAfterRecursedPostStringMinSize = 2; // at least <@|!><N>ame must be
252
+
253
+ static const char * const kOverwritePostCharSet = "asut";
254
+
255
+ static const NExtract::NOverwriteMode::EEnum k_OverwriteModes[] =
256
+ {
257
+ NExtract::NOverwriteMode::kOverwrite,
258
+ NExtract::NOverwriteMode::kSkip,
259
+ NExtract::NOverwriteMode::kRename,
260
+ NExtract::NOverwriteMode::kRenameExisting
261
+ };
262
+
263
+
264
+
265
+ #define SWFRM_3(t, mu, mi) t, mu, mi, NULL
266
+
267
+ #define SWFRM_1(t) SWFRM_3(t, false, 0)
268
+ #define SWFRM_SIMPLE SWFRM_1(NSwitchType::kSimple)
269
+ #define SWFRM_MINUS SWFRM_1(NSwitchType::kMinus)
270
+ #define SWFRM_STRING SWFRM_1(NSwitchType::kString)
271
+
272
+ #define SWFRM_STRING_SINGL(mi) SWFRM_3(NSwitchType::kString, false, mi)
273
+ #define SWFRM_STRING_MULT(mi) SWFRM_3(NSwitchType::kString, true, mi)
274
+
275
+
276
+ static const CSwitchForm kSwitchForms[] =
277
+ {
278
+ { "?", SWFRM_SIMPLE },
279
+ { "h", SWFRM_SIMPLE },
280
+ { "-help", SWFRM_SIMPLE },
281
+
282
+ { "ba", SWFRM_SIMPLE },
283
+ { "bd", SWFRM_SIMPLE },
284
+ { "bt", SWFRM_SIMPLE },
285
+ { "bb", SWFRM_STRING_SINGL(0) },
286
+
287
+ { "bso", NSwitchType::kChar, false, 1, k_Stream_PostCharSet },
288
+ { "bse", NSwitchType::kChar, false, 1, k_Stream_PostCharSet },
289
+ { "bsp", NSwitchType::kChar, false, 1, k_Stream_PostCharSet },
290
+
291
+ { "y", SWFRM_SIMPLE },
292
+
293
+ { "ad", SWFRM_SIMPLE },
294
+ { "ao", NSwitchType::kChar, false, 1, kOverwritePostCharSet},
295
+
296
+ { "t", SWFRM_STRING_SINGL(1) },
297
+ { "stx", SWFRM_STRING_MULT(1) },
298
+
299
+ { "m", SWFRM_STRING_MULT(1) },
300
+ { "o", SWFRM_STRING_SINGL(1) },
301
+ { "w", SWFRM_STRING },
302
+
303
+ { "i", SWFRM_STRING_MULT(kSomeCludePostStringMinSize) },
304
+ { "x", SWFRM_STRING_MULT(kSomeCludePostStringMinSize) },
305
+ { "ai", SWFRM_STRING_MULT(kSomeCludePostStringMinSize) },
306
+ { "ax", SWFRM_STRING_MULT(kSomeCludePostStringMinSize) },
307
+ { "an", SWFRM_SIMPLE },
308
+
309
+ { "u", SWFRM_STRING_MULT(1) },
310
+ { "v", SWFRM_STRING_MULT(1) },
311
+ { "r", NSwitchType::kChar, false, 0, kRecursedPostCharSet },
312
+
313
+ { "stm", SWFRM_STRING },
314
+ { "sfx", SWFRM_STRING },
315
+ { "seml", SWFRM_STRING_SINGL(0) },
316
+ { "scrc", SWFRM_STRING_MULT(0) },
317
+ // { "scrf", SWFRM_STRING_SINGL(1) },
318
+ { "shd", SWFRM_STRING_SINGL(1) },
319
+ { "smemx", SWFRM_STRING },
320
+
321
+ { "si", SWFRM_STRING },
322
+ { "so", SWFRM_SIMPLE },
323
+
324
+ { "slp", SWFRM_STRING },
325
+ { "scs", SWFRM_STRING },
326
+ { "scc", SWFRM_STRING },
327
+ { "slt", SWFRM_SIMPLE },
328
+ { "slf", SWFRM_STRING_SINGL(1) },
329
+ { "slsl", SWFRM_MINUS },
330
+ { "slmu", SWFRM_MINUS },
331
+
332
+ { "ssp", SWFRM_SIMPLE },
333
+ { "ssw", SWFRM_SIMPLE },
334
+ { "sse", SWFRM_SIMPLE },
335
+ { "ssc", SWFRM_MINUS },
336
+ { "sa", NSwitchType::kChar, false, 1, k_ArcNameMode_PostCharSet },
337
+
338
+ { "spm", SWFRM_STRING_SINGL(0) },
339
+ { "spd", SWFRM_SIMPLE },
340
+ { "spe", SWFRM_MINUS },
341
+ { "spf", SWFRM_STRING_SINGL(0) },
342
+
343
+ { "snh", SWFRM_MINUS },
344
+ { "snld", SWFRM_STRING },
345
+ { "snl", SWFRM_MINUS },
346
+ { "sni", SWFRM_SIMPLE },
347
+
348
+ { "snoi", SWFRM_MINUS },
349
+ { "snon", SWFRM_MINUS },
350
+
351
+ { "snz", SWFRM_STRING_SINGL(0) },
352
+ { "sns", SWFRM_MINUS },
353
+ { "snr", SWFRM_SIMPLE },
354
+ { "snc", SWFRM_SIMPLE },
355
+
356
+ { "snt", SWFRM_MINUS },
357
+
358
+ { "sdel", SWFRM_SIMPLE },
359
+ { "stl", SWFRM_SIMPLE }
360
+
361
+ #ifndef Z7_NO_CRYPTO
362
+ , { "p", SWFRM_STRING }
363
+ #endif
364
+ };
365
+
366
+ static const char * const kUniversalWildcard = "*";
367
+ static const unsigned kMinNonSwitchWords = 1;
368
+ static const unsigned kCommandIndex = 0;
369
+
370
+ // static const char * const kUserErrorMessage = "Incorrect command line";
371
+ // static const char * const kCannotFindListFile = "Cannot find listfile";
372
+ static const char * const kIncorrectListFile = "Incorrect item in listfile.\nCheck charset encoding and -scs switch.";
373
+ static const char * const kTerminalOutError = "I won't write compressed data to a terminal";
374
+ static const char * const kSameTerminalError = "I won't write data and program's messages to same stream";
375
+ static const char * const kEmptyFilePath = "Empty file path";
376
+
377
+ bool CArcCommand::IsFromExtractGroup() const
378
+ {
379
+ switch ((int)CommandType)
380
+ {
381
+ case NCommandType::kTest:
382
+ case NCommandType::kExtract:
383
+ case NCommandType::kExtractFull:
384
+ return true;
385
+ default:
386
+ return false;
387
+ }
388
+ }
389
+
390
+ NExtract::NPathMode::EEnum CArcCommand::GetPathMode() const
391
+ {
392
+ switch ((int)CommandType)
393
+ {
394
+ case NCommandType::kTest:
395
+ case NCommandType::kExtractFull:
396
+ return NExtract::NPathMode::kFullPaths;
397
+ default:
398
+ return NExtract::NPathMode::kNoPaths;
399
+ }
400
+ }
401
+
402
+ bool CArcCommand::IsFromUpdateGroup() const
403
+ {
404
+ switch ((int)CommandType)
405
+ {
406
+ case NCommandType::kAdd:
407
+ case NCommandType::kUpdate:
408
+ case NCommandType::kDelete:
409
+ case NCommandType::kRename:
410
+ return true;
411
+ default:
412
+ return false;
413
+ }
414
+ }
415
+
416
+ static NRecursedType::EEnum GetRecursedTypeFromIndex(int index)
417
+ {
418
+ switch (index)
419
+ {
420
+ case NRecursedPostCharIndex::kWildcardRecursionOnly:
421
+ return NRecursedType::kWildcardOnlyRecursed;
422
+ case NRecursedPostCharIndex::kNoRecursion:
423
+ return NRecursedType::kNonRecursed;
424
+ default:
425
+ return NRecursedType::kRecursed;
426
+ }
427
+ }
428
+
429
+ static const char *g_Commands = "audtexlbih";
430
+
431
+ static bool ParseArchiveCommand(const UString &commandString, CArcCommand &command)
432
+ {
433
+ UString s (commandString);
434
+ s.MakeLower_Ascii();
435
+ if (s.Len() == 1)
436
+ {
437
+ if (s[0] > 0x7F)
438
+ return false;
439
+ int index = FindCharPosInString(g_Commands, (char)s[0]);
440
+ if (index < 0)
441
+ return false;
442
+ command.CommandType = (NCommandType::EEnum)index;
443
+ return true;
444
+ }
445
+ if (s.Len() == 2 && s[0] == 'r' && s[1] == 'n')
446
+ {
447
+ command.CommandType = (NCommandType::kRename);
448
+ return true;
449
+ }
450
+ return false;
451
+ }
452
+
453
+ // ------------------------------------------------------------------
454
+ // filenames functions
455
+
456
+ struct CNameOption
457
+ {
458
+ bool Include;
459
+ bool WildcardMatching;
460
+ Byte MarkMode;
461
+ NRecursedType::EEnum RecursedType;
462
+
463
+ CNameOption():
464
+ Include(true),
465
+ WildcardMatching(true),
466
+ MarkMode(NWildcard::kMark_FileOrDir),
467
+ RecursedType(NRecursedType::kNonRecursed)
468
+ {}
469
+ };
470
+
471
+
472
+ static void AddNameToCensor(NWildcard::CCensor &censor,
473
+ const CNameOption &nop, const UString &name)
474
+ {
475
+ bool recursed = false;
476
+
477
+ switch ((int)nop.RecursedType)
478
+ {
479
+ case NRecursedType::kWildcardOnlyRecursed:
480
+ recursed = DoesNameContainWildcard(name);
481
+ break;
482
+ case NRecursedType::kRecursed:
483
+ recursed = true;
484
+ break;
485
+ default:
486
+ break;
487
+ }
488
+
489
+ NWildcard::CCensorPathProps props;
490
+ props.Recursive = recursed;
491
+ props.WildcardMatching = nop.WildcardMatching;
492
+ props.MarkMode = nop.MarkMode;
493
+ censor.AddPreItem(nop.Include, name, props);
494
+ }
495
+
496
+ #ifndef Z7_EXTRACT_ONLY
497
+ static void AddRenamePair(CObjectVector<CRenamePair> *renamePairs,
498
+ const UString &oldName, const UString &newName, NRecursedType::EEnum type,
499
+ bool wildcardMatching)
500
+ {
501
+ CRenamePair &pair = renamePairs->AddNew();
502
+ pair.OldName = oldName;
503
+ pair.NewName = newName;
504
+ pair.RecursedType = type;
505
+ pair.WildcardParsing = wildcardMatching;
506
+
507
+ if (!pair.Prepare())
508
+ {
509
+ UString val;
510
+ val += pair.OldName;
511
+ val.Add_LF();
512
+ val += pair.NewName;
513
+ val.Add_LF();
514
+ if (type == NRecursedType::kRecursed)
515
+ val += "-r";
516
+ else if (type == NRecursedType::kWildcardOnlyRecursed)
517
+ val += "-r0";
518
+ throw CArcCmdLineException("Unsupported rename command:", val);
519
+ }
520
+ }
521
+ #endif
522
+
523
+ static void AddToCensorFromListFile(
524
+ CObjectVector<CRenamePair> *renamePairs,
525
+ NWildcard::CCensor &censor,
526
+ const CNameOption &nop, LPCWSTR fileName, UInt32 codePage)
527
+ {
528
+ UStringVector names;
529
+ /*
530
+ if (!NFind::DoesFileExist_FollowLink(us2fs(fileName)))
531
+ throw CArcCmdLineException(kCannotFindListFile, fileName);
532
+ */
533
+ DWORD lastError = 0;
534
+ if (!ReadNamesFromListFile2(us2fs(fileName), names, codePage, lastError))
535
+ {
536
+ if (lastError != 0)
537
+ {
538
+ UString m;
539
+ m = "The file operation error for listfile";
540
+ m.Add_LF();
541
+ m += NError::MyFormatMessage(lastError);
542
+ throw CArcCmdLineException(m, fileName);
543
+ }
544
+ throw CArcCmdLineException(kIncorrectListFile, fileName);
545
+ }
546
+ if (renamePairs)
547
+ {
548
+ #ifndef Z7_EXTRACT_ONLY
549
+ if ((names.Size() & 1) != 0)
550
+ throw CArcCmdLineException(kIncorrectListFile, fileName);
551
+ for (unsigned i = 0; i < names.Size(); i += 2)
552
+ {
553
+ // change type !!!!
554
+ AddRenamePair(renamePairs, names[i], names[i + 1], nop.RecursedType, nop.WildcardMatching);
555
+ }
556
+ #else
557
+ throw "not implemented";
558
+ #endif
559
+ }
560
+ else
561
+ FOR_VECTOR (i, names)
562
+ AddNameToCensor(censor, nop, names[i]);
563
+ }
564
+
565
+ static void AddToCensorFromNonSwitchesStrings(
566
+ CObjectVector<CRenamePair> *renamePairs,
567
+ unsigned startIndex,
568
+ NWildcard::CCensor &censor,
569
+ const UStringVector &nonSwitchStrings,
570
+ int stopSwitchIndex,
571
+ const CNameOption &nop,
572
+ bool thereAreSwitchIncludes, UInt32 codePage)
573
+ {
574
+ // another default
575
+ if ((renamePairs || nonSwitchStrings.Size() == startIndex) && !thereAreSwitchIncludes)
576
+ {
577
+ /* for rename command: -i switch sets the mask for archive item reading.
578
+ if (thereAreSwitchIncludes), { we don't use UniversalWildcard. }
579
+ also for non-rename command: we set UniversalWildcard, only if there are no nonSwitches. */
580
+ // we use default fileds in (CNameOption) for UniversalWildcard.
581
+ CNameOption nop2;
582
+ // recursive mode is not important for UniversalWildcard (*)
583
+ // nop2.RecursedType = nop.RecursedType; // we don't need it
584
+ /*
585
+ nop2.RecursedType = NRecursedType::kNonRecursed;
586
+ nop2.Include = true;
587
+ nop2.WildcardMatching = true;
588
+ nop2.MarkMode = NWildcard::kMark_FileOrDir;
589
+ */
590
+ AddNameToCensor(censor, nop2, UString(kUniversalWildcard));
591
+ }
592
+
593
+ int oldIndex = -1;
594
+
595
+ if (stopSwitchIndex < 0)
596
+ stopSwitchIndex = (int)nonSwitchStrings.Size();
597
+
598
+ for (unsigned i = startIndex; i < nonSwitchStrings.Size(); i++)
599
+ {
600
+ const UString &s = nonSwitchStrings[i];
601
+ if (s.IsEmpty())
602
+ throw CArcCmdLineException(kEmptyFilePath);
603
+ if (i < (unsigned)stopSwitchIndex && s[0] == kFileListID)
604
+ AddToCensorFromListFile(renamePairs, censor, nop, s.Ptr(1), codePage);
605
+ else if (renamePairs)
606
+ {
607
+ #ifndef Z7_EXTRACT_ONLY
608
+ if (oldIndex == -1)
609
+ oldIndex = (int)i;
610
+ else
611
+ {
612
+ // NRecursedType::EEnum type is used for global wildcard (-i! switches)
613
+ AddRenamePair(renamePairs, nonSwitchStrings[(unsigned)oldIndex], s, NRecursedType::kNonRecursed, nop.WildcardMatching);
614
+ // AddRenamePair(renamePairs, nonSwitchStrings[oldIndex], s, type);
615
+ oldIndex = -1;
616
+ }
617
+ #else
618
+ throw "not implemented";
619
+ #endif
620
+ }
621
+ else
622
+ AddNameToCensor(censor, nop, s);
623
+ }
624
+
625
+ if (oldIndex != -1)
626
+ {
627
+ throw CArcCmdLineException("There is no second file name for rename pair:", nonSwitchStrings[(unsigned)oldIndex]);
628
+ }
629
+ }
630
+
631
+ #ifdef _WIN32
632
+
633
+ struct CEventSetEnd
634
+ {
635
+ UString Name;
636
+
637
+ CEventSetEnd(const wchar_t *name): Name(name) {}
638
+ ~CEventSetEnd()
639
+ {
640
+ NSynchronization::CManualResetEvent event;
641
+ if (event.Open(EVENT_MODIFY_STATE, false, GetSystemString(Name)) == 0)
642
+ event.Set();
643
+ }
644
+ };
645
+
646
+ static const char * const k_IncorrectMapCommand = "Incorrect Map command";
647
+
648
+ static const char *ParseMapWithPaths(
649
+ NWildcard::CCensor &censor,
650
+ const UString &s2,
651
+ const CNameOption &nop)
652
+ {
653
+ UString s (s2);
654
+ const int pos = s.Find(L':');
655
+ if (pos < 0)
656
+ return k_IncorrectMapCommand;
657
+ const int pos2 = s.Find(L':', (unsigned)(pos + 1));
658
+ if (pos2 < 0)
659
+ return k_IncorrectMapCommand;
660
+
661
+ CEventSetEnd eventSetEnd((const wchar_t *)s + (unsigned)(pos2 + 1));
662
+ s.DeleteFrom((unsigned)pos2);
663
+ UInt32 size;
664
+ if (!StringToUInt32(s.Ptr((unsigned)(pos + 1)), size)
665
+ || size < sizeof(wchar_t)
666
+ || size > ((UInt32)1 << 31)
667
+ || size % sizeof(wchar_t) != 0)
668
+ return "Unsupported Map data size";
669
+
670
+ s.DeleteFrom((unsigned)pos);
671
+ CFileMapping map;
672
+ if (map.Open(FILE_MAP_READ, GetSystemString(s)) != 0)
673
+ return "Cannot open mapping";
674
+ const LPVOID data = map.Map(FILE_MAP_READ, 0, size);
675
+ if (!data)
676
+ return "MapViewOfFile error";
677
+ CFileUnmapper unmapper(data);
678
+
679
+ UString name;
680
+ const wchar_t *p = (const wchar_t *)data;
681
+ if (*p != 0) // data format marker
682
+ return "Unsupported Map data";
683
+ const UInt32 numChars = size / sizeof(wchar_t);
684
+ for (UInt32 i = 1; i < numChars; i++)
685
+ {
686
+ const wchar_t c = p[i];
687
+ if (c == 0)
688
+ {
689
+ // MessageBoxW(0, name, L"7-Zip", 0);
690
+ AddNameToCensor(censor, nop, name);
691
+ name.Empty();
692
+ }
693
+ else
694
+ name += c;
695
+ }
696
+ if (!name.IsEmpty())
697
+ return "Map data error";
698
+
699
+ return NULL;
700
+ }
701
+
702
+ #endif
703
+
704
+ static void AddSwitchWildcardsToCensor(
705
+ NWildcard::CCensor &censor,
706
+ const UStringVector &strings,
707
+ const CNameOption &nop,
708
+ UInt32 codePage)
709
+ {
710
+ const char *errorMessage = NULL;
711
+ unsigned i;
712
+ for (i = 0; i < strings.Size(); i++)
713
+ {
714
+ const UString &name = strings[i];
715
+ unsigned pos = 0;
716
+
717
+ if (name.Len() < kSomeCludePostStringMinSize)
718
+ {
719
+ errorMessage = "Too short switch";
720
+ break;
721
+ }
722
+
723
+ if (!nop.Include)
724
+ {
725
+ if (name.IsEqualTo_Ascii_NoCase("td"))
726
+ {
727
+ censor.ExcludeDirItems = true;
728
+ continue;
729
+ }
730
+ if (name.IsEqualTo_Ascii_NoCase("tf"))
731
+ {
732
+ censor.ExcludeFileItems = true;
733
+ continue;
734
+ }
735
+ }
736
+
737
+ CNameOption nop2 = nop;
738
+
739
+ bool type_WasUsed = false;
740
+ bool recursed_WasUsed = false;
741
+ bool matching_WasUsed = false;
742
+ bool error = false;
743
+
744
+ for (;;)
745
+ {
746
+ wchar_t c = ::MyCharLower_Ascii(name[pos]);
747
+ if (c == kRecursedIDChar)
748
+ {
749
+ if (recursed_WasUsed)
750
+ {
751
+ error = true;
752
+ break;
753
+ }
754
+ recursed_WasUsed = true;
755
+ pos++;
756
+ c = name[pos];
757
+ int index = -1;
758
+ if (c <= 0x7F)
759
+ index = FindCharPosInString(kRecursedPostCharSet, (char)c);
760
+ nop2.RecursedType = GetRecursedTypeFromIndex(index);
761
+ if (index >= 0)
762
+ {
763
+ pos++;
764
+ continue;
765
+ }
766
+ }
767
+
768
+ if (c == 'w')
769
+ {
770
+ if (matching_WasUsed)
771
+ {
772
+ error = true;
773
+ break;
774
+ }
775
+ matching_WasUsed = true;
776
+ nop2.WildcardMatching = true;
777
+ pos++;
778
+ if (name[pos] == '-')
779
+ {
780
+ nop2.WildcardMatching = false;
781
+ pos++;
782
+ }
783
+ }
784
+ else if (c == 'm')
785
+ {
786
+ if (type_WasUsed)
787
+ {
788
+ error = true;
789
+ break;
790
+ }
791
+ type_WasUsed = true;
792
+ pos++;
793
+ nop2.MarkMode = NWildcard::kMark_StrictFile;
794
+ c = name[pos];
795
+ if (c == '-')
796
+ {
797
+ nop2.MarkMode = NWildcard::kMark_FileOrDir;
798
+ pos++;
799
+ }
800
+ else if (c == '2')
801
+ {
802
+ nop2.MarkMode = NWildcard::kMark_StrictFile_IfWildcard;
803
+ pos++;
804
+ }
805
+ }
806
+ else
807
+ break;
808
+ }
809
+
810
+ if (error)
811
+ {
812
+ errorMessage = "inorrect switch";
813
+ break;
814
+ }
815
+
816
+ if (name.Len() < pos + kSomeCludeAfterRecursedPostStringMinSize)
817
+ {
818
+ errorMessage = "Too short switch";
819
+ break;
820
+ }
821
+
822
+ const UString tail = name.Ptr(pos + 1);
823
+
824
+ const wchar_t c = name[pos];
825
+
826
+ if (c == kImmediateNameID)
827
+ AddNameToCensor(censor, nop2, tail);
828
+ else if (c == kFileListID)
829
+ AddToCensorFromListFile(NULL, censor, nop2, tail, codePage);
830
+ #ifdef _WIN32
831
+ else if (c == kMapNameID)
832
+ {
833
+ errorMessage = ParseMapWithPaths(censor, tail, nop2);
834
+ if (errorMessage)
835
+ break;
836
+ }
837
+ #endif
838
+ else
839
+ {
840
+ errorMessage = "Incorrect wildcard type marker";
841
+ break;
842
+ }
843
+ }
844
+
845
+ if (i != strings.Size())
846
+ throw CArcCmdLineException(errorMessage, strings[i]);
847
+ }
848
+
849
+ /*
850
+ static NUpdateArchive::NPairAction::EEnum GetUpdatePairActionType(int i)
851
+ {
852
+ switch (i)
853
+ {
854
+ case NUpdateArchive::NPairAction::kIgnore: return NUpdateArchive::NPairAction::kIgnore;
855
+ case NUpdateArchive::NPairAction::kCopy: return NUpdateArchive::NPairAction::kCopy;
856
+ case NUpdateArchive::NPairAction::kCompress: return NUpdateArchive::NPairAction::kCompress;
857
+ case NUpdateArchive::NPairAction::kCompressAsAnti: return NUpdateArchive::NPairAction::kCompressAsAnti;
858
+ }
859
+ throw 98111603;
860
+ }
861
+ */
862
+
863
+ static const char * const kUpdatePairStateIDSet = "pqrxyzw";
864
+ static const int kUpdatePairStateNotSupportedActions[] = {2, 2, 1, -1, -1, -1, -1};
865
+
866
+ static const unsigned kNumUpdatePairActions = 4;
867
+ static const char * const kUpdateIgnoreItselfPostStringID = "-";
868
+ static const wchar_t kUpdateNewArchivePostCharID = '!';
869
+
870
+
871
+ static bool ParseUpdateCommandString2(const UString &command,
872
+ NUpdateArchive::CActionSet &actionSet, UString &postString)
873
+ {
874
+ for (unsigned i = 0; i < command.Len();)
875
+ {
876
+ wchar_t c = MyCharLower_Ascii(command[i]);
877
+ int statePos = FindCharPosInString(kUpdatePairStateIDSet, (char)c);
878
+ if (c > 0x7F || statePos < 0)
879
+ {
880
+ postString = command.Ptr(i);
881
+ return true;
882
+ }
883
+ i++;
884
+ if (i >= command.Len())
885
+ return false;
886
+ c = command[i];
887
+ if (c < '0' || c >= (wchar_t)('0' + kNumUpdatePairActions))
888
+ return false;
889
+ unsigned actionPos = (unsigned)(c - '0');
890
+ actionSet.StateActions[(unsigned)statePos] = (NUpdateArchive::NPairAction::EEnum)(actionPos);
891
+ if (kUpdatePairStateNotSupportedActions[(unsigned)statePos] == (int)actionPos)
892
+ return false;
893
+ i++;
894
+ }
895
+ postString.Empty();
896
+ return true;
897
+ }
898
+
899
+ static void ParseUpdateCommandString(CUpdateOptions &options,
900
+ const UStringVector &updatePostStrings,
901
+ const NUpdateArchive::CActionSet &defaultActionSet)
902
+ {
903
+ const char *errorMessage = "incorrect update switch command";
904
+ unsigned i;
905
+ for (i = 0; i < updatePostStrings.Size(); i++)
906
+ {
907
+ const UString &updateString = updatePostStrings[i];
908
+ if (updateString.IsEqualTo(kUpdateIgnoreItselfPostStringID))
909
+ {
910
+ if (options.UpdateArchiveItself)
911
+ {
912
+ options.UpdateArchiveItself = false;
913
+ options.Commands.Delete(0);
914
+ }
915
+ }
916
+ else
917
+ {
918
+ NUpdateArchive::CActionSet actionSet = defaultActionSet;
919
+
920
+ UString postString;
921
+ if (!ParseUpdateCommandString2(updateString, actionSet, postString))
922
+ break;
923
+ if (postString.IsEmpty())
924
+ {
925
+ if (options.UpdateArchiveItself)
926
+ options.Commands[0].ActionSet = actionSet;
927
+ }
928
+ else
929
+ {
930
+ if (postString[0] != kUpdateNewArchivePostCharID)
931
+ break;
932
+ CUpdateArchiveCommand uc;
933
+ UString archivePath = postString.Ptr(1);
934
+ if (archivePath.IsEmpty())
935
+ break;
936
+ uc.UserArchivePath = archivePath;
937
+ uc.ActionSet = actionSet;
938
+ options.Commands.Add(uc);
939
+ }
940
+ }
941
+ }
942
+ if (i != updatePostStrings.Size())
943
+ throw CArcCmdLineException(errorMessage, updatePostStrings[i]);
944
+ }
945
+
946
+ bool ParseComplexSize(const wchar_t *s, UInt64 &result);
947
+
948
+ static void SetAddCommandOptions(
949
+ NCommandType::EEnum commandType,
950
+ const CParser &parser,
951
+ CUpdateOptions &options)
952
+ {
953
+ NUpdateArchive::CActionSet defaultActionSet;
954
+ switch ((int)commandType)
955
+ {
956
+ case NCommandType::kAdd:
957
+ defaultActionSet = NUpdateArchive::k_ActionSet_Add;
958
+ break;
959
+ case NCommandType::kDelete:
960
+ defaultActionSet = NUpdateArchive::k_ActionSet_Delete;
961
+ break;
962
+ default:
963
+ defaultActionSet = NUpdateArchive::k_ActionSet_Update;
964
+ }
965
+
966
+ options.UpdateArchiveItself = true;
967
+
968
+ options.Commands.Clear();
969
+ CUpdateArchiveCommand updateMainCommand;
970
+ updateMainCommand.ActionSet = defaultActionSet;
971
+ options.Commands.Add(updateMainCommand);
972
+ if (parser[NKey::kUpdate].ThereIs)
973
+ ParseUpdateCommandString(options, parser[NKey::kUpdate].PostStrings,
974
+ defaultActionSet);
975
+ if (parser[NKey::kWorkingDir].ThereIs)
976
+ {
977
+ const UString &postString = parser[NKey::kWorkingDir].PostStrings[0];
978
+ if (postString.IsEmpty())
979
+ NDir::MyGetTempPath(options.WorkingDir);
980
+ else
981
+ options.WorkingDir = us2fs(postString);
982
+ }
983
+ options.SfxMode = parser[NKey::kSfx].ThereIs;
984
+ if (options.SfxMode)
985
+ options.SfxModule = us2fs(parser[NKey::kSfx].PostStrings[0]);
986
+
987
+ if (parser[NKey::kVolume].ThereIs)
988
+ {
989
+ const UStringVector &sv = parser[NKey::kVolume].PostStrings;
990
+ FOR_VECTOR (i, sv)
991
+ {
992
+ UInt64 size;
993
+ if (!ParseComplexSize(sv[i], size))
994
+ throw CArcCmdLineException("Incorrect volume size:", sv[i]);
995
+ if (i == sv.Size() - 1 && size == 0)
996
+ throw CArcCmdLineException("zero size last volume is not allowed");
997
+ options.VolumesSizes.Add(size);
998
+ }
999
+ }
1000
+ }
1001
+
1002
+ static void SetMethodOptions(const CParser &parser, CObjectVector<CProperty> &properties)
1003
+ {
1004
+ if (parser[NKey::kProperty].ThereIs)
1005
+ {
1006
+ FOR_VECTOR (i, parser[NKey::kProperty].PostStrings)
1007
+ {
1008
+ CProperty prop;
1009
+ prop.Name = parser[NKey::kProperty].PostStrings[i];
1010
+ int index = prop.Name.Find(L'=');
1011
+ if (index >= 0)
1012
+ {
1013
+ prop.Value = prop.Name.Ptr((unsigned)(index + 1));
1014
+ prop.Name.DeleteFrom((unsigned)index);
1015
+ }
1016
+ properties.Add(prop);
1017
+ }
1018
+ }
1019
+ }
1020
+
1021
+
1022
+ static inline void SetStreamMode(const CSwitchResult &sw, unsigned &res)
1023
+ {
1024
+ if (sw.ThereIs)
1025
+ res = (unsigned)sw.PostCharIndex;
1026
+ }
1027
+
1028
+
1029
+ #if defined(_WIN32) && !defined(UNDER_CE)
1030
+ static void PrintHex(UString &s, UInt64 v)
1031
+ {
1032
+ char temp[32];
1033
+ ConvertUInt64ToHex(v, temp);
1034
+ s += temp;
1035
+ }
1036
+ #endif
1037
+
1038
+
1039
+ void CArcCmdLineParser::Parse1(const UStringVector &commandStrings,
1040
+ CArcCmdLineOptions &options)
1041
+ {
1042
+ Parse1Log.Empty();
1043
+ if (!parser.ParseStrings(kSwitchForms, Z7_ARRAY_SIZE(kSwitchForms), commandStrings))
1044
+ throw CArcCmdLineException(parser.ErrorMessage, parser.ErrorLine);
1045
+
1046
+ options.IsInTerminal = MY_IS_TERMINAL(stdin);
1047
+ options.IsStdOutTerminal = MY_IS_TERMINAL(stdout);
1048
+ options.IsStdErrTerminal = MY_IS_TERMINAL(stderr);
1049
+
1050
+ options.HelpMode = parser[NKey::kHelp1].ThereIs || parser[NKey::kHelp2].ThereIs || parser[NKey::kHelp3].ThereIs;
1051
+ options.YesToAll = parser[NKey::kYes].ThereIs;
1052
+
1053
+ options.StdInMode = parser[NKey::kStdIn].ThereIs;
1054
+ options.StdOutMode = parser[NKey::kStdOut].ThereIs;
1055
+ options.EnableHeaders = !parser[NKey::kDisableHeaders].ThereIs;
1056
+ if (parser[NKey::kListFields].ThereIs)
1057
+ {
1058
+ const UString &s = parser[NKey::kListFields].PostStrings[0];
1059
+ options.ListFields = GetAnsiString(s);
1060
+ }
1061
+ if (parser[NKey::kListPathSlash].ThereIs)
1062
+ {
1063
+ options.ListPathSeparatorSlash.Val = !parser[NKey::kListPathSlash].WithMinus;
1064
+ options.ListPathSeparatorSlash.Def = true;
1065
+ }
1066
+ if (parser[NKey::kListTimestampUTC].ThereIs)
1067
+ g_Timestamp_Show_UTC = !parser[NKey::kListTimestampUTC].WithMinus;
1068
+ options.TechMode = parser[NKey::kTechMode].ThereIs;
1069
+ options.ShowTime = parser[NKey::kShowTime].ThereIs;
1070
+
1071
+ if (parser[NKey::kDisablePercents].ThereIs)
1072
+ options.DisablePercents = true;
1073
+
1074
+ if (parser[NKey::kDisablePercents].ThereIs
1075
+ || options.StdOutMode
1076
+ || !options.IsStdOutTerminal)
1077
+ options.Number_for_Percents = k_OutStream_disabled;
1078
+
1079
+ if (options.StdOutMode)
1080
+ options.Number_for_Out = k_OutStream_disabled;
1081
+
1082
+ SetStreamMode(parser[NKey::kOutStream], options.Number_for_Out);
1083
+ SetStreamMode(parser[NKey::kErrStream], options.Number_for_Errors);
1084
+ SetStreamMode(parser[NKey::kPercentStream], options.Number_for_Percents);
1085
+
1086
+ if (parser[NKey::kLogLevel].ThereIs)
1087
+ {
1088
+ const UString &s = parser[NKey::kLogLevel].PostStrings[0];
1089
+ if (s.IsEmpty())
1090
+ options.LogLevel = 1;
1091
+ else
1092
+ {
1093
+ UInt32 v;
1094
+ if (!StringToUInt32(s, v))
1095
+ throw CArcCmdLineException("Unsupported switch postfix -bb", s);
1096
+ options.LogLevel = (unsigned)v;
1097
+ }
1098
+ }
1099
+
1100
+ if (parser[NKey::kCaseSensitive].ThereIs)
1101
+ {
1102
+ options.CaseSensitive =
1103
+ g_CaseSensitive = !parser[NKey::kCaseSensitive].WithMinus;
1104
+ options.CaseSensitive_Change = true;
1105
+ }
1106
+
1107
+
1108
+ #if defined(_WIN32) && !defined(UNDER_CE)
1109
+ NSecurity::EnablePrivilege_SymLink();
1110
+ #endif
1111
+
1112
+ // options.LargePages = false;
1113
+
1114
+ if (parser[NKey::kLargePages].ThereIs)
1115
+ {
1116
+ UInt32 slp = 0;
1117
+ const UString &s = parser[NKey::kLargePages].PostStrings[0];
1118
+ if (s.IsEmpty())
1119
+ slp = 1;
1120
+ else if (!s.IsEqualTo("-"))
1121
+ {
1122
+ if (!StringToUInt32(s, slp))
1123
+ throw CArcCmdLineException("Unsupported switch postfix for -slp", s);
1124
+ }
1125
+
1126
+ #ifdef Z7_LARGE_PAGES
1127
+ if (slp >
1128
+ #if defined(_WIN32) && !defined(UNDER_CE)
1129
+ (unsigned)NSecurity::Get_LargePages_RiskLevel()
1130
+ #else
1131
+ 0
1132
+ #endif
1133
+ )
1134
+ {
1135
+ #ifdef _WIN32 // change it !
1136
+ SetLargePageSize();
1137
+ #endif
1138
+ // note: this process also can inherit that Privilege from parent process
1139
+ g_LargePagesMode =
1140
+ #if defined(_WIN32) && !defined(UNDER_CE)
1141
+ NSecurity::EnablePrivilege_LockMemory();
1142
+ #else
1143
+ true;
1144
+ #endif
1145
+ }
1146
+ #endif
1147
+ }
1148
+
1149
+
1150
+ #ifndef UNDER_CE
1151
+
1152
+ if (parser[NKey::kAffinity].ThereIs)
1153
+ {
1154
+ const UString &s = parser[NKey::kAffinity].PostStrings[0];
1155
+ if (!s.IsEmpty())
1156
+ {
1157
+ AString a;
1158
+ a.SetFromWStr_if_Ascii(s);
1159
+ Parse1Log += "Set process affinity mask: ";
1160
+
1161
+ bool isError = false;
1162
+
1163
+ #ifdef _WIN32
1164
+
1165
+ UInt64 v = 0;
1166
+ {
1167
+ const char *end;
1168
+ v = ConvertHexStringToUInt64(a, &end);
1169
+ if (*end != 0)
1170
+ a.Empty();
1171
+ }
1172
+ if (a.IsEmpty())
1173
+ isError = true;
1174
+ else
1175
+ {
1176
+ #ifndef _WIN64
1177
+ if (v >= ((UInt64)1 << 32))
1178
+ throw CArcCmdLineException("unsupported value -stm", s);
1179
+ else
1180
+ #endif
1181
+ {
1182
+ PrintHex(Parse1Log, v);
1183
+ if (!SetProcessAffinityMask(GetCurrentProcess(), (DWORD_PTR)v))
1184
+ {
1185
+ const DWORD lastError = GetLastError();
1186
+ Parse1Log += " : ERROR : ";
1187
+ Parse1Log += NError::MyFormatMessage(lastError);
1188
+ }
1189
+ }
1190
+ }
1191
+
1192
+ #else // _WIN32
1193
+
1194
+ if (a.Len() != s.Len())
1195
+ isError = true;
1196
+ else
1197
+ {
1198
+ Parse1Log += a;
1199
+ NSystem::CProcessAffinity aff;
1200
+ aff.CpuZero();
1201
+ unsigned cpu = 0;
1202
+ unsigned i = a.Len();
1203
+ while (i)
1204
+ {
1205
+ unsigned v = (Byte)a[--i];
1206
+ Z7_PARSE_HEX_DIGIT(v, { isError = true; break; })
1207
+ for (unsigned mask = 1; mask != 1u << 4; mask <<= 1, cpu++)
1208
+ if (v & mask)
1209
+ aff.CpuSet(cpu);
1210
+ }
1211
+ if (!isError)
1212
+ if (!aff.SetProcAffinity())
1213
+ {
1214
+ const DWORD lastError = GetLastError();
1215
+ Parse1Log += " : ERROR : ";
1216
+ Parse1Log += NError::MyFormatMessage(lastError);
1217
+ }
1218
+ }
1219
+ #endif // _WIN32
1220
+
1221
+ if (isError)
1222
+ throw CArcCmdLineException("Unsupported switch postfix -stm", s);
1223
+
1224
+ Parse1Log.Add_LF();
1225
+ }
1226
+ }
1227
+
1228
+ #endif
1229
+ }
1230
+
1231
+
1232
+
1233
+ struct CCodePagePair
1234
+ {
1235
+ const char *Name;
1236
+ UInt32 CodePage;
1237
+ };
1238
+
1239
+ static const unsigned kNumByteOnlyCodePages = 3;
1240
+
1241
+ static const CCodePagePair g_CodePagePairs[] =
1242
+ {
1243
+ { "utf-8", CP_UTF8 },
1244
+ { "win", CP_ACP },
1245
+ { "dos", CP_OEMCP },
1246
+ { "utf-16le", Z7_WIN_CP_UTF16 },
1247
+ { "utf-16be", Z7_WIN_CP_UTF16BE }
1248
+ };
1249
+
1250
+ static Int32 FindCharset(const NCommandLineParser::CParser &parser, unsigned keyIndex,
1251
+ bool byteOnlyCodePages, Int32 defaultVal)
1252
+ {
1253
+ if (!parser[keyIndex].ThereIs)
1254
+ return defaultVal;
1255
+
1256
+ UString name (parser[keyIndex].PostStrings.Back());
1257
+ UInt32 v;
1258
+ if (StringToUInt32(name, v))
1259
+ if (v < ((UInt32)1 << 16))
1260
+ return (Int32)v;
1261
+ name.MakeLower_Ascii();
1262
+ const unsigned num = byteOnlyCodePages ? kNumByteOnlyCodePages : Z7_ARRAY_SIZE(g_CodePagePairs);
1263
+ for (unsigned i = 0;; i++)
1264
+ {
1265
+ if (i == num) // to disable warnings from different compilers
1266
+ throw CArcCmdLineException("Unsupported charset:", name);
1267
+ const CCodePagePair &pair = g_CodePagePairs[i];
1268
+ if (name.IsEqualTo(pair.Name))
1269
+ return (Int32)pair.CodePage;
1270
+ }
1271
+ }
1272
+
1273
+
1274
+ static void SetBoolPair(NCommandLineParser::CParser &parser, unsigned switchID, CBoolPair &bp)
1275
+ {
1276
+ bp.Def = parser[switchID].ThereIs;
1277
+ if (bp.Def)
1278
+ bp.Val = !parser[switchID].WithMinus;
1279
+ }
1280
+
1281
+
1282
+ static bool ParseSizeString(const wchar_t *s, UInt64 &res)
1283
+ {
1284
+ const wchar_t *end;
1285
+ const UInt64 v = ConvertStringToUInt64(s, &end);
1286
+ if (s == end)
1287
+ return false;
1288
+ const wchar_t c = *end;
1289
+
1290
+ if (c == 0)
1291
+ {
1292
+ res = v;
1293
+ return true;
1294
+ }
1295
+ if (end[1] != 0)
1296
+ return false;
1297
+
1298
+ unsigned numBits;
1299
+ switch (MyCharLower_Ascii(c))
1300
+ {
1301
+ case 'b': numBits = 0; break;
1302
+ case 'k': numBits = 10; break;
1303
+ case 'm': numBits = 20; break;
1304
+ case 'g': numBits = 30; break;
1305
+ case 't': numBits = 40; break;
1306
+ default: return false;
1307
+ }
1308
+ const UInt64 val2 = v << numBits;
1309
+ if ((val2 >> numBits) != v)
1310
+ return false;
1311
+ res = val2;
1312
+ return true;
1313
+ }
1314
+
1315
+ void CArcCmdLineParser::Parse2(CArcCmdLineOptions &options)
1316
+ {
1317
+ const UStringVector &nonSwitchStrings = parser.NonSwitchStrings;
1318
+ const unsigned numNonSwitchStrings = nonSwitchStrings.Size();
1319
+ if (numNonSwitchStrings < kMinNonSwitchWords)
1320
+ throw CArcCmdLineException("The command must be specified");
1321
+
1322
+ if (!ParseArchiveCommand(nonSwitchStrings[kCommandIndex], options.Command))
1323
+ throw CArcCmdLineException("Unsupported command:", nonSwitchStrings[kCommandIndex]);
1324
+
1325
+ if (parser[NKey::kHash].ThereIs)
1326
+ options.HashMethods = parser[NKey::kHash].PostStrings;
1327
+
1328
+ /*
1329
+ if (parser[NKey::kHashGenFile].ThereIs)
1330
+ {
1331
+ const UString &s = parser[NKey::kHashGenFile].PostStrings[0];
1332
+ for (unsigned i = 0 ; i < s.Len();)
1333
+ {
1334
+ const wchar_t c = s[i++];
1335
+ if (!options.HashOptions.ParseFlagCharOption(c, true))
1336
+ {
1337
+ if (c != '=')
1338
+ throw CArcCmdLineException("Unsupported hash mode switch:", s);
1339
+ options.HashOptions.HashFilePath = s.Ptr(i);
1340
+ break;
1341
+ }
1342
+ }
1343
+ }
1344
+ */
1345
+
1346
+ if (parser[NKey::kHashDir].ThereIs)
1347
+ options.ExtractOptions.HashDir = parser[NKey::kHashDir].PostStrings[0];
1348
+
1349
+ if (parser[NKey::kExtractMemLimit].ThereIs)
1350
+ {
1351
+ const UString &s = parser[NKey::kExtractMemLimit].PostStrings[0];
1352
+ if (!ParseSizeString(s, options.ExtractOptions.NtOptions.MemLimit))
1353
+ throw CArcCmdLineException("Unsupported -smemx:", s);
1354
+ }
1355
+
1356
+ if (parser[NKey::kElimDup].ThereIs)
1357
+ {
1358
+ options.ExtractOptions.ElimDup.Def = true;
1359
+ options.ExtractOptions.ElimDup.Val = !parser[NKey::kElimDup].WithMinus;
1360
+ }
1361
+
1362
+ NWildcard::ECensorPathMode censorPathMode = NWildcard::k_RelatPath;
1363
+ bool fullPathMode = parser[NKey::kFullPathMode].ThereIs;
1364
+ if (fullPathMode)
1365
+ {
1366
+ censorPathMode = NWildcard::k_AbsPath;
1367
+ const UString &s = parser[NKey::kFullPathMode].PostStrings[0];
1368
+ if (!s.IsEmpty())
1369
+ {
1370
+ if (s.IsEqualTo("2"))
1371
+ censorPathMode = NWildcard::k_FullPath;
1372
+ else
1373
+ throw CArcCmdLineException("Unsupported -spf:", s);
1374
+ }
1375
+ }
1376
+
1377
+ if (parser[NKey::kNameTrailReplace].ThereIs)
1378
+ g_PathTrailReplaceMode = !parser[NKey::kNameTrailReplace].WithMinus;
1379
+
1380
+ CNameOption nop;
1381
+
1382
+ if (parser[NKey::kRecursed].ThereIs)
1383
+ nop.RecursedType = GetRecursedTypeFromIndex(parser[NKey::kRecursed].PostCharIndex);
1384
+
1385
+ if (parser[NKey::kDisableWildcardParsing].ThereIs)
1386
+ nop.WildcardMatching = false;
1387
+
1388
+ if (parser[NKey::kUseSlashMark].ThereIs)
1389
+ {
1390
+ const UString &s = parser[NKey::kUseSlashMark].PostStrings[0];
1391
+ if (s.IsEmpty())
1392
+ nop.MarkMode = NWildcard::kMark_StrictFile;
1393
+ else if (s.IsEqualTo_Ascii_NoCase("-"))
1394
+ nop.MarkMode = NWildcard::kMark_FileOrDir;
1395
+ else if (s.IsEqualTo_Ascii_NoCase("2"))
1396
+ nop.MarkMode = NWildcard::kMark_StrictFile_IfWildcard;
1397
+ else
1398
+ throw CArcCmdLineException("Unsupported -spm:", s);
1399
+ }
1400
+
1401
+
1402
+ options.ConsoleCodePage = FindCharset(parser, NKey::kConsoleCharSet, true, -1);
1403
+
1404
+ const UInt32 codePage = (UInt32)FindCharset(parser, NKey::kListfileCharSet, false, CP_UTF8);
1405
+
1406
+ bool thereAreSwitchIncludes = false;
1407
+
1408
+ if (parser[NKey::kInclude].ThereIs)
1409
+ {
1410
+ thereAreSwitchIncludes = true;
1411
+ nop.Include = true;
1412
+ AddSwitchWildcardsToCensor(options.Censor,
1413
+ parser[NKey::kInclude].PostStrings, nop, codePage);
1414
+ }
1415
+
1416
+ if (parser[NKey::kExclude].ThereIs)
1417
+ {
1418
+ nop.Include = false;
1419
+ AddSwitchWildcardsToCensor(options.Censor,
1420
+ parser[NKey::kExclude].PostStrings, nop, codePage);
1421
+ }
1422
+
1423
+ unsigned curCommandIndex = kCommandIndex + 1;
1424
+ bool thereIsArchiveName = !parser[NKey::kNoArName].ThereIs &&
1425
+ options.Command.CommandType != NCommandType::kBenchmark &&
1426
+ options.Command.CommandType != NCommandType::kInfo &&
1427
+ options.Command.CommandType != NCommandType::kHash;
1428
+
1429
+ const bool isExtractGroupCommand = options.Command.IsFromExtractGroup();
1430
+ const bool isExtractOrList = isExtractGroupCommand || options.Command.CommandType == NCommandType::kList;
1431
+ const bool isRename = options.Command.CommandType == NCommandType::kRename;
1432
+ options.UpdateOptions.RenameMode = isRename;
1433
+
1434
+ if ((isExtractOrList || isRename) && options.StdInMode)
1435
+ thereIsArchiveName = false;
1436
+
1437
+ if (parser[NKey::kArcNameMode].ThereIs)
1438
+ options.UpdateOptions.ArcNameMode = ParseArcNameMode(parser[NKey::kArcNameMode].PostCharIndex);
1439
+
1440
+ if (thereIsArchiveName)
1441
+ {
1442
+ if (curCommandIndex >= numNonSwitchStrings)
1443
+ throw CArcCmdLineException("Cannot find archive name");
1444
+ options.ArchiveName = nonSwitchStrings[curCommandIndex++];
1445
+ if (options.ArchiveName.IsEmpty())
1446
+ throw CArcCmdLineException("Archive name cannot by empty");
1447
+ #ifdef _WIN32
1448
+ // options.ArchiveName.Replace(L'/', WCHAR_PATH_SEPARATOR);
1449
+ #endif
1450
+ }
1451
+
1452
+ nop.Include = true;
1453
+ AddToCensorFromNonSwitchesStrings(isRename ? &options.UpdateOptions.RenamePairs : NULL,
1454
+ curCommandIndex, options.Censor,
1455
+ nonSwitchStrings, parser.StopSwitchIndex,
1456
+ nop,
1457
+ thereAreSwitchIncludes, codePage);
1458
+
1459
+ #ifndef Z7_NO_CRYPTO
1460
+ options.PasswordEnabled = parser[NKey::kPassword].ThereIs;
1461
+ if (options.PasswordEnabled)
1462
+ options.Password = parser[NKey::kPassword].PostStrings[0];
1463
+ #endif
1464
+
1465
+ options.ShowDialog = parser[NKey::kShowDialog].ThereIs;
1466
+
1467
+ if (parser[NKey::kArchiveType].ThereIs)
1468
+ options.ArcType = parser[NKey::kArchiveType].PostStrings[0];
1469
+
1470
+ options.ExcludedArcTypes = parser[NKey::kExcludedArcType].PostStrings;
1471
+
1472
+ SetMethodOptions(parser, options.Properties);
1473
+
1474
+ if (parser[NKey::kNtSecurity].ThereIs) options.NtSecurity.SetTrueTrue();
1475
+
1476
+ SetBoolPair(parser, NKey::kAltStreams, options.AltStreams);
1477
+ SetBoolPair(parser, NKey::kHardLinks, options.HardLinks);
1478
+ SetBoolPair(parser, NKey::kSymLinks, options.SymLinks);
1479
+
1480
+ SetBoolPair(parser, NKey::kStoreOwnerId, options.StoreOwnerId);
1481
+ SetBoolPair(parser, NKey::kStoreOwnerName, options.StoreOwnerName);
1482
+ /*
1483
+ bool supportSymLink = options.SymLinks.Val;
1484
+ if (!options.SymLinks.Def)
1485
+ {
1486
+ if (isExtractOrList)
1487
+ supportSymLink = true;
1488
+ else
1489
+ supportSymLink = false;
1490
+ }
1491
+ #ifdef ENV_HAVE_LSTAT
1492
+ if (supportSymLink)
1493
+ global_use_lstat = 1;
1494
+ else
1495
+ global_use_lstat = 0;
1496
+ #endif
1497
+ */
1498
+
1499
+ if (isExtractOrList)
1500
+ {
1501
+ CExtractOptionsBase &eo = options.ExtractOptions;
1502
+
1503
+ eo.ExcludeDirItems = options.Censor.ExcludeDirItems;
1504
+ eo.ExcludeFileItems = options.Censor.ExcludeFileItems;
1505
+
1506
+ {
1507
+ CExtractNtOptions &nt = eo.NtOptions;
1508
+ nt.NtSecurity = options.NtSecurity;
1509
+
1510
+ nt.AltStreams = options.AltStreams;
1511
+ if (!options.AltStreams.Def)
1512
+ nt.AltStreams.Val = true;
1513
+
1514
+ nt.HardLinks = options.HardLinks;
1515
+ if (!options.HardLinks.Def)
1516
+ nt.HardLinks.Val = true;
1517
+
1518
+ nt.SymLinks = options.SymLinks;
1519
+ if (!options.SymLinks.Def)
1520
+ nt.SymLinks.Val = true;
1521
+
1522
+ if (parser[NKey::kSymLinks_AllowDangerous].ThereIs)
1523
+ {
1524
+ const UString &s = parser[NKey::kSymLinks_AllowDangerous].PostStrings[0];
1525
+ UInt32 v = 9; // default value for "-snld" instead of default = 5 without "-snld".
1526
+ if (!s.IsEmpty())
1527
+ if (!StringToUInt32(s, v))
1528
+ throw CArcCmdLineException("Unsupported switch postfix -snld", s);
1529
+ nt.SymLinks_DangerousLevel = (unsigned)v;
1530
+ }
1531
+
1532
+ nt.ReplaceColonForAltStream = parser[NKey::kReplaceColonForAltStream].ThereIs;
1533
+ nt.WriteToAltStreamIfColon = parser[NKey::kWriteToAltStreamIfColon].ThereIs;
1534
+
1535
+ nt.ExtractOwner = options.StoreOwnerId.Val; // StoreOwnerName
1536
+
1537
+ if (parser[NKey::kPreserveATime].ThereIs)
1538
+ nt.PreserveATime = true;
1539
+ if (parser[NKey::kShareForWrite].ThereIs)
1540
+ nt.OpenShareForWrite = true;
1541
+ }
1542
+
1543
+ if (parser[NKey::kZoneFile].ThereIs)
1544
+ {
1545
+ eo.ZoneMode = NExtract::NZoneIdMode::kAll;
1546
+ const UString &s = parser[NKey::kZoneFile].PostStrings[0];
1547
+ if (!s.IsEmpty())
1548
+ {
1549
+ if (s.IsEqualTo("0")) eo.ZoneMode = NExtract::NZoneIdMode::kNone;
1550
+ else if (s.IsEqualTo("1")) eo.ZoneMode = NExtract::NZoneIdMode::kAll;
1551
+ else if (s.IsEqualTo("2")) eo.ZoneMode = NExtract::NZoneIdMode::kOffice;
1552
+ else
1553
+ throw CArcCmdLineException("Unsupported -snz:", s);
1554
+ }
1555
+ }
1556
+
1557
+ options.Censor.AddPathsToCensor(NWildcard::k_AbsPath);
1558
+ options.Censor.ExtendExclude();
1559
+
1560
+ // are there paths that look as non-relative (!Prefix.IsEmpty())
1561
+ if (!options.Censor.AllAreRelative())
1562
+ throw CArcCmdLineException("Cannot use absolute pathnames for this command");
1563
+
1564
+ NWildcard::CCensor &arcCensor = options.arcCensor;
1565
+
1566
+ CNameOption nopArc;
1567
+ // nopArc.RecursedType = NRecursedType::kNonRecursed; // default: we don't want recursing for archives, if -r specified
1568
+ // is it OK, external switches can disable WildcardMatching and MarcMode for arc.
1569
+ nopArc.WildcardMatching = nop.WildcardMatching;
1570
+ nopArc.MarkMode = nop.MarkMode;
1571
+
1572
+ if (parser[NKey::kArInclude].ThereIs)
1573
+ {
1574
+ nopArc.Include = true;
1575
+ AddSwitchWildcardsToCensor(arcCensor, parser[NKey::kArInclude].PostStrings, nopArc, codePage);
1576
+ }
1577
+ if (parser[NKey::kArExclude].ThereIs)
1578
+ {
1579
+ nopArc.Include = false;
1580
+ AddSwitchWildcardsToCensor(arcCensor, parser[NKey::kArExclude].PostStrings, nopArc, codePage);
1581
+ }
1582
+
1583
+ if (thereIsArchiveName)
1584
+ {
1585
+ nopArc.Include = true;
1586
+ AddNameToCensor(arcCensor, nopArc, options.ArchiveName);
1587
+ }
1588
+
1589
+ arcCensor.AddPathsToCensor(NWildcard::k_RelatPath);
1590
+
1591
+ #ifdef _WIN32
1592
+ ConvertToLongNames(arcCensor);
1593
+ #endif
1594
+
1595
+ arcCensor.ExtendExclude();
1596
+
1597
+ if (options.StdInMode)
1598
+ options.ArcName_for_StdInMode = parser[NKey::kStdIn].PostStrings.Front();
1599
+
1600
+ if (isExtractGroupCommand)
1601
+ {
1602
+ if (options.StdOutMode)
1603
+ {
1604
+ if (
1605
+ options.Number_for_Percents == k_OutStream_stdout
1606
+ // || options.Number_for_Out == k_OutStream_stdout
1607
+ // || options.Number_for_Errors == k_OutStream_stdout
1608
+ ||
1609
+ (
1610
+ (options.IsStdOutTerminal && options.IsStdErrTerminal)
1611
+ &&
1612
+ (
1613
+ options.Number_for_Percents != k_OutStream_disabled
1614
+ // || options.Number_for_Out != k_OutStream_disabled
1615
+ // || options.Number_for_Errors != k_OutStream_disabled
1616
+ )
1617
+ )
1618
+ )
1619
+ throw CArcCmdLineException(kSameTerminalError);
1620
+ }
1621
+
1622
+ if (parser[NKey::kOutputDir].ThereIs)
1623
+ {
1624
+ eo.OutputDir = us2fs(parser[NKey::kOutputDir].PostStrings[0]);
1625
+ #ifdef _WIN32
1626
+ NFile::NName::NormalizeDirSeparators(eo.OutputDir);
1627
+ #endif
1628
+ NFile::NName::NormalizeDirPathPrefix(eo.OutputDir);
1629
+ }
1630
+
1631
+ eo.OverwriteMode = NExtract::NOverwriteMode::kAsk;
1632
+ if (parser[NKey::kOverwrite].ThereIs)
1633
+ {
1634
+ eo.OverwriteMode = k_OverwriteModes[(unsigned)parser[NKey::kOverwrite].PostCharIndex];
1635
+ eo.OverwriteMode_Force = true;
1636
+ }
1637
+ else if (options.YesToAll)
1638
+ {
1639
+ eo.OverwriteMode = NExtract::NOverwriteMode::kOverwrite;
1640
+ eo.OverwriteMode_Force = true;
1641
+ }
1642
+ }
1643
+
1644
+ eo.PathMode = options.Command.GetPathMode();
1645
+ if (censorPathMode == NWildcard::k_AbsPath)
1646
+ {
1647
+ eo.PathMode = NExtract::NPathMode::kAbsPaths;
1648
+ eo.PathMode_Force = true;
1649
+ }
1650
+ else if (censorPathMode == NWildcard::k_FullPath)
1651
+ {
1652
+ eo.PathMode = NExtract::NPathMode::kFullPaths;
1653
+ eo.PathMode_Force = true;
1654
+ }
1655
+ }
1656
+ else if (options.Command.IsFromUpdateGroup())
1657
+ {
1658
+ if (parser[NKey::kArInclude].ThereIs)
1659
+ throw CArcCmdLineException("-ai switch is not supported for this command");
1660
+
1661
+ CUpdateOptions &updateOptions = options.UpdateOptions;
1662
+
1663
+ SetAddCommandOptions(options.Command.CommandType, parser, updateOptions);
1664
+
1665
+ updateOptions.MethodMode.Properties = options.Properties;
1666
+
1667
+ if (parser[NKey::kPreserveATime].ThereIs)
1668
+ updateOptions.PreserveATime = true;
1669
+ if (parser[NKey::kShareForWrite].ThereIs)
1670
+ updateOptions.OpenShareForWrite = true;
1671
+ if (parser[NKey::kStopAfterOpenError].ThereIs)
1672
+ updateOptions.StopAfterOpenError = true;
1673
+
1674
+ updateOptions.PathMode = censorPathMode;
1675
+
1676
+ updateOptions.AltStreams = options.AltStreams;
1677
+ updateOptions.NtSecurity = options.NtSecurity;
1678
+ updateOptions.HardLinks = options.HardLinks;
1679
+ updateOptions.SymLinks = options.SymLinks;
1680
+
1681
+ updateOptions.StoreOwnerId = options.StoreOwnerId;
1682
+ updateOptions.StoreOwnerName = options.StoreOwnerName;
1683
+
1684
+ updateOptions.EMailMode = parser[NKey::kEmail].ThereIs;
1685
+ if (updateOptions.EMailMode)
1686
+ {
1687
+ updateOptions.EMailAddress = parser[NKey::kEmail].PostStrings.Front();
1688
+ if (updateOptions.EMailAddress.Len() > 0)
1689
+ if (updateOptions.EMailAddress[0] == L'.')
1690
+ {
1691
+ updateOptions.EMailRemoveAfter = true;
1692
+ updateOptions.EMailAddress.Delete(0);
1693
+ }
1694
+ }
1695
+
1696
+ updateOptions.StdOutMode = options.StdOutMode;
1697
+ updateOptions.StdInMode = options.StdInMode;
1698
+
1699
+ updateOptions.DeleteAfterCompressing = parser[NKey::kDeleteAfterCompressing].ThereIs;
1700
+ updateOptions.SetArcMTime = parser[NKey::kSetArcMTime].ThereIs;
1701
+
1702
+ if (updateOptions.StdOutMode && updateOptions.EMailMode)
1703
+ throw CArcCmdLineException("stdout mode and email mode cannot be combined");
1704
+
1705
+ if (updateOptions.StdOutMode)
1706
+ {
1707
+ if (options.IsStdOutTerminal)
1708
+ throw CArcCmdLineException(kTerminalOutError);
1709
+
1710
+ if (options.Number_for_Percents == k_OutStream_stdout
1711
+ || options.Number_for_Out == k_OutStream_stdout
1712
+ || options.Number_for_Errors == k_OutStream_stdout)
1713
+ throw CArcCmdLineException(kSameTerminalError);
1714
+ }
1715
+
1716
+ if (updateOptions.StdInMode)
1717
+ updateOptions.StdInFileName = parser[NKey::kStdIn].PostStrings.Front();
1718
+
1719
+ if (options.Command.CommandType == NCommandType::kRename)
1720
+ if (updateOptions.Commands.Size() != 1)
1721
+ throw CArcCmdLineException("Only one archive can be created with rename command");
1722
+ }
1723
+ else if (options.Command.CommandType == NCommandType::kBenchmark)
1724
+ {
1725
+ options.NumIterations = 1;
1726
+ options.NumIterations_Defined = false;
1727
+ if (curCommandIndex < numNonSwitchStrings)
1728
+ {
1729
+ if (!StringToUInt32(nonSwitchStrings[curCommandIndex], options.NumIterations))
1730
+ throw CArcCmdLineException("Incorrect number of benchmark iterations", nonSwitchStrings[curCommandIndex]);
1731
+ curCommandIndex++;
1732
+ options.NumIterations_Defined = true;
1733
+ }
1734
+ }
1735
+ else if (options.Command.CommandType == NCommandType::kHash)
1736
+ {
1737
+ options.Censor.AddPathsToCensor(censorPathMode);
1738
+ options.Censor.ExtendExclude();
1739
+
1740
+ CHashOptions &hashOptions = options.HashOptions;
1741
+ hashOptions.PathMode = censorPathMode;
1742
+ hashOptions.Methods = options.HashMethods;
1743
+ // hashOptions.HashFilePath = options.HashFilePath;
1744
+ if (parser[NKey::kPreserveATime].ThereIs)
1745
+ hashOptions.PreserveATime = true;
1746
+ if (parser[NKey::kShareForWrite].ThereIs)
1747
+ hashOptions.OpenShareForWrite = true;
1748
+ hashOptions.StdInMode = options.StdInMode;
1749
+ hashOptions.AltStreamsMode = options.AltStreams.Val;
1750
+ hashOptions.SymLinks = options.SymLinks;
1751
+ }
1752
+ else if (options.Command.CommandType == NCommandType::kInfo)
1753
+ {
1754
+ }
1755
+ else
1756
+ throw 20150919;
1757
+ }
1758
+
1759
+
1760
+
1761
+ #ifndef _WIN32
1762
+
1763
+ static AString g_ModuleDirPrefix;
1764
+
1765
+ void Set_ModuleDirPrefix_From_ProgArg0(const char *s);
1766
+ void Set_ModuleDirPrefix_From_ProgArg0(const char *s)
1767
+ {
1768
+ AString a (s);
1769
+ int sep = a.ReverseFind_PathSepar();
1770
+ a.DeleteFrom((unsigned)(sep + 1));
1771
+ g_ModuleDirPrefix = a;
1772
+ }
1773
+
1774
+ namespace NWindows {
1775
+ namespace NDLL {
1776
+
1777
+ FString GetModuleDirPrefix();
1778
+ FString GetModuleDirPrefix()
1779
+ {
1780
+ FString s;
1781
+
1782
+ s = fas2fs(g_ModuleDirPrefix);
1783
+ if (s.IsEmpty())
1784
+ s = FTEXT(".") FSTRING_PATH_SEPARATOR;
1785
+ return s;
1786
+ /*
1787
+ setenv("_7ZIP_HOME_DIR", "/test/", 0);
1788
+ const char *home = getenv("_7ZIP_HOME_DIR");
1789
+ if (home)
1790
+ s = home;
1791
+ else
1792
+ s = FTEXT(".") FSTRING_PATH_SEPARATOR;
1793
+ return s;
1794
+ */
1795
+ }
1796
+
1797
+ }}
1798
+
1799
+ #endif // ! _WIN32