react-native-update 10.34.3 → 10.34.5

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 (805) hide show
  1. package/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +34 -172
  2. package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +4 -4
  3. package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +63 -379
  4. package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +170 -415
  5. package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +10 -54
  6. package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +1 -13
  7. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +18 -171
  8. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +4 -5
  9. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +7 -38
  10. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +4 -15
  11. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +12 -22
  12. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +4 -22
  13. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffPatch.workspace +8 -0
  14. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffZ.cbp +219 -0
  15. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HPatchZ.cbp +156 -0
  16. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/unitTest.cbp +65 -0
  17. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +105 -155
  18. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +236 -363
  19. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj.user +3 -0
  20. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +317 -347
  21. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj.user +3 -0
  22. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +181 -295
  23. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj.user +3 -0
  24. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +0 -9
  25. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +14 -53
  26. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +32 -162
  27. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +22 -89
  28. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +13 -237
  29. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +2 -2
  30. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +14 -194
  31. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +10 -30
  32. package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +3 -458
  33. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +71 -106
  34. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +3 -3
  35. package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +110 -484
  36. package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +193 -835
  37. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +50 -99
  38. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +4 -18
  39. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +8 -147
  40. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +6 -18
  41. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +25 -7
  42. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +113 -5
  43. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +97 -163
  44. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +39 -49
  45. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +15 -15
  46. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +2 -18
  47. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +4 -8
  48. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +57 -72
  49. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +13 -18
  50. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +1 -1
  51. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +2 -2
  52. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +2 -2
  53. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +2 -2
  54. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +2 -2
  55. package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +1 -1
  56. package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +100 -311
  57. package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +72 -53
  58. package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +487 -888
  59. package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +28 -45
  60. package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +247 -812
  61. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +544 -1265
  62. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +38 -123
  63. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +0 -115
  64. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +102 -272
  65. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +12 -22
  66. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +4 -18
  67. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +5 -7
  68. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/{divsufsort.cpp → divsufsort.c} +8 -5
  69. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +164 -91
  70. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +102 -5
  71. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.c +13 -0
  72. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +97 -1
  73. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +44 -23
  74. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +89 -54
  75. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +55 -48
  76. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/utils.c.inc.h +381 -0
  77. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +47 -110
  78. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +4 -11
  79. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +26 -53
  80. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +25 -103
  81. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +130 -271
  82. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +7 -17
  83. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +37 -628
  84. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +43 -203
  85. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +10 -14
  86. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +7 -22
  87. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +46 -132
  88. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +9 -48
  89. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +299 -650
  90. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +82 -120
  91. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +7 -87
  92. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +9 -119
  93. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +6 -2
  94. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +15 -192
  95. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.cpp +367 -0
  96. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +56 -31
  97. package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +1 -1
  98. package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +1 -0
  99. package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +31 -225
  100. package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +94 -566
  101. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +28 -222
  102. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +117 -228
  103. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +173 -678
  104. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +22 -103
  105. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +167 -485
  106. package/harmony/pushy/src/main/cpp/lzma/C/7z.h +6 -8
  107. package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +30 -39
  108. package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +3 -3
  109. package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +217 -232
  110. package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +3 -3
  111. package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +68 -404
  112. package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +6 -9
  113. package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +79 -163
  114. package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +78 -160
  115. package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +58 -215
  116. package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +6 -15
  117. package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +23 -46
  118. package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +89 -311
  119. package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +5 -5
  120. package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +68 -191
  121. package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +8 -30
  122. package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +108 -926
  123. package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +96 -246
  124. package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +8 -33
  125. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +144 -177
  126. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +42 -228
  127. package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +182 -377
  128. package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +143 -622
  129. package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +40 -81
  130. package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +58 -163
  131. package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +48 -9
  132. package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +15 -228
  133. package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +133 -885
  134. package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +78 -428
  135. package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +31 -136
  136. package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +3 -3
  137. package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +62 -53
  138. package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +5 -5
  139. package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +495 -1114
  140. package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +25 -64
  141. package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +400 -969
  142. package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +24 -37
  143. package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +48 -25
  144. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +7 -12
  145. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +7 -8
  146. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +83 -96
  147. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +9 -11
  148. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +92 -96
  149. package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +9 -12
  150. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +3 -3
  151. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +4 -3
  152. package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +6 -3
  153. package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +206 -384
  154. package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +8 -11
  155. package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +315 -489
  156. package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +9 -18
  157. package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +3 -5
  158. package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +14 -21
  159. package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +87 -90
  160. package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +25 -28
  161. package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +88 -74
  162. package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +20 -21
  163. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +34 -118
  164. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +293 -712
  165. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +70 -109
  166. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +116 -237
  167. package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +95 -245
  168. package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +5 -122
  169. package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +4 -24
  170. package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +143 -387
  171. package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +7 -67
  172. package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +114 -241
  173. package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +7 -4
  174. package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +14 -731
  175. package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +14 -204
  176. package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.c +396 -0
  177. package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.h +31 -0
  178. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +2 -10
  179. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +79 -282
  180. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +7 -10
  181. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +3 -7
  182. package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +75 -32
  183. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +56 -111
  184. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +0 -24
  185. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +0 -2
  186. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +41 -18
  187. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +2 -30
  188. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +6 -7
  189. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +2 -27
  190. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +7 -10
  191. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +22 -39
  192. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +2 -9
  193. package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +1 -3
  194. package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +3 -5
  195. package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +47 -129
  196. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +43 -97
  197. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +8 -8
  198. package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +36 -228
  199. package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +295 -405
  200. package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +139 -194
  201. package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +11 -15
  202. package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +134 -200
  203. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +6 -6
  204. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +1 -4
  205. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +13 -29
  206. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +90 -120
  207. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +6 -9
  208. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +140 -183
  209. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +20 -23
  210. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +57 -78
  211. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +44 -169
  212. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +17 -57
  213. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +109 -141
  214. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +57 -54
  215. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +116 -336
  216. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +1 -1
  217. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +9 -17
  218. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +136 -234
  219. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +26 -35
  220. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +5 -10
  221. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +155 -280
  222. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +40 -51
  223. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +59 -67
  224. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +2 -6
  225. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +2 -8
  226. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +3 -12
  227. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +9 -23
  228. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +387 -975
  229. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +16 -44
  230. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +2 -5
  231. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +0 -2
  232. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +0 -2
  233. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +8 -15
  234. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +87 -106
  235. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +57 -57
  236. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +1 -1
  237. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +8 -6
  238. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +43 -126
  239. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +18 -77
  240. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +9 -20
  241. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +23 -20
  242. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +9 -61
  243. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +3 -8
  244. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +27 -29
  245. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +26 -23
  246. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +2 -2
  247. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +8 -6
  248. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +2 -2
  249. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +2 -5
  250. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +10 -63
  251. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +173 -319
  252. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +113 -92
  253. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +53 -47
  254. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +2 -5
  255. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +208 -352
  256. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +2 -2
  257. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +3 -6
  258. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +47 -227
  259. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +2 -5
  260. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +5 -19
  261. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +2 -5
  262. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +2 -4
  263. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +2 -5
  264. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +1 -6
  265. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +53 -71
  266. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +22 -85
  267. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +2 -5
  268. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +4 -13
  269. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +166 -102
  270. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +4 -109
  271. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +30 -69
  272. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +2 -5
  273. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +7 -10
  274. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +1 -5
  275. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +16 -16
  276. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +12 -9
  277. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +9 -7
  278. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +2 -2
  279. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +5 -74
  280. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +51 -58
  281. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +10 -3
  282. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +5 -9
  283. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +6 -92
  284. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +19 -46
  285. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +11 -3
  286. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +5 -11
  287. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +0 -5
  288. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +28 -136
  289. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +5 -67
  290. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +62 -74
  291. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +24 -32
  292. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +7 -7
  293. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +2 -2
  294. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +100 -548
  295. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +86 -125
  296. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +116 -258
  297. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +76 -72
  298. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +15 -34
  299. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +9 -38
  300. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +82 -192
  301. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +28 -25
  302. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +52 -78
  303. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +83 -52
  304. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +2 -2
  305. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +2 -2
  306. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +67 -323
  307. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +38 -123
  308. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +8 -6
  309. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +13 -9
  310. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +12 -12
  311. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +7 -74
  312. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +5 -5
  313. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +13 -11
  314. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +1 -10
  315. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +14 -16
  316. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +16 -16
  317. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +2 -5
  318. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +50 -45
  319. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +21 -39
  320. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +42 -47
  321. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +53 -42
  322. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +4 -49
  323. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +2 -20
  324. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +4 -4
  325. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +5 -20
  326. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +9 -8
  327. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +5 -5
  328. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +355 -556
  329. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +59 -66
  330. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +2 -2
  331. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +6 -6
  332. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +13 -19
  333. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +2 -2
  334. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +5 -88
  335. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +18 -42
  336. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +16 -33
  337. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +53 -52
  338. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +30 -64
  339. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +22 -55
  340. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +26 -11
  341. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +28 -26
  342. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +28 -30
  343. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +54 -45
  344. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +12 -24
  345. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +22 -10
  346. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +1 -1
  347. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +26 -33
  348. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +51 -51
  349. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +40 -232
  350. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +14 -13
  351. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +1 -1
  352. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +35 -84
  353. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +41 -42
  354. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +25 -66
  355. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +17 -8
  356. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +1 -1
  357. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +2 -5
  358. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +12 -13
  359. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +32 -26
  360. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +16 -14
  361. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +20 -9
  362. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +1 -1
  363. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +1 -1
  364. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +32 -67
  365. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +18 -30
  366. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +3 -3
  367. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +43 -208
  368. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +25 -90
  369. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +4 -17
  370. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +21 -29
  371. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +3 -4
  372. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +2 -5
  373. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +3 -38
  374. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +3 -26
  375. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +172 -253
  376. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +7 -55
  377. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +12 -43
  378. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +9 -10
  379. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +50 -133
  380. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +2 -4
  381. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +1 -1
  382. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +2 -53
  383. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +177 -329
  384. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +1 -97
  385. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +2 -5
  386. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +1 -2
  387. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +183 -687
  388. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +15 -49
  389. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +913 -2275
  390. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +115 -353
  391. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +106 -127
  392. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +3 -9
  393. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +35 -272
  394. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +64 -134
  395. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +1200 -2608
  396. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +20 -64
  397. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +1 -1
  398. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +2 -2
  399. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +36 -253
  400. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +233 -774
  401. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +6 -2
  402. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +2 -2
  403. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +63 -156
  404. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +10 -23
  405. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +2 -12
  406. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +6 -22
  407. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +4 -4
  408. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +65 -1991
  409. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +29 -241
  410. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +47 -45
  411. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +179 -442
  412. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +89 -147
  413. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +380 -529
  414. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +42 -75
  415. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +86 -163
  416. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +5 -5
  417. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +2 -2
  418. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +15 -23
  419. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +2 -2
  420. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +2 -2
  421. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +2 -5
  422. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +1 -2
  423. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +2 -5
  424. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +368 -595
  425. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +47 -68
  426. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +2 -2
  427. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +146 -444
  428. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +68 -103
  429. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +42 -111
  430. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +2 -2
  431. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +3 -7
  432. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +6 -11
  433. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +35 -25
  434. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +4 -8
  435. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +9 -91
  436. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +4 -4
  437. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +2 -2
  438. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +1 -4
  439. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +0 -3
  440. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +19 -48
  441. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +12 -18
  442. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +41 -162
  443. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +41 -88
  444. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +81 -140
  445. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +17 -27
  446. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +124 -182
  447. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +7 -22
  448. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +109 -590
  449. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +2 -62
  450. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +3 -3
  451. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +10 -17
  452. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +10 -13
  453. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +9 -13
  454. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +2 -5
  455. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +24 -320
  456. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +26 -50
  457. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +5 -13
  458. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +2 -2
  459. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +2 -6
  460. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +6 -12
  461. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +4 -4
  462. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +195 -302
  463. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +4 -15
  464. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +2 -2
  465. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +6 -6
  466. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +2 -2
  467. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +181 -416
  468. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +197 -216
  469. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +2 -2
  470. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +5 -13
  471. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +5 -48
  472. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +49 -215
  473. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +30 -50
  474. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +1 -3
  475. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +3 -5
  476. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +5 -5
  477. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +6 -6
  478. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +0 -4
  479. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +10 -15
  480. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +17 -18
  481. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +130 -276
  482. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +52 -56
  483. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +1 -2
  484. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +3 -8
  485. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +2 -2
  486. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +0 -9
  487. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +89 -185
  488. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +20 -23
  489. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +1 -23
  490. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +0 -10
  491. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +4 -4
  492. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +33 -36
  493. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +15 -15
  494. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +22 -39
  495. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +3 -4
  496. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +2 -2
  497. package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +13 -109
  498. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +14 -25
  499. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +1 -1
  500. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +90 -1
  501. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +49 -2
  502. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +2 -2
  503. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +7 -41
  504. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +3 -3
  505. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +29 -14
  506. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +45 -24
  507. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +2 -3
  508. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +5 -17
  509. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +110 -132
  510. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +9 -35
  511. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +5 -12
  512. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +31 -49
  513. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +4 -4
  514. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +21 -59
  515. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +10 -95
  516. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +81 -497
  517. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +2 -2
  518. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +9 -18
  519. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +5 -17
  520. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +2 -35
  521. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +164 -347
  522. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +35 -246
  523. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +8 -11
  524. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +11 -2
  525. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +94 -184
  526. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +11 -158
  527. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +54 -148
  528. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +27 -204
  529. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +5 -38
  530. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +16 -43
  531. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +2 -2
  532. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +11 -20
  533. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +5 -13
  534. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +39 -124
  535. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +11 -27
  536. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +15 -458
  537. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +2 -24
  538. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +89 -99
  539. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +2 -19
  540. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +11 -10
  541. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +2 -2
  542. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +102 -677
  543. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +5 -377
  544. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +84 -197
  545. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +25 -107
  546. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +14 -11
  547. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +8 -24
  548. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +113 -197
  549. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +12 -32
  550. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +4 -4
  551. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +10 -22
  552. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +6 -6
  553. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +47 -242
  554. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +51 -94
  555. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +2 -2
  556. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +4 -4
  557. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +26 -33
  558. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +22 -32
  559. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +13 -13
  560. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +34 -56
  561. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +9 -9
  562. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +3 -3
  563. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +2 -2
  564. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +5 -5
  565. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +2 -5
  566. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +3 -3
  567. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +2 -2
  568. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +6 -8
  569. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +7 -9
  570. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +8 -77
  571. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +10 -55
  572. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +4 -4
  573. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +2 -69
  574. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +2 -3
  575. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +80 -728
  576. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +7 -62
  577. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +56 -756
  578. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +19 -205
  579. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +47 -569
  580. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +28 -283
  581. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +112 -369
  582. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +3 -3
  583. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +113 -185
  584. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +14 -41
  585. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +10 -66
  586. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +2 -6
  587. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +4 -6
  588. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +14 -29
  589. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +2 -2
  590. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +2 -14
  591. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +56 -102
  592. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +9 -68
  593. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +14 -150
  594. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +3 -13
  595. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +128 -212
  596. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +20 -32
  597. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +4 -4
  598. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +2 -3
  599. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +18 -23
  600. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +56 -39
  601. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +58 -539
  602. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +14 -49
  603. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +2 -5
  604. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +0 -77
  605. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +18 -240
  606. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +38 -317
  607. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +5 -154
  608. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +10 -18
  609. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +37 -291
  610. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +10 -124
  611. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +7 -7
  612. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +19 -98
  613. package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj +90 -0
  614. package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +2 -6
  615. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +0 -205
  616. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +13 -93
  617. package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +13 -30
  618. package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
  619. package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
  620. package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
  621. package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
  622. package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
  623. package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
  624. package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
  625. package/package.json +1 -1
  626. package/react-native-update.podspec +0 -1
  627. package/react-native.config.js +1 -0
  628. package/src/client.ts +1 -2
  629. package/src/type.ts +1 -0
  630. package/harmony/pushy/src/main/cpp/HDiffPatch/README_cn.md +0 -547
  631. package/harmony/pushy/src/main/cpp/HDiffPatch/_hextobytes.h +0 -112
  632. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.cpp +0 -389
  633. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.h +0 -73
  634. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.c +0 -266
  635. package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.h +0 -58
  636. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.bat +0 -1
  637. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.sh +0 -1
  638. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/bzip2.vcxproj +0 -228
  639. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/hpatchz_test.vcxproj +0 -215
  640. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/libdeflate.vcxproj +0 -256
  641. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/longPathAware.exe.manifest +0 -7
  642. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/lzma.vcxproj +0 -271
  643. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/testHashClash.vcxproj +0 -228
  644. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zlib.vcxproj +0 -242
  645. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zstd.vcxproj +0 -287
  646. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
  647. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/libdeflate.xcodeproj/project.pbxproj +0 -286
  648. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zlib.xcodeproj/project.pbxproj +0 -308
  649. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.h +0 -33
  650. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.m +0 -33
  651. package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatchz.xcodeproj/project.pbxproj +0 -774
  652. package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.c +0 -31
  653. package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.h +0 -42
  654. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_for_hpatch_lite.h +0 -74
  655. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp +0 -478
  656. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.h +0 -222
  657. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.cpp +0 -14
  658. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.cpp +0 -168
  659. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.h +0 -44
  660. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/qsort_parallel.h +0 -125
  661. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.c +0 -243
  662. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.h +0 -51
  663. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.c +0 -153
  664. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.h +0 -54
  665. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.c +0 -158
  666. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.h +0 -49
  667. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.c +0 -294
  668. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.h +0 -59
  669. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_patch_private_mt.h +0 -217
  670. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.c +0 -349
  671. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.h +0 -110
  672. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.c +0 -366
  673. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h +0 -91
  674. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_input_cache.h +0 -31
  675. package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_types.h +0 -106
  676. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.c +0 -497
  677. package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.h +0 -106
  678. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.cpp +0 -254
  679. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.h +0 -39
  680. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_sign_diff_type.h +0 -37
  681. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.cpp +0 -62
  682. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.h +0 -44
  683. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dict_decompress_plugin.h +0 -156
  684. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.cpp +0 -440
  685. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.h +0 -88
  686. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.cpp +0 -332
  687. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.h +0 -48
  688. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_types.h +0 -198
  689. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.cpp +0 -697
  690. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.h +0 -74
  691. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_private.h +0 -262
  692. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type.h +0 -174
  693. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type_private.h +0 -174
  694. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.cpp +0 -252
  695. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.h +0 -67
  696. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.cpp +0 -680
  697. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.h +0 -137
  698. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dict_compress_plugin.h +0 -83
  699. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.cpp +0 -125
  700. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.h +0 -56
  701. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/hsynz_plugin.h +0 -55
  702. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.cpp +0 -147
  703. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.h +0 -38
  704. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.cpp +0 -354
  705. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.h +0 -76
  706. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.cpp +0 -521
  707. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.h +0 -69
  708. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_hash_clash.h +0 -122
  709. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_private.h +0 -66
  710. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type.h +0 -36
  711. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type_private.h +0 -81
  712. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.cpp +0 -247
  713. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.h +0 -71
  714. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.cpp +0 -351
  715. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.h +0 -42
  716. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.cpp +0 -124
  717. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.h +0 -38
  718. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.cpp +0 -203
  719. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.h +0 -55
  720. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.cpp +0 -79
  721. package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.h +0 -66
  722. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.cpp +0 -628
  723. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.h +0 -95
  724. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_code_table.h +0 -78
  725. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.c +0 -950
  726. package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.h +0 -72
  727. package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/7zAsm.S +0 -181
  728. package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/LzmaDecOpt.S +0 -1487
  729. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzFindOpt.asm +0 -540
  730. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sha256Opt.asm +0 -275
  731. package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sort.asm +0 -860
  732. package/harmony/pushy/src/main/cpp/lzma/C/7zWindows.h +0 -101
  733. package/harmony/pushy/src/main/cpp/lzma/C/7zip_gcc_c.mak +0 -360
  734. package/harmony/pushy/src/main/cpp/lzma/C/Asm_c.mak +0 -12
  735. package/harmony/pushy/src/main/cpp/lzma/C/LzFindOpt.c +0 -578
  736. package/harmony/pushy/src/main/cpp/lzma/C/Sha256Opt.c +0 -451
  737. package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.c +0 -835
  738. package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.h +0 -17
  739. package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/Precomp.h +0 -13
  740. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.c +0 -4
  741. package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.h +0 -13
  742. package/harmony/pushy/src/main/cpp/lzma/C/var_clang.mak +0 -11
  743. package/harmony/pushy/src/main/cpp/lzma/C/var_clang_arm64.mak +0 -12
  744. package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x64.mak +0 -11
  745. package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x86.mak +0 -11
  746. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc.mak +0 -12
  747. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_arm64.mak +0 -12
  748. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x64.mak +0 -10
  749. package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x86.mak +0 -10
  750. package/harmony/pushy/src/main/cpp/lzma/C/var_mac_arm64.mak +0 -11
  751. package/harmony/pushy/src/main/cpp/lzma/C/var_mac_x64.mak +0 -11
  752. package/harmony/pushy/src/main/cpp/lzma/C/warn_clang.mak +0 -1
  753. package/harmony/pushy/src/main/cpp/lzma/C/warn_clang_mac.mak +0 -1
  754. package/harmony/pushy/src/main/cpp/lzma/C/warn_gcc.mak +0 -51
  755. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip_gcc.mak +0 -1370
  756. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile.gcc +0 -279
  757. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile.gcc +0 -215
  758. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.cpp +0 -855
  759. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.h +0 -160
  760. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzFindOpt.mak +0 -7
  761. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec_gcc.mak +0 -14
  762. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sha256.mak +0 -13
  763. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sort.mak +0 -6
  764. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile.gcc +0 -72
  765. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile.gcc +0 -187
  766. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.cpp +0 -218
  767. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.h +0 -48
  768. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialogRes.h +0 -13
  769. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/StdAfx.h +0 -67
  770. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/7zG.exe.manifest +0 -23
  771. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang.mak +0 -3
  772. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_arm64.mak +0 -3
  773. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x64.mak +0 -3
  774. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x86.mak +0 -3
  775. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc.mak +0 -3
  776. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_arm64.mak +0 -3
  777. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x64.mak +0 -3
  778. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x86.mak +0 -3
  779. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_arm64.mak +0 -3
  780. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_x64.mak +0 -3
  781. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang.mak +0 -11
  782. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_arm64.mak +0 -19
  783. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x64.mak +0 -11
  784. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x86.mak +0 -11
  785. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc.mak +0 -12
  786. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_arm64.mak +0 -12
  787. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x64.mak +0 -11
  788. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x86.mak +0 -10
  789. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_arm64.mak +0 -13
  790. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_x64.mak +0 -11
  791. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang.mak +0 -3
  792. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang_mac.mak +0 -9
  793. package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_gcc.mak +0 -55
  794. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common0.h +0 -330
  795. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.cpp +0 -93
  796. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.h +0 -41
  797. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/LzFindPrepare.cpp +0 -7
  798. package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Prepare.cpp +0 -7
  799. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.cpp +0 -130
  800. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.h +0 -28
  801. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.cpp +0 -36
  802. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.h +0 -55
  803. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.cpp +0 -1251
  804. package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.h +0 -19
  805. package/ios/ImportReact.h +0 -2
@@ -1,5 +1,5 @@
1
1
  /* XzDec.c -- Xz Decode
2
- : Igor Pavlov : Public domain */
2
+ 2019-02-02 : Igor Pavlov : Public domain */
3
3
 
4
4
  #include "Precomp.h"
5
5
 
@@ -59,7 +59,7 @@ unsigned Xz_ReadVarInt(const Byte *p, size_t maxSize, UInt64 *value)
59
59
 
60
60
  for (i = 0; i < limit;)
61
61
  {
62
- const unsigned b = p[i];
62
+ Byte b = p[i];
63
63
  *value |= (UInt64)(b & 0x7F) << (7 * i++);
64
64
  if ((b & 0x80) == 0)
65
65
  return (b == 0 && i != 1) ? 0 : i;
@@ -67,8 +67,7 @@ unsigned Xz_ReadVarInt(const Byte *p, size_t maxSize, UInt64 *value)
67
67
  return 0;
68
68
  }
69
69
 
70
-
71
- /* ---------- XzBcFilterState ---------- */
70
+ /* ---------- BraState ---------- */
72
71
 
73
72
  #define BRA_BUF_SIZE (1 << 14)
74
73
 
@@ -77,60 +76,55 @@ typedef struct
77
76
  size_t bufPos;
78
77
  size_t bufConv;
79
78
  size_t bufTotal;
80
- Byte *buf; // must be aligned for 4 bytes
81
- Xz_Func_BcFilterStateBase_Filter filter_func;
82
- // int encodeMode;
83
- CXzBcFilterStateBase base;
84
- // Byte buf[BRA_BUF_SIZE];
85
- } CXzBcFilterState;
86
79
 
80
+ int encodeMode;
81
+
82
+ UInt32 methodId;
83
+ UInt32 delta;
84
+ UInt32 ip;
85
+ UInt32 x86State;
86
+ Byte deltaState[DELTA_STATE_SIZE];
87
87
 
88
- static void XzBcFilterState_Free(void *pp, ISzAllocPtr alloc)
88
+ Byte buf[BRA_BUF_SIZE];
89
+ } CBraState;
90
+
91
+ static void BraState_Free(void *pp, ISzAllocPtr alloc)
89
92
  {
90
- if (pp)
91
- {
92
- CXzBcFilterState *p = ((CXzBcFilterState *)pp);
93
- ISzAlloc_Free(alloc, p->buf);
94
- ISzAlloc_Free(alloc, pp);
95
- }
93
+ ISzAlloc_Free(alloc, pp);
96
94
  }
97
95
 
98
-
99
- static SRes XzBcFilterState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAllocPtr alloc)
96
+ static SRes BraState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAllocPtr alloc)
100
97
  {
101
- CXzBcFilterStateBase *p = &((CXzBcFilterState *)pp)->base;
102
- UNUSED_VAR(alloc)
98
+ CBraState *p = ((CBraState *)pp);
99
+ UNUSED_VAR(alloc);
103
100
  p->ip = 0;
104
101
  if (p->methodId == XZ_ID_Delta)
105
102
  {
106
103
  if (propSize != 1)
107
104
  return SZ_ERROR_UNSUPPORTED;
108
- p->delta = (UInt32)props[0] + 1;
105
+ p->delta = (unsigned)props[0] + 1;
109
106
  }
110
107
  else
111
108
  {
112
109
  if (propSize == 4)
113
110
  {
114
- const UInt32 v = GetUi32(props);
111
+ UInt32 v = GetUi32(props);
115
112
  switch (p->methodId)
116
113
  {
117
114
  case XZ_ID_PPC:
118
115
  case XZ_ID_ARM:
119
116
  case XZ_ID_SPARC:
120
- case XZ_ID_ARM64:
121
- if (v & 3)
117
+ if ((v & 3) != 0)
122
118
  return SZ_ERROR_UNSUPPORTED;
123
119
  break;
124
120
  case XZ_ID_ARMT:
125
- case XZ_ID_RISCV:
126
- if (v & 1)
121
+ if ((v & 1) != 0)
127
122
  return SZ_ERROR_UNSUPPORTED;
128
123
  break;
129
124
  case XZ_ID_IA64:
130
- if (v & 0xf)
125
+ if ((v & 0xF) != 0)
131
126
  return SZ_ERROR_UNSUPPORTED;
132
127
  break;
133
- default: break;
134
128
  }
135
129
  p->ip = v;
136
130
  }
@@ -140,91 +134,73 @@ static SRes XzBcFilterState_SetProps(void *pp, const Byte *props, size_t propSiz
140
134
  return SZ_OK;
141
135
  }
142
136
 
143
-
144
- static void XzBcFilterState_Init(void *pp)
137
+ static void BraState_Init(void *pp)
145
138
  {
146
- CXzBcFilterState *p = ((CXzBcFilterState *)pp);
139
+ CBraState *p = ((CBraState *)pp);
147
140
  p->bufPos = p->bufConv = p->bufTotal = 0;
148
- p->base.X86_State = Z7_BRANCH_CONV_ST_X86_STATE_INIT_VAL;
149
- if (p->base.methodId == XZ_ID_Delta)
150
- Delta_Init(p->base.delta_State);
141
+ x86_Convert_Init(p->x86State);
142
+ if (p->methodId == XZ_ID_Delta)
143
+ Delta_Init(p->deltaState);
151
144
  }
152
145
 
153
146
 
154
- static const z7_Func_BranchConv g_Funcs_BranchConv_RISC_Dec[] =
155
- {
156
- Z7_BRANCH_CONV_DEC_2 (BranchConv_PPC),
157
- Z7_BRANCH_CONV_DEC_2 (BranchConv_IA64),
158
- Z7_BRANCH_CONV_DEC_2 (BranchConv_ARM),
159
- Z7_BRANCH_CONV_DEC_2 (BranchConv_ARMT),
160
- Z7_BRANCH_CONV_DEC_2 (BranchConv_SPARC),
161
- Z7_BRANCH_CONV_DEC_2 (BranchConv_ARM64),
162
- Z7_BRANCH_CONV_DEC_2 (BranchConv_RISCV)
163
- };
164
-
165
- static SizeT XzBcFilterStateBase_Filter_Dec(CXzBcFilterStateBase *p, Byte *data, SizeT size)
147
+ #define CASE_BRA_CONV(isa) case XZ_ID_ ## isa: size = isa ## _Convert(data, size, p->ip, p->encodeMode); break;
148
+
149
+ static SizeT BraState_Filter(void *pp, Byte *data, SizeT size)
166
150
  {
151
+ CBraState *p = ((CBraState *)pp);
167
152
  switch (p->methodId)
168
153
  {
169
154
  case XZ_ID_Delta:
170
- Delta_Decode(p->delta_State, p->delta, data, size);
155
+ if (p->encodeMode)
156
+ Delta_Encode(p->deltaState, p->delta, data, size);
157
+ else
158
+ Delta_Decode(p->deltaState, p->delta, data, size);
171
159
  break;
172
160
  case XZ_ID_X86:
173
- size = (SizeT)(z7_BranchConvSt_X86_Dec(data, size, p->ip, &p->X86_State) - data);
174
- break;
175
- default:
176
- if (p->methodId >= XZ_ID_PPC)
177
- {
178
- const UInt32 i = p->methodId - XZ_ID_PPC;
179
- if (i < Z7_ARRAY_SIZE(g_Funcs_BranchConv_RISC_Dec))
180
- size = (SizeT)(g_Funcs_BranchConv_RISC_Dec[i](data, size, p->ip) - data);
181
- }
161
+ size = x86_Convert(data, size, p->ip, &p->x86State, p->encodeMode);
182
162
  break;
163
+ CASE_BRA_CONV(PPC)
164
+ CASE_BRA_CONV(IA64)
165
+ CASE_BRA_CONV(ARM)
166
+ CASE_BRA_CONV(ARMT)
167
+ CASE_BRA_CONV(SPARC)
183
168
  }
184
169
  p->ip += (UInt32)size;
185
170
  return size;
186
171
  }
187
172
 
188
173
 
189
- static SizeT XzBcFilterState_Filter(void *pp, Byte *data, SizeT size)
190
- {
191
- CXzBcFilterState *p = ((CXzBcFilterState *)pp);
192
- return p->filter_func(&p->base, data, size);
193
- }
194
-
195
-
196
- static SRes XzBcFilterState_Code2(void *pp,
174
+ static SRes BraState_Code2(void *pp,
197
175
  Byte *dest, SizeT *destLen,
198
176
  const Byte *src, SizeT *srcLen, int srcWasFinished,
199
177
  ECoderFinishMode finishMode,
200
178
  // int *wasFinished
201
179
  ECoderStatus *status)
202
180
  {
203
- CXzBcFilterState *p = ((CXzBcFilterState *)pp);
181
+ CBraState *p = ((CBraState *)pp);
204
182
  SizeT destRem = *destLen;
205
183
  SizeT srcRem = *srcLen;
206
- UNUSED_VAR(finishMode)
184
+ UNUSED_VAR(finishMode);
207
185
 
208
186
  *destLen = 0;
209
187
  *srcLen = 0;
210
188
  // *wasFinished = False;
211
189
  *status = CODER_STATUS_NOT_FINISHED;
212
190
 
213
- while (destRem != 0)
191
+ while (destRem > 0)
214
192
  {
193
+ if (p->bufPos != p->bufConv)
215
194
  {
216
195
  size_t size = p->bufConv - p->bufPos;
217
- if (size)
218
- {
219
- if (size > destRem)
220
- size = destRem;
221
- memcpy(dest, p->buf + p->bufPos, size);
222
- p->bufPos += size;
223
- *destLen += size;
224
- dest += size;
225
- destRem -= size;
226
- continue;
227
- }
196
+ if (size > destRem)
197
+ size = destRem;
198
+ memcpy(dest, p->buf + p->bufPos, size);
199
+ p->bufPos += size;
200
+ *destLen += size;
201
+ dest += size;
202
+ destRem -= size;
203
+ continue;
228
204
  }
229
205
 
230
206
  p->bufTotal -= p->bufPos;
@@ -244,7 +220,7 @@ static SRes XzBcFilterState_Code2(void *pp,
244
220
  if (p->bufTotal == 0)
245
221
  break;
246
222
 
247
- p->bufConv = p->filter_func(&p->base, p->buf, p->bufTotal);
223
+ p->bufConv = BraState_Filter(pp, p->buf, p->bufTotal);
248
224
 
249
225
  if (p->bufConv == 0)
250
226
  {
@@ -264,37 +240,26 @@ static SRes XzBcFilterState_Code2(void *pp,
264
240
  }
265
241
 
266
242
 
267
- #define XZ_IS_SUPPORTED_FILTER_ID(id) \
268
- ((id) >= XZ_ID_Delta && (id) <= XZ_ID_RISCV)
269
-
270
- SRes Xz_StateCoder_Bc_SetFromMethod_Func(IStateCoder *p, UInt64 id,
271
- Xz_Func_BcFilterStateBase_Filter func, ISzAllocPtr alloc)
243
+ SRes BraState_SetFromMethod(IStateCoder *p, UInt64 id, int encodeMode, ISzAllocPtr alloc)
272
244
  {
273
- CXzBcFilterState *decoder;
274
- if (!XZ_IS_SUPPORTED_FILTER_ID(id))
245
+ CBraState *decoder;
246
+ if (id < XZ_ID_Delta || id > XZ_ID_SPARC)
275
247
  return SZ_ERROR_UNSUPPORTED;
276
- decoder = (CXzBcFilterState *)p->p;
248
+ decoder = (CBraState *)p->p;
277
249
  if (!decoder)
278
250
  {
279
- decoder = (CXzBcFilterState *)ISzAlloc_Alloc(alloc, sizeof(CXzBcFilterState));
251
+ decoder = (CBraState *)ISzAlloc_Alloc(alloc, sizeof(CBraState));
280
252
  if (!decoder)
281
253
  return SZ_ERROR_MEM;
282
- decoder->buf = ISzAlloc_Alloc(alloc, BRA_BUF_SIZE);
283
- if (!decoder->buf)
284
- {
285
- ISzAlloc_Free(alloc, decoder);
286
- return SZ_ERROR_MEM;
287
- }
288
254
  p->p = decoder;
289
- p->Free = XzBcFilterState_Free;
290
- p->SetProps = XzBcFilterState_SetProps;
291
- p->Init = XzBcFilterState_Init;
292
- p->Code2 = XzBcFilterState_Code2;
293
- p->Filter = XzBcFilterState_Filter;
294
- decoder->filter_func = func;
255
+ p->Free = BraState_Free;
256
+ p->SetProps = BraState_SetProps;
257
+ p->Init = BraState_Init;
258
+ p->Code2 = BraState_Code2;
259
+ p->Filter = BraState_Filter;
295
260
  }
296
- decoder->base.methodId = (UInt32)id;
297
- // decoder->encodeMode = encodeMode;
261
+ decoder->methodId = (UInt32)id;
262
+ decoder->encodeMode = encodeMode;
298
263
  return SZ_OK;
299
264
  }
300
265
 
@@ -313,9 +278,9 @@ static void SbState_Free(void *pp, ISzAllocPtr alloc)
313
278
 
314
279
  static SRes SbState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAllocPtr alloc)
315
280
  {
316
- UNUSED_VAR(pp)
317
- UNUSED_VAR(props)
318
- UNUSED_VAR(alloc)
281
+ UNUSED_VAR(pp);
282
+ UNUSED_VAR(props);
283
+ UNUSED_VAR(alloc);
319
284
  return (propSize == 0) ? SZ_OK : SZ_ERROR_UNSUPPORTED;
320
285
  }
321
286
 
@@ -331,7 +296,7 @@ static SRes SbState_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src,
331
296
  {
332
297
  CSbDec *p = (CSbDec *)pp;
333
298
  SRes res;
334
- UNUSED_VAR(srcWasFinished)
299
+ UNUSED_VAR(srcWasFinished);
335
300
  p->dest = dest;
336
301
  p->destLen = *destLen;
337
302
  p->src = src;
@@ -423,7 +388,7 @@ static SRes Lzma2State_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *s
423
388
  ELzmaStatus status2;
424
389
  /* ELzmaFinishMode fm = (finishMode == LZMA_FINISH_ANY) ? LZMA_FINISH_ANY : LZMA_FINISH_END; */
425
390
  SRes res;
426
- UNUSED_VAR(srcWasFinished)
391
+ UNUSED_VAR(srcWasFinished);
427
392
  if (spec->outBufMode)
428
393
  {
429
394
  SizeT dicPos = spec->decoder.decoder.dicPos;
@@ -454,7 +419,7 @@ static SRes Lzma2State_SetFromMethod(IStateCoder *p, Byte *outBuf, size_t outBuf
454
419
  p->Init = Lzma2State_Init;
455
420
  p->Code2 = Lzma2State_Code2;
456
421
  p->Filter = NULL;
457
- Lzma2Dec_CONSTRUCT(&spec->decoder)
422
+ Lzma2Dec_Construct(&spec->decoder);
458
423
  }
459
424
  spec->outBufMode = False;
460
425
  if (outBuf)
@@ -544,24 +509,26 @@ static SRes MixCoder_SetFromMethod(CMixCoder *p, unsigned coderIndex, UInt64 met
544
509
  {
545
510
  IStateCoder *sc = &p->coders[coderIndex];
546
511
  p->ids[coderIndex] = methodId;
547
- if (methodId == XZ_ID_LZMA2)
548
- return Lzma2State_SetFromMethod(sc, outBuf, outBufSize, p->alloc);
549
- #ifdef USE_SUBBLOCK
550
- if (methodId == XZ_ID_Subblock)
551
- return SbState_SetFromMethod(sc, p->alloc);
552
- #endif
512
+ switch (methodId)
513
+ {
514
+ case XZ_ID_LZMA2: return Lzma2State_SetFromMethod(sc, outBuf, outBufSize, p->alloc);
515
+ #ifdef USE_SUBBLOCK
516
+ case XZ_ID_Subblock: return SbState_SetFromMethod(sc, p->alloc);
517
+ #endif
518
+ }
553
519
  if (coderIndex == 0)
554
520
  return SZ_ERROR_UNSUPPORTED;
555
- return Xz_StateCoder_Bc_SetFromMethod_Func(sc, methodId,
556
- XzBcFilterStateBase_Filter_Dec, p->alloc);
521
+ return BraState_SetFromMethod(sc, methodId, 0, p->alloc);
557
522
  }
558
523
 
559
524
 
560
525
  static SRes MixCoder_ResetFromMethod(CMixCoder *p, unsigned coderIndex, UInt64 methodId, Byte *outBuf, size_t outBufSize)
561
526
  {
562
527
  IStateCoder *sc = &p->coders[coderIndex];
563
- if (methodId == XZ_ID_LZMA2)
564
- return Lzma2State_ResetOutBuf(sc, outBuf, outBufSize);
528
+ switch (methodId)
529
+ {
530
+ case XZ_ID_LZMA2: return Lzma2State_ResetOutBuf(sc, outBuf, outBufSize);
531
+ }
565
532
  return SZ_ERROR_UNSUPPORTED;
566
533
  }
567
534
 
@@ -600,7 +567,7 @@ static SRes MixCoder_Code(CMixCoder *p,
600
567
  SizeT destLen2, srcLen2;
601
568
  int wasFinished;
602
569
 
603
- PRF_STR("------- MixCoder Single ----------")
570
+ PRF_STR("------- MixCoder Single ----------");
604
571
 
605
572
  srcLen2 = srcLenOrig;
606
573
  destLen2 = destLenOrig;
@@ -647,14 +614,14 @@ static SRes MixCoder_Code(CMixCoder *p,
647
614
  processed = coder->Filter(coder->p, p->outBuf, processed);
648
615
  if (wasFinished || (destFinish && p->outWritten == destLenOrig))
649
616
  processed = p->outWritten;
650
- PRF_STR_INT("filter", i)
617
+ PRF_STR_INT("filter", i);
651
618
  }
652
619
  *destLen = processed;
653
620
  }
654
621
  return res;
655
622
  }
656
623
 
657
- PRF_STR("standard mix")
624
+ PRF_STR("standard mix");
658
625
 
659
626
  if (p->numCoders != 1)
660
627
  {
@@ -796,21 +763,21 @@ SRes Xz_ParseHeader(CXzStreamFlags *p, const Byte *buf)
796
763
 
797
764
  static BoolInt Xz_CheckFooter(CXzStreamFlags flags, UInt64 indexSize, const Byte *buf)
798
765
  {
799
- return indexSize == (((UInt64)GetUi32a(buf + 4) + 1) << 2)
800
- && GetUi32a(buf) == CrcCalc(buf + 4, 6)
801
- && flags == GetBe16a(buf + 8)
802
- && GetUi16a(buf + 10) == (XZ_FOOTER_SIG_0 | (XZ_FOOTER_SIG_1 << 8));
766
+ return indexSize == (((UInt64)GetUi32(buf + 4) + 1) << 2)
767
+ && GetUi32(buf) == CrcCalc(buf + 4, 6)
768
+ && flags == GetBe16(buf + 8)
769
+ && buf[10] == XZ_FOOTER_SIG_0
770
+ && buf[11] == XZ_FOOTER_SIG_1;
803
771
  }
804
772
 
805
773
  #define READ_VARINT_AND_CHECK(buf, pos, size, res) \
806
- { const unsigned s = Xz_ReadVarInt(buf + pos, size - pos, res); \
807
- if (s == 0) return SZ_ERROR_ARCHIVE; \
808
- pos += s; }
774
+ { unsigned s = Xz_ReadVarInt(buf + pos, size - pos, res); \
775
+ if (s == 0) return SZ_ERROR_ARCHIVE; pos += s; }
809
776
 
810
777
 
811
778
  static BoolInt XzBlock_AreSupportedFilters(const CXzBlock *p)
812
779
  {
813
- const unsigned numFilters = XzBlock_GetNumFilters(p) - 1;
780
+ unsigned numFilters = XzBlock_GetNumFilters(p) - 1;
814
781
  unsigned i;
815
782
  {
816
783
  const CXzFilter *f = &p->filters[numFilters];
@@ -826,7 +793,8 @@ static BoolInt XzBlock_AreSupportedFilters(const CXzBlock *p)
826
793
  if (f->propsSize != 1)
827
794
  return False;
828
795
  }
829
- else if (!XZ_IS_SUPPORTED_FILTER_ID(f->id)
796
+ else if (f->id < XZ_ID_Delta
797
+ || f->id > XZ_ID_SPARC
830
798
  || (f->propsSize != 0 && f->propsSize != 4))
831
799
  return False;
832
800
  }
@@ -851,24 +819,22 @@ SRes XzBlock_Parse(CXzBlock *p, const Byte *header)
851
819
  p->packSize = (UInt64)(Int64)-1;
852
820
  if (XzBlock_HasPackSize(p))
853
821
  {
854
- READ_VARINT_AND_CHECK(header, pos, headerSize, &p->packSize)
822
+ READ_VARINT_AND_CHECK(header, pos, headerSize, &p->packSize);
855
823
  if (p->packSize == 0 || p->packSize + headerSize >= (UInt64)1 << 63)
856
824
  return SZ_ERROR_ARCHIVE;
857
825
  }
858
826
 
859
827
  p->unpackSize = (UInt64)(Int64)-1;
860
828
  if (XzBlock_HasUnpackSize(p))
861
- {
862
- READ_VARINT_AND_CHECK(header, pos, headerSize, &p->unpackSize)
863
- }
829
+ READ_VARINT_AND_CHECK(header, pos, headerSize, &p->unpackSize);
864
830
 
865
831
  numFilters = XzBlock_GetNumFilters(p);
866
832
  for (i = 0; i < numFilters; i++)
867
833
  {
868
834
  CXzFilter *filter = p->filters + i;
869
835
  UInt64 size;
870
- READ_VARINT_AND_CHECK(header, pos, headerSize, &filter->id)
871
- READ_VARINT_AND_CHECK(header, pos, headerSize, &size)
836
+ READ_VARINT_AND_CHECK(header, pos, headerSize, &filter->id);
837
+ READ_VARINT_AND_CHECK(header, pos, headerSize, &size);
872
838
  if (size > headerSize - pos || size > XZ_FILTER_PROPS_SIZE_MAX)
873
839
  return SZ_ERROR_ARCHIVE;
874
840
  filter->propsSize = (UInt32)size;
@@ -926,20 +892,20 @@ static SRes XzDecMix_Init(CMixCoder *p, const CXzBlock *block, Byte *outBuf, siz
926
892
  MixCoder_Free(p);
927
893
  for (i = 0; i < numFilters; i++)
928
894
  {
929
- RINOK(MixCoder_SetFromMethod(p, i, block->filters[numFilters - 1 - i].id, outBuf, outBufSize))
895
+ RINOK(MixCoder_SetFromMethod(p, i, block->filters[numFilters - 1 - i].id, outBuf, outBufSize));
930
896
  }
931
897
  p->numCoders = numFilters;
932
898
  }
933
899
  else
934
900
  {
935
- RINOK(MixCoder_ResetFromMethod(p, 0, block->filters[numFilters - 1].id, outBuf, outBufSize))
901
+ RINOK(MixCoder_ResetFromMethod(p, 0, block->filters[numFilters - 1].id, outBuf, outBufSize));
936
902
  }
937
903
 
938
904
  for (i = 0; i < numFilters; i++)
939
905
  {
940
906
  const CXzFilter *f = &block->filters[numFilters - 1 - i];
941
907
  IStateCoder *sc = &p->coders[i];
942
- RINOK(sc->SetProps(sc->p, f->props, f->propsSize, p->alloc))
908
+ RINOK(sc->SetProps(sc->p, f->props, f->propsSize, p->alloc));
943
909
  }
944
910
 
945
911
  MixCoder_Init(p);
@@ -1033,7 +999,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1033
999
  SRes res;
1034
1000
 
1035
1001
  ECoderFinishMode finishMode2 = finishMode;
1036
- BoolInt srcFinished2 = (BoolInt)srcFinished;
1002
+ BoolInt srcFinished2 = srcFinished;
1037
1003
  BoolInt destFinish = False;
1038
1004
 
1039
1005
  if (p->block.packSize != (UInt64)(Int64)-1)
@@ -1072,7 +1038,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1072
1038
  (p->outBuf ? NULL : dest), &destLen2, destFinish,
1073
1039
  src, &srcLen2, srcFinished2,
1074
1040
  finishMode2);
1075
-
1041
+
1076
1042
  *status = p->decoder.status;
1077
1043
  XzCheck_Update(&p->check, (p->outBuf ? p->outBuf + p->outDataWritten : dest), destLen2);
1078
1044
  if (!p->outBuf)
@@ -1086,14 +1052,14 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1086
1052
  (*destLen) += destLen2;
1087
1053
  p->unpackSize += destLen2;
1088
1054
 
1089
- RINOK(res)
1055
+ RINOK(res);
1090
1056
 
1091
1057
  if (*status != CODER_STATUS_FINISHED_WITH_MARK)
1092
1058
  {
1093
1059
  if (p->block.packSize == p->packSize
1094
1060
  && *status == CODER_STATUS_NEEDS_MORE_INPUT)
1095
1061
  {
1096
- PRF_STR("CODER_STATUS_NEEDS_MORE_INPUT")
1062
+ PRF_STR("CODER_STATUS_NEEDS_MORE_INPUT");
1097
1063
  *status = CODER_STATUS_NOT_SPECIFIED;
1098
1064
  return SZ_ERROR_DATA;
1099
1065
  }
@@ -1110,7 +1076,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1110
1076
  if ((p->block.packSize != (UInt64)(Int64)-1 && p->block.packSize != p->packSize)
1111
1077
  || (p->block.unpackSize != (UInt64)(Int64)-1 && p->block.unpackSize != p->unpackSize))
1112
1078
  {
1113
- PRF_STR("ERROR: block.size mismatch")
1079
+ PRF_STR("ERROR: block.size mismatch");
1114
1080
  return SZ_ERROR_DATA;
1115
1081
  }
1116
1082
  }
@@ -1126,7 +1092,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1126
1092
  return SZ_OK;
1127
1093
  }
1128
1094
 
1129
- switch ((int)p->state)
1095
+ switch (p->state)
1130
1096
  {
1131
1097
  case XZ_STATE_STREAM_HEADER:
1132
1098
  {
@@ -1141,7 +1107,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1141
1107
  }
1142
1108
  else
1143
1109
  {
1144
- RINOK(Xz_ParseHeader(&p->streamFlags, p->buf))
1110
+ RINOK(Xz_ParseHeader(&p->streamFlags, p->buf));
1145
1111
  p->numStartedStreams++;
1146
1112
  p->indexSize = 0;
1147
1113
  p->numBlocks = 0;
@@ -1165,21 +1131,21 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1165
1131
  p->indexPreSize = 1 + Xz_WriteVarInt(p->buf + 1, p->numBlocks);
1166
1132
  p->indexPos = p->indexPreSize;
1167
1133
  p->indexSize += p->indexPreSize;
1168
- Sha256_Final(&p->sha, (Byte *)(void *)p->shaDigest32);
1134
+ Sha256_Final(&p->sha, p->shaDigest);
1169
1135
  Sha256_Init(&p->sha);
1170
1136
  p->crc = CrcUpdate(CRC_INIT_VAL, p->buf, p->indexPreSize);
1171
1137
  p->state = XZ_STATE_STREAM_INDEX;
1172
1138
  break;
1173
1139
  }
1174
- p->blockHeaderSize = ((unsigned)p->buf[0] << 2) + 4;
1140
+ p->blockHeaderSize = ((UInt32)p->buf[0] << 2) + 4;
1175
1141
  break;
1176
1142
  }
1177
1143
 
1178
1144
  if (p->pos != p->blockHeaderSize)
1179
1145
  {
1180
- unsigned cur = p->blockHeaderSize - p->pos;
1146
+ UInt32 cur = p->blockHeaderSize - p->pos;
1181
1147
  if (cur > srcRem)
1182
- cur = (unsigned)srcRem;
1148
+ cur = (UInt32)srcRem;
1183
1149
  memcpy(p->buf + p->pos, src, cur);
1184
1150
  p->pos += cur;
1185
1151
  (*srcLen) += cur;
@@ -1187,7 +1153,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1187
1153
  }
1188
1154
  else
1189
1155
  {
1190
- RINOK(XzBlock_Parse(&p->block, p->buf))
1156
+ RINOK(XzBlock_Parse(&p->block, p->buf));
1191
1157
  if (!XzBlock_AreSupportedFilters(&p->block))
1192
1158
  return SZ_ERROR_UNSUPPORTED;
1193
1159
  p->numTotalBlocks++;
@@ -1200,7 +1166,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1200
1166
  p->headerParsedOk = True;
1201
1167
  return SZ_OK;
1202
1168
  }
1203
- RINOK(XzDecMix_Init(&p->decoder, &p->block, p->outBuf, p->outBufSize))
1169
+ RINOK(XzDecMix_Init(&p->decoder, &p->block, p->outBuf, p->outBufSize));
1204
1170
  }
1205
1171
  break;
1206
1172
  }
@@ -1221,8 +1187,8 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1221
1187
  }
1222
1188
  else
1223
1189
  {
1224
- const unsigned checkSize = XzFlags_GetCheckSize(p->streamFlags);
1225
- unsigned cur = checkSize - p->pos;
1190
+ UInt32 checkSize = XzFlags_GetCheckSize(p->streamFlags);
1191
+ UInt32 cur = checkSize - p->pos;
1226
1192
  if (cur != 0)
1227
1193
  {
1228
1194
  if (srcRem == 0)
@@ -1231,7 +1197,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1231
1197
  return SZ_OK;
1232
1198
  }
1233
1199
  if (cur > srcRem)
1234
- cur = (unsigned)srcRem;
1200
+ cur = (UInt32)srcRem;
1235
1201
  memcpy(p->buf + p->pos, src, cur);
1236
1202
  p->pos += cur;
1237
1203
  (*srcLen) += cur;
@@ -1240,10 +1206,10 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1240
1206
  break;
1241
1207
  }
1242
1208
  {
1243
- UInt32 digest32[XZ_CHECK_SIZE_MAX / 4];
1209
+ Byte digest[XZ_CHECK_SIZE_MAX];
1244
1210
  p->state = XZ_STATE_BLOCK_HEADER;
1245
1211
  p->pos = 0;
1246
- if (XzCheck_Final(&p->check, (void *)digest32) && memcmp(digest32, p->buf, checkSize) != 0)
1212
+ if (XzCheck_Final(&p->check, digest) && memcmp(digest, p->buf, checkSize) != 0)
1247
1213
  return SZ_ERROR_CRC;
1248
1214
  if (p->decodeOnlyOneBlock)
1249
1215
  {
@@ -1288,12 +1254,12 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1288
1254
  }
1289
1255
  else
1290
1256
  {
1291
- UInt32 digest32[SHA256_DIGEST_SIZE / 4];
1257
+ Byte digest[SHA256_DIGEST_SIZE];
1292
1258
  p->state = XZ_STATE_STREAM_INDEX_CRC;
1293
1259
  p->indexSize += 4;
1294
1260
  p->pos = 0;
1295
- Sha256_Final(&p->sha, (void *)digest32);
1296
- if (memcmp(digest32, p->shaDigest32, SHA256_DIGEST_SIZE) != 0)
1261
+ Sha256_Final(&p->sha, digest);
1262
+ if (memcmp(digest, p->shaDigest, SHA256_DIGEST_SIZE) != 0)
1297
1263
  return SZ_ERROR_CRC;
1298
1264
  }
1299
1265
  }
@@ -1309,10 +1275,9 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1309
1275
  }
1310
1276
  else
1311
1277
  {
1312
- const Byte *ptr = p->buf;
1313
1278
  p->state = XZ_STATE_STREAM_FOOTER;
1314
1279
  p->pos = 0;
1315
- if (CRC_GET_DIGEST(p->crc) != GetUi32a(ptr))
1280
+ if (CRC_GET_DIGEST(p->crc) != GetUi32(p->buf))
1316
1281
  return SZ_ERROR_CRC;
1317
1282
  }
1318
1283
  break;
@@ -1320,9 +1285,9 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1320
1285
 
1321
1286
  case XZ_STATE_STREAM_FOOTER:
1322
1287
  {
1323
- unsigned cur = XZ_STREAM_FOOTER_SIZE - p->pos;
1288
+ UInt32 cur = XZ_STREAM_FOOTER_SIZE - p->pos;
1324
1289
  if (cur > srcRem)
1325
- cur = (unsigned)srcRem;
1290
+ cur = (UInt32)srcRem;
1326
1291
  memcpy(p->buf + p->pos, src, cur);
1327
1292
  p->pos += cur;
1328
1293
  (*srcLen) += cur;
@@ -1342,7 +1307,7 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1342
1307
  {
1343
1308
  if (*src != 0)
1344
1309
  {
1345
- if ((unsigned)p->padSize & 3)
1310
+ if (((UInt32)p->padSize & 3) != 0)
1346
1311
  return SZ_ERROR_NO_ARCHIVE;
1347
1312
  p->pos = 0;
1348
1313
  p->state = XZ_STATE_STREAM_HEADER;
@@ -1357,8 +1322,6 @@ SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
1357
1322
  }
1358
1323
 
1359
1324
  case XZ_STATE_BLOCK: break; /* to disable GCC warning */
1360
-
1361
- default: return SZ_ERROR_FAIL;
1362
1325
  }
1363
1326
  }
1364
1327
  /*
@@ -1423,7 +1386,7 @@ UInt64 XzUnpacker_GetExtraSize(const CXzUnpacker *p)
1423
1386
 
1424
1387
 
1425
1388
 
1426
- #ifndef Z7_ST
1389
+ #ifndef _7ZIP_ST
1427
1390
  #include "MtDec.h"
1428
1391
  #endif
1429
1392
 
@@ -1434,7 +1397,7 @@ void XzDecMtProps_Init(CXzDecMtProps *p)
1434
1397
  p->outStep_ST = 1 << 20;
1435
1398
  p->ignoreErrors = False;
1436
1399
 
1437
- #ifndef Z7_ST
1400
+ #ifndef _7ZIP_ST
1438
1401
  p->numThreads = 1;
1439
1402
  p->inBufSize_MT = 1 << 18;
1440
1403
  p->memUseMax = sizeof(size_t) << 28;
@@ -1443,7 +1406,7 @@ void XzDecMtProps_Init(CXzDecMtProps *p)
1443
1406
 
1444
1407
 
1445
1408
 
1446
- #ifndef Z7_ST
1409
+ #ifndef _7ZIP_ST
1447
1410
 
1448
1411
  /* ---------- CXzDecMtThread ---------- */
1449
1412
 
@@ -1482,7 +1445,7 @@ typedef struct
1482
1445
 
1483
1446
  /* ---------- CXzDecMt ---------- */
1484
1447
 
1485
- struct CXzDecMt
1448
+ typedef struct
1486
1449
  {
1487
1450
  CAlignOffsetAlloc alignOffsetAlloc;
1488
1451
  ISzAllocPtr allocMid;
@@ -1490,9 +1453,10 @@ struct CXzDecMt
1490
1453
  CXzDecMtProps props;
1491
1454
  size_t unpackBlockMaxSize;
1492
1455
 
1493
- ISeqInStreamPtr inStream;
1494
- ISeqOutStreamPtr outStream;
1495
- ICompressProgressPtr progress;
1456
+ ISeqInStream *inStream;
1457
+ ISeqOutStream *outStream;
1458
+ ICompressProgress *progress;
1459
+ // CXzStatInfo *stat;
1496
1460
 
1497
1461
  BoolInt finishMode;
1498
1462
  BoolInt outSize_Defined;
@@ -1515,7 +1479,7 @@ struct CXzDecMt
1515
1479
  ECoderStatus status;
1516
1480
  SRes codeRes;
1517
1481
 
1518
- #ifndef Z7_ST
1482
+ #ifndef _7ZIP_ST
1519
1483
  BoolInt mainDecoderWasCalled;
1520
1484
  // int statErrorDefined;
1521
1485
  int finishedDecoderIndex;
@@ -1528,9 +1492,8 @@ struct CXzDecMt
1528
1492
  UInt64 numBlocks;
1529
1493
 
1530
1494
  // UInt64 numBadBlocks;
1531
- SRes mainErrorCode; // it's set to error code, if the size Code() output doesn't patch the size from Parsing stage
1532
- // it can be = SZ_ERROR_INPUT_EOF
1533
- // it can be = SZ_ERROR_DATA, in some another cases
1495
+ SRes mainErrorCode;
1496
+
1534
1497
  BoolInt isBlockHeaderState_Parse;
1535
1498
  BoolInt isBlockHeaderState_Write;
1536
1499
  UInt64 outProcessed_Parse;
@@ -1538,9 +1501,10 @@ struct CXzDecMt
1538
1501
 
1539
1502
  BoolInt mtc_WasConstructed;
1540
1503
  CMtDec mtc;
1541
- CXzDecMtThread coders[MTDEC_THREADS_MAX];
1504
+ CXzDecMtThread coders[MTDEC__THREADS_MAX];
1542
1505
  #endif
1543
- };
1506
+
1507
+ } CXzDecMt;
1544
1508
 
1545
1509
 
1546
1510
 
@@ -1568,11 +1532,11 @@ CXzDecMtHandle XzDecMt_Create(ISzAllocPtr alloc, ISzAllocPtr allocMid)
1568
1532
 
1569
1533
  XzDecMtProps_Init(&p->props);
1570
1534
 
1571
- #ifndef Z7_ST
1535
+ #ifndef _7ZIP_ST
1572
1536
  p->mtc_WasConstructed = False;
1573
1537
  {
1574
1538
  unsigned i;
1575
- for (i = 0; i < MTDEC_THREADS_MAX; i++)
1539
+ for (i = 0; i < MTDEC__THREADS_MAX; i++)
1576
1540
  {
1577
1541
  CXzDecMtThread *coder = &p->coders[i];
1578
1542
  coder->dec_created = False;
@@ -1582,16 +1546,16 @@ CXzDecMtHandle XzDecMt_Create(ISzAllocPtr alloc, ISzAllocPtr allocMid)
1582
1546
  }
1583
1547
  #endif
1584
1548
 
1585
- return (CXzDecMtHandle)p;
1549
+ return p;
1586
1550
  }
1587
1551
 
1588
1552
 
1589
- #ifndef Z7_ST
1553
+ #ifndef _7ZIP_ST
1590
1554
 
1591
1555
  static void XzDecMt_FreeOutBufs(CXzDecMt *p)
1592
1556
  {
1593
1557
  unsigned i;
1594
- for (i = 0; i < MTDEC_THREADS_MAX; i++)
1558
+ for (i = 0; i < MTDEC__THREADS_MAX; i++)
1595
1559
  {
1596
1560
  CXzDecMtThread *coder = &p->coders[i];
1597
1561
  if (coder->outBuf)
@@ -1628,15 +1592,13 @@ static void XzDecMt_FreeSt(CXzDecMt *p)
1628
1592
  }
1629
1593
 
1630
1594
 
1631
- // #define GET_CXzDecMt_p CXzDecMt *p = pp;
1632
-
1633
- void XzDecMt_Destroy(CXzDecMtHandle p)
1595
+ void XzDecMt_Destroy(CXzDecMtHandle pp)
1634
1596
  {
1635
- // GET_CXzDecMt_p
1597
+ CXzDecMt *p = (CXzDecMt *)pp;
1636
1598
 
1637
1599
  XzDecMt_FreeSt(p);
1638
1600
 
1639
- #ifndef Z7_ST
1601
+ #ifndef _7ZIP_ST
1640
1602
 
1641
1603
  if (p->mtc_WasConstructed)
1642
1604
  {
@@ -1645,7 +1607,7 @@ void XzDecMt_Destroy(CXzDecMtHandle p)
1645
1607
  }
1646
1608
  {
1647
1609
  unsigned i;
1648
- for (i = 0; i < MTDEC_THREADS_MAX; i++)
1610
+ for (i = 0; i < MTDEC__THREADS_MAX; i++)
1649
1611
  {
1650
1612
  CXzDecMtThread *t = &p->coders[i];
1651
1613
  if (t->dec_created)
@@ -1660,12 +1622,12 @@ void XzDecMt_Destroy(CXzDecMtHandle p)
1660
1622
 
1661
1623
  #endif
1662
1624
 
1663
- ISzAlloc_Free(p->alignOffsetAlloc.baseAlloc, p);
1625
+ ISzAlloc_Free(p->alignOffsetAlloc.baseAlloc, pp);
1664
1626
  }
1665
1627
 
1666
1628
 
1667
1629
 
1668
- #ifndef Z7_ST
1630
+ #ifndef _7ZIP_ST
1669
1631
 
1670
1632
  static void XzDecMt_Callback_Parse(void *obj, unsigned coderIndex, CMtDecCallbackInfo *cc)
1671
1633
  {
@@ -1731,7 +1693,7 @@ static void XzDecMt_Callback_Parse(void *obj, unsigned coderIndex, CMtDecCallbac
1731
1693
  coder->dec.parseMode = True;
1732
1694
  coder->dec.headerParsedOk = False;
1733
1695
 
1734
- PRF_STR_INT("Parse", srcSize2)
1696
+ PRF_STR_INT("Parse", srcSize2);
1735
1697
 
1736
1698
  res = XzUnpacker_Code(&coder->dec,
1737
1699
  NULL, &destSize,
@@ -1774,10 +1736,10 @@ static void XzDecMt_Callback_Parse(void *obj, unsigned coderIndex, CMtDecCallbac
1774
1736
  }
1775
1737
  }
1776
1738
  {
1777
- const UInt64 packSize = block->packSize;
1778
- const UInt64 packSizeAligned = packSize + ((0 - (unsigned)packSize) & 3);
1779
- const unsigned checkSize = XzFlags_GetCheckSize(coder->dec.streamFlags);
1780
- const UInt64 blockPackSum = coder->inPreSize + packSizeAligned + checkSize;
1739
+ UInt64 packSize = block->packSize;
1740
+ UInt64 packSizeAligned = packSize + ((0 - (unsigned)packSize) & 3);
1741
+ UInt32 checkSize = XzFlags_GetCheckSize(coder->dec.streamFlags);
1742
+ UInt64 blockPackSum = coder->inPreSize + packSizeAligned + checkSize;
1781
1743
  // if (blockPackSum <= me->props.inBlockMax)
1782
1744
  // unpackBlockMaxSize
1783
1745
  {
@@ -1915,7 +1877,7 @@ static SRes XzDecMt_Callback_PreCode(void *pp, unsigned coderIndex)
1915
1877
  {
1916
1878
  // if (res == SZ_ERROR_MEM) return res;
1917
1879
  if (me->props.ignoreErrors && res != SZ_ERROR_MEM)
1918
- return SZ_OK;
1880
+ return S_OK;
1919
1881
  return res;
1920
1882
  }
1921
1883
  }
@@ -1936,18 +1898,15 @@ static SRes XzDecMt_Callback_Code(void *pp, unsigned coderIndex,
1936
1898
  *outCodePos = coder->outCodeSize;
1937
1899
  *stop = True;
1938
1900
 
1939
- if (srcSize > coder->inPreSize - coder->inCodeSize)
1940
- return SZ_ERROR_FAIL;
1941
-
1942
1901
  if (coder->inCodeSize < coder->inPreHeaderSize)
1943
1902
  {
1944
- size_t step = coder->inPreHeaderSize - coder->inCodeSize;
1945
- if (step > srcSize)
1946
- step = srcSize;
1903
+ UInt64 rem = coder->inPreHeaderSize - coder->inCodeSize;
1904
+ size_t step = srcSize;
1905
+ if (step > rem)
1906
+ step = (size_t)rem;
1947
1907
  src += step;
1948
1908
  srcSize -= step;
1949
1909
  coder->inCodeSize += step;
1950
- *inCodePos = coder->inCodeSize;
1951
1910
  if (coder->inCodeSize < coder->inPreHeaderSize)
1952
1911
  {
1953
1912
  *stop = False;
@@ -1997,7 +1956,7 @@ static SRes XzDecMt_Callback_Code(void *pp, unsigned coderIndex,
1997
1956
  {
1998
1957
  *inCodePos = coder->inPreSize;
1999
1958
  *outCodePos = coder->outPreSize;
2000
- return SZ_OK;
1959
+ return S_OK;
2001
1960
  }
2002
1961
  return coder->codeRes;
2003
1962
  }
@@ -2007,7 +1966,7 @@ static SRes XzDecMt_Callback_Code(void *pp, unsigned coderIndex,
2007
1966
 
2008
1967
  static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2009
1968
  BoolInt needWriteToStream,
2010
- const Byte *src, size_t srcSize, BoolInt isCross,
1969
+ const Byte *src, size_t srcSize,
2011
1970
  // int srcFinished,
2012
1971
  BoolInt *needContinue,
2013
1972
  BoolInt *canRecode)
@@ -2026,7 +1985,7 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2026
1985
  if (!coder->dec.headerParsedOk || !coder->outBuf)
2027
1986
  {
2028
1987
  if (me->finishedDecoderIndex < 0)
2029
- me->finishedDecoderIndex = (int)coderIndex;
1988
+ me->finishedDecoderIndex = coderIndex;
2030
1989
  return SZ_OK;
2031
1990
  }
2032
1991
 
@@ -2106,7 +2065,7 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2106
2065
  }
2107
2066
  data += cur;
2108
2067
  size -= cur;
2109
- // PRF_STR_INT("Written size =", size)
2068
+ // PRF_STR_INT("Written size =", size);
2110
2069
  if (size == 0)
2111
2070
  break;
2112
2071
  res = MtProgress_ProgressAdd(&me->mtc.mtProgress, 0, 0);
@@ -2118,16 +2077,16 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2118
2077
  if (coder->codeRes != SZ_OK)
2119
2078
  if (!me->props.ignoreErrors)
2120
2079
  {
2121
- me->finishedDecoderIndex = (int)coderIndex;
2080
+ me->finishedDecoderIndex = coderIndex;
2122
2081
  return res;
2123
2082
  }
2124
2083
 
2125
- RINOK(res)
2084
+ RINOK(res);
2126
2085
 
2127
2086
  if (coder->inPreSize != coder->inCodeSize
2128
2087
  || coder->blockPackTotal != coder->inCodeSize)
2129
2088
  {
2130
- me->finishedDecoderIndex = (int)coderIndex;
2089
+ me->finishedDecoderIndex = coderIndex;
2131
2090
  return SZ_OK;
2132
2091
  }
2133
2092
 
@@ -2141,13 +2100,13 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2141
2100
  // (coder->state == MTDEC_PARSE_END) means that there are no other working threads
2142
2101
  // so we can use mtc variables without lock
2143
2102
 
2144
- PRF_STR_INT("Write MTDEC_PARSE_END", me->mtc.inProcessed)
2103
+ PRF_STR_INT("Write MTDEC_PARSE_END", me->mtc.inProcessed);
2145
2104
 
2146
2105
  me->mtc.mtProgress.totalInSize = me->mtc.inProcessed;
2147
2106
  {
2148
2107
  CXzUnpacker *dec = &me->dec;
2149
2108
 
2150
- PRF_STR_INT("PostSingle", srcSize)
2109
+ PRF_STR_INT("PostSingle", srcSize);
2151
2110
 
2152
2111
  {
2153
2112
  size_t srcProcessed = srcSize;
@@ -2166,41 +2125,22 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2166
2125
  return SZ_OK;
2167
2126
  }
2168
2127
 
2169
- /*
2170
- We have processed all xz-blocks of stream,
2171
- And xz unpacker is at XZ_STATE_BLOCK_HEADER state, where
2172
- (src) is a pointer to xz-Index structure.
2173
- We finish reading of current xz-Stream, including Zero padding after xz-Stream.
2174
- We exit, if we reach extra byte (first byte of new-Stream or another data).
2175
- But we don't update input stream pointer for that new extra byte.
2176
- If extra byte is not correct first byte of xz-signature,
2177
- we have SZ_ERROR_NO_ARCHIVE error here.
2178
- */
2179
-
2180
2128
  res = XzUnpacker_Code(dec,
2181
2129
  NULL, &outSizeCur,
2182
2130
  src, &srcProcessed,
2183
2131
  me->mtc.readWasFinished, // srcFinished
2184
2132
  CODER_FINISH_END, // CODER_FINISH_ANY,
2185
2133
  &status);
2186
-
2187
- // res = SZ_ERROR_ARCHIVE; // for failure test
2188
2134
 
2189
2135
  me->status = status;
2190
2136
  me->codeRes = res;
2191
2137
 
2192
- if (isCross)
2193
- me->mtc.crossStart += srcProcessed;
2194
-
2195
2138
  me->mtc.inProcessed += srcProcessed;
2196
2139
  me->mtc.mtProgress.totalInSize = me->mtc.inProcessed;
2197
2140
 
2198
- srcSize -= srcProcessed;
2199
- src += srcProcessed;
2200
-
2201
2141
  if (res != SZ_OK)
2202
2142
  {
2203
- return SZ_OK;
2143
+ return S_OK;
2204
2144
  // return res;
2205
2145
  }
2206
2146
 
@@ -2209,26 +2149,20 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2209
2149
  *needContinue = True;
2210
2150
  me->isBlockHeaderState_Parse = False;
2211
2151
  me->isBlockHeaderState_Write = False;
2212
-
2213
- if (!isCross)
2214
2152
  {
2215
2153
  Byte *crossBuf = MtDec_GetCrossBuff(&me->mtc);
2216
2154
  if (!crossBuf)
2217
2155
  return SZ_ERROR_MEM;
2218
- if (srcSize != 0)
2219
- memcpy(crossBuf, src, srcSize);
2220
- me->mtc.crossStart = 0;
2221
- me->mtc.crossEnd = srcSize;
2156
+ memcpy(crossBuf, src + srcProcessed, srcSize - srcProcessed);
2222
2157
  }
2223
-
2224
- PRF_STR_INT("XZ_STATE_STREAM_HEADER crossEnd = ", (unsigned)me->mtc.crossEnd)
2225
-
2158
+ me->mtc.crossStart = 0;
2159
+ me->mtc.crossEnd = srcSize - srcProcessed;
2226
2160
  return SZ_OK;
2227
2161
  }
2228
2162
 
2229
- if (status != CODER_STATUS_NEEDS_MORE_INPUT || srcSize != 0)
2163
+ if (status != CODER_STATUS_NEEDS_MORE_INPUT)
2230
2164
  {
2231
- return SZ_ERROR_FAIL;
2165
+ return E_FAIL;
2232
2166
  }
2233
2167
 
2234
2168
  if (me->mtc.readWasFinished)
@@ -2240,7 +2174,7 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2240
2174
  {
2241
2175
  size_t inPos;
2242
2176
  size_t inLim;
2243
- // const Byte *inData;
2177
+ const Byte *inData;
2244
2178
  UInt64 inProgressPrev = me->mtc.inProcessed;
2245
2179
 
2246
2180
  // XzDecMt_Prepare_InBuf_ST(p);
@@ -2250,8 +2184,9 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2250
2184
 
2251
2185
  inPos = 0;
2252
2186
  inLim = 0;
2187
+ // outProcessed = 0;
2253
2188
 
2254
- // inData = crossBuf;
2189
+ inData = crossBuf;
2255
2190
 
2256
2191
  for (;;)
2257
2192
  {
@@ -2266,7 +2201,7 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2266
2201
  {
2267
2202
  inPos = 0;
2268
2203
  inLim = me->mtc.inBufSize;
2269
- me->mtc.readRes = ISeqInStream_Read(me->inStream, (void *)crossBuf, &inLim);
2204
+ me->mtc.readRes = ISeqInStream_Read(me->inStream, (void *)inData, &inLim);
2270
2205
  me->mtc.readProcessed += inLim;
2271
2206
  if (inLim == 0 || me->mtc.readRes != SZ_OK)
2272
2207
  me->mtc.readWasFinished = True;
@@ -2278,7 +2213,7 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2278
2213
 
2279
2214
  res = XzUnpacker_Code(dec,
2280
2215
  NULL, &outProcessed,
2281
- crossBuf + inPos, &inProcessed,
2216
+ inData + inPos, &inProcessed,
2282
2217
  (inProcessed == 0), // srcFinished
2283
2218
  CODER_FINISH_END, &status);
2284
2219
 
@@ -2290,7 +2225,7 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2290
2225
 
2291
2226
  if (res != SZ_OK)
2292
2227
  {
2293
- return SZ_OK;
2228
+ return S_OK;
2294
2229
  // return res;
2295
2230
  }
2296
2231
 
@@ -2305,14 +2240,14 @@ static SRes XzDecMt_Callback_Write(void *pp, unsigned coderIndex,
2305
2240
  }
2306
2241
 
2307
2242
  if (status != CODER_STATUS_NEEDS_MORE_INPUT)
2308
- return SZ_ERROR_FAIL;
2243
+ return E_FAIL;
2309
2244
 
2310
2245
  if (me->mtc.progress)
2311
2246
  {
2312
2247
  UInt64 inDelta = me->mtc.inProcessed - inProgressPrev;
2313
2248
  if (inDelta >= (1 << 22))
2314
2249
  {
2315
- RINOK(MtProgress_Progress_ST(&me->mtc.mtProgress))
2250
+ RINOK(MtProgress_Progress_ST(&me->mtc.mtProgress));
2316
2251
  inProgressPrev = me->mtc.inProcessed;
2317
2252
  }
2318
2253
  }
@@ -2341,6 +2276,13 @@ void XzStatInfo_Clear(CXzStatInfo *p)
2341
2276
  p->NumStreams_Defined = False;
2342
2277
  p->NumBlocks_Defined = False;
2343
2278
 
2279
+ // p->IsArc = False;
2280
+ // p->UnexpectedEnd = False;
2281
+ // p->Unsupported = False;
2282
+ // p->HeadersError = False;
2283
+ // p->DataError = False;
2284
+ // p->CrcError = False;
2285
+
2344
2286
  p->DataAfterEnd = False;
2345
2287
  p->DecodingTruncated = False;
2346
2288
 
@@ -2354,19 +2296,9 @@ void XzStatInfo_Clear(CXzStatInfo *p)
2354
2296
 
2355
2297
 
2356
2298
 
2357
- /*
2358
- XzDecMt_Decode_ST() can return SZ_OK or the following errors
2359
- - SZ_ERROR_MEM for memory allocation error
2360
- - error from XzUnpacker_Code() function
2361
- - SZ_ERROR_WRITE for ISeqOutStream::Write(). stat->CombinedRes_Type = SZ_ERROR_WRITE in that case
2362
- - ICompressProgress::Progress() error, stat->CombinedRes_Type = SZ_ERROR_PROGRESS.
2363
- But XzDecMt_Decode_ST() doesn't return ISeqInStream::Read() errors.
2364
- ISeqInStream::Read() result is set to p->readRes.
2365
- also it can set stat->CombinedRes_Type to SZ_ERROR_WRITE or SZ_ERROR_PROGRESS.
2366
- */
2367
2299
 
2368
2300
  static SRes XzDecMt_Decode_ST(CXzDecMt *p
2369
- #ifndef Z7_ST
2301
+ #ifndef _7ZIP_ST
2370
2302
  , BoolInt tMode
2371
2303
  #endif
2372
2304
  , CXzStatInfo *stat)
@@ -2378,11 +2310,11 @@ static SRes XzDecMt_Decode_ST(CXzDecMt *p
2378
2310
 
2379
2311
  CXzUnpacker *dec;
2380
2312
 
2381
- #ifndef Z7_ST
2313
+ #ifndef _7ZIP_ST
2382
2314
  if (tMode)
2383
2315
  {
2384
2316
  XzDecMt_FreeOutBufs(p);
2385
- tMode = (BoolInt)MtDec_PrepareRead(&p->mtc);
2317
+ tMode = MtDec_PrepareRead(&p->mtc);
2386
2318
  }
2387
2319
  #endif
2388
2320
 
@@ -2435,7 +2367,7 @@ static SRes XzDecMt_Decode_ST(CXzDecMt *p
2435
2367
 
2436
2368
  if (inPos == inLim)
2437
2369
  {
2438
- #ifndef Z7_ST
2370
+ #ifndef _7ZIP_ST
2439
2371
  if (tMode)
2440
2372
  {
2441
2373
  inData = MtDec_Read(&p->mtc, &inLim);
@@ -2452,7 +2384,7 @@ static SRes XzDecMt_Decode_ST(CXzDecMt *p
2452
2384
  inPos = 0;
2453
2385
  inLim = p->inBufSize;
2454
2386
  inData = p->inBuf;
2455
- p->readRes = ISeqInStream_Read(p->inStream, (void *)p->inBuf, &inLim);
2387
+ p->readRes = ISeqInStream_Read(p->inStream, (void *)inData, &inLim);
2456
2388
  p->readProcessed += inLim;
2457
2389
  if (inLim == 0 || p->readRes != SZ_OK)
2458
2390
  p->readWasFinished = True;
@@ -2494,8 +2426,8 @@ static SRes XzDecMt_Decode_ST(CXzDecMt *p
2494
2426
  if (finished || outProcessed >= outSize)
2495
2427
  if (outPos != 0)
2496
2428
  {
2497
- const size_t written = ISeqOutStream_Write(p->outStream, p->outBuf, outPos);
2498
- // p->outProcessed += written; // 21.01: BUG fixed
2429
+ size_t written = ISeqOutStream_Write(p->outStream, p->outBuf, outPos);
2430
+ p->outProcessed += written;
2499
2431
  if (written != outPos)
2500
2432
  {
2501
2433
  stat->CombinedRes_Type = SZ_ERROR_WRITE;
@@ -2506,8 +2438,9 @@ static SRes XzDecMt_Decode_ST(CXzDecMt *p
2506
2438
 
2507
2439
  if (p->progress && res == SZ_OK)
2508
2440
  {
2509
- if (p->inProcessed - inPrev >= (1 << 22) ||
2510
- p->outProcessed - outPrev >= (1 << 22))
2441
+ UInt64 inDelta = p->inProcessed - inPrev;
2442
+ UInt64 outDelta = p->outProcessed - outPrev;
2443
+ if (inDelta >= (1 << 22) || outDelta >= (1 << 22))
2511
2444
  {
2512
2445
  res = ICompressProgress_Progress(p->progress, p->inProcessed, p->outProcessed);
2513
2446
  if (res != SZ_OK)
@@ -2522,31 +2455,14 @@ static SRes XzDecMt_Decode_ST(CXzDecMt *p
2522
2455
  }
2523
2456
 
2524
2457
  if (finished)
2525
- {
2526
- // p->codeRes is preliminary error from XzUnpacker_Code.
2527
- // and it can be corrected later as final result
2528
- // so we return SZ_OK here instead of (res);
2529
- return SZ_OK;
2530
- // return res;
2531
- }
2458
+ return res;
2532
2459
  }
2533
2460
  }
2534
2461
 
2535
-
2536
-
2537
- /*
2538
- XzStatInfo_SetStat() transforms
2539
- CXzUnpacker return code and status to combined CXzStatInfo results.
2540
- it can convert SZ_OK to SZ_ERROR_INPUT_EOF
2541
- it can convert SZ_ERROR_NO_ARCHIVE to SZ_OK and (DataAfterEnd = 1)
2542
- */
2543
-
2544
- static void XzStatInfo_SetStat(const CXzUnpacker *dec,
2462
+ static SRes XzStatInfo_SetStat(const CXzUnpacker *dec,
2545
2463
  int finishMode,
2546
- // UInt64 readProcessed,
2547
- UInt64 inProcessed,
2548
- SRes res, // it's result from CXzUnpacker unpacker
2549
- ECoderStatus status,
2464
+ UInt64 readProcessed, UInt64 inProcessed,
2465
+ SRes res, ECoderStatus status,
2550
2466
  BoolInt decodingTruncated,
2551
2467
  CXzStatInfo *stat)
2552
2468
  {
@@ -2568,20 +2484,12 @@ static void XzStatInfo_SetStat(const CXzUnpacker *dec,
2568
2484
  if (status == CODER_STATUS_NEEDS_MORE_INPUT)
2569
2485
  {
2570
2486
  // CODER_STATUS_NEEDS_MORE_INPUT is expected status for correct xz streams
2571
- // any extra data is part of correct data
2572
2487
  extraSize = 0;
2573
- // if xz stream was not finished, then we need more data
2574
2488
  if (!XzUnpacker_IsStreamWasFinished(dec))
2575
2489
  res = SZ_ERROR_INPUT_EOF;
2576
2490
  }
2577
- else
2578
- {
2579
- // CODER_STATUS_FINISHED_WITH_MARK is not possible for multi stream xz decoding
2580
- // so he we have (status == CODER_STATUS_NOT_FINISHED)
2581
- // if (status != CODER_STATUS_FINISHED_WITH_MARK)
2582
- if (!decodingTruncated || finishMode)
2583
- res = SZ_ERROR_DATA;
2584
- }
2491
+ else if (!decodingTruncated || finishMode) // (status == CODER_STATUS_NOT_FINISHED)
2492
+ res = SZ_ERROR_DATA;
2585
2493
  }
2586
2494
  else if (res == SZ_ERROR_NO_ARCHIVE)
2587
2495
  {
@@ -2589,42 +2497,37 @@ static void XzStatInfo_SetStat(const CXzUnpacker *dec,
2589
2497
  SZ_ERROR_NO_ARCHIVE is possible for 2 states:
2590
2498
  XZ_STATE_STREAM_HEADER - if bad signature or bad CRC
2591
2499
  XZ_STATE_STREAM_PADDING - if non-zero padding data
2592
- extraSize and inProcessed don't include "bad" byte
2500
+ extraSize / inProcessed don't include "bad" byte
2593
2501
  */
2594
- // if (inProcessed == extraSize), there was no any good xz stream header, and we keep error
2595
- if (inProcessed != extraSize) // if there were good xz streams before error
2596
- {
2597
- // if (extraSize != 0 || readProcessed != inProcessed)
2502
+ if (inProcessed != extraSize) // if good streams before error
2503
+ if (extraSize != 0 || readProcessed != inProcessed)
2598
2504
  {
2599
- // he we suppose that all xz streams were finsihed OK, and we have
2600
- // some extra data after all streams
2601
2505
  stat->DataAfterEnd = True;
2506
+ // there is some good xz stream before. So we set SZ_OK
2602
2507
  res = SZ_OK;
2603
2508
  }
2604
- }
2605
2509
  }
2606
2510
 
2607
- if (stat->DecodeRes == SZ_OK)
2608
- stat->DecodeRes = res;
2511
+ stat->DecodeRes = res;
2609
2512
 
2610
2513
  stat->InSize -= extraSize;
2514
+ return res;
2611
2515
  }
2612
2516
 
2613
2517
 
2614
-
2615
- SRes XzDecMt_Decode(CXzDecMtHandle p,
2518
+ SRes XzDecMt_Decode(CXzDecMtHandle pp,
2616
2519
  const CXzDecMtProps *props,
2617
2520
  const UInt64 *outDataSize, int finishMode,
2618
- ISeqOutStreamPtr outStream,
2521
+ ISeqOutStream *outStream,
2619
2522
  // Byte *outBuf, size_t *outBufSize,
2620
- ISeqInStreamPtr inStream,
2523
+ ISeqInStream *inStream,
2621
2524
  // const Byte *inData, size_t inDataSize,
2622
2525
  CXzStatInfo *stat,
2623
2526
  int *isMT,
2624
- ICompressProgressPtr progress)
2527
+ ICompressProgress *progress)
2625
2528
  {
2626
- // GET_CXzDecMt_p
2627
- #ifndef Z7_ST
2529
+ CXzDecMt *p = (CXzDecMt *)pp;
2530
+ #ifndef _7ZIP_ST
2628
2531
  BoolInt tMode;
2629
2532
  #endif
2630
2533
 
@@ -2645,7 +2548,7 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2645
2548
  p->outSize = *outDataSize;
2646
2549
  }
2647
2550
 
2648
- p->finishMode = (BoolInt)finishMode;
2551
+ p->finishMode = finishMode;
2649
2552
 
2650
2553
  // p->outSize = 457; p->outSize_Defined = True; p->finishMode = False; // for test
2651
2554
 
@@ -2654,9 +2557,8 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2654
2557
  p->inProcessed = 0;
2655
2558
  p->readProcessed = 0;
2656
2559
  p->readWasFinished = False;
2657
- p->readRes = SZ_OK;
2658
2560
 
2659
- p->codeRes = SZ_OK;
2561
+ p->codeRes = 0;
2660
2562
  p->status = CODER_STATUS_NOT_SPECIFIED;
2661
2563
 
2662
2564
  XzUnpacker_Init(&p->dec);
@@ -2675,7 +2577,7 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2675
2577
  */
2676
2578
 
2677
2579
 
2678
- #ifndef Z7_ST
2580
+ #ifndef _7ZIP_ST
2679
2581
 
2680
2582
  p->isBlockHeaderState_Parse = False;
2681
2583
  p->isBlockHeaderState_Write = False;
@@ -2687,9 +2589,8 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2687
2589
 
2688
2590
  if (p->props.numThreads > 1)
2689
2591
  {
2690
- IMtDecCallback2 vt;
2691
- BoolInt needContinue;
2692
- SRes res;
2592
+ IMtDecCallback vt;
2593
+
2693
2594
  // we just free ST buffers here
2694
2595
  // but we still keep state variables, that was set in XzUnpacker_Init()
2695
2596
  XzDecMt_FreeSt(p);
@@ -2727,45 +2628,45 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2727
2628
  vt.Code = XzDecMt_Callback_Code;
2728
2629
  vt.Write = XzDecMt_Callback_Write;
2729
2630
 
2631
+ {
2632
+ BoolInt needContinue;
2633
+
2634
+ SRes res = MtDec_Code(&p->mtc);
2635
+
2636
+ stat->InSize = p->mtc.inProcessed;
2730
2637
 
2731
- res = MtDec_Code(&p->mtc);
2638
+ p->inProcessed = p->mtc.inProcessed;
2639
+ p->readRes = p->mtc.readRes;
2640
+ p->readWasFinished = p->mtc.readWasFinished;
2641
+ p->readProcessed = p->mtc.readProcessed;
2732
2642
 
2643
+ tMode = True;
2644
+ needContinue = False;
2733
2645
 
2734
- stat->InSize = p->mtc.inProcessed;
2735
-
2736
- p->inProcessed = p->mtc.inProcessed;
2737
- p->readRes = p->mtc.readRes;
2738
- p->readWasFinished = p->mtc.readWasFinished;
2739
- p->readProcessed = p->mtc.readProcessed;
2740
-
2741
- tMode = True;
2742
- needContinue = False;
2743
-
2744
- if (res == SZ_OK)
2745
- {
2746
- if (p->mtc.mtProgress.res != SZ_OK)
2646
+ if (res == SZ_OK)
2747
2647
  {
2748
- res = p->mtc.mtProgress.res;
2749
- stat->ProgressRes = res;
2750
- stat->CombinedRes_Type = SZ_ERROR_PROGRESS;
2648
+ if (p->mtc.mtProgress.res != SZ_OK)
2649
+ {
2650
+ res = p->mtc.mtProgress.res;
2651
+ stat->ProgressRes = res;
2652
+ stat->CombinedRes_Type = SZ_ERROR_PROGRESS;
2653
+ }
2654
+ else
2655
+ needContinue = p->mtc.needContinue;
2751
2656
  }
2752
- else
2753
- needContinue = p->mtc.needContinue;
2754
- }
2755
-
2756
- if (!needContinue)
2757
- {
2657
+
2658
+ if (!needContinue)
2758
2659
  {
2759
2660
  SRes codeRes;
2760
2661
  BoolInt truncated = False;
2761
2662
  ECoderStatus status;
2762
- const CXzUnpacker *dec;
2663
+ CXzUnpacker *dec;
2763
2664
 
2764
2665
  stat->OutSize = p->outProcessed;
2765
2666
 
2766
2667
  if (p->finishedDecoderIndex >= 0)
2767
2668
  {
2768
- const CXzDecMtThread *coder = &p->coders[(unsigned)p->finishedDecoderIndex];
2669
+ CXzDecMtThread *coder = &p->coders[(unsigned)p->finishedDecoderIndex];
2769
2670
  codeRes = coder->codeRes;
2770
2671
  dec = &coder->dec;
2771
2672
  status = coder->status;
@@ -2778,46 +2679,41 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2778
2679
  truncated = p->parsing_Truncated;
2779
2680
  }
2780
2681
  else
2781
- return SZ_ERROR_FAIL;
2782
-
2783
- if (p->mainErrorCode != SZ_OK)
2784
- stat->DecodeRes = p->mainErrorCode;
2682
+ return E_FAIL;
2785
2683
 
2786
2684
  XzStatInfo_SetStat(dec, p->finishMode,
2787
- // p->mtc.readProcessed,
2788
- p->mtc.inProcessed,
2685
+ p->mtc.readProcessed, p->mtc.inProcessed,
2789
2686
  codeRes, status,
2790
2687
  truncated,
2791
2688
  stat);
2792
- }
2793
-
2794
- if (res == SZ_OK)
2795
- {
2796
- stat->ReadRes = p->mtc.readRes;
2797
2689
 
2798
- if (p->writeRes != SZ_OK)
2799
- {
2800
- res = p->writeRes;
2801
- stat->CombinedRes_Type = SZ_ERROR_WRITE;
2802
- }
2803
- else if (p->mtc.readRes != SZ_OK
2804
- // && p->mtc.inProcessed == p->mtc.readProcessed
2805
- && stat->DecodeRes == SZ_ERROR_INPUT_EOF)
2690
+ if (res == SZ_OK)
2806
2691
  {
2807
- res = p->mtc.readRes;
2808
- stat->CombinedRes_Type = SZ_ERROR_READ;
2692
+ if (p->writeRes != SZ_OK)
2693
+ {
2694
+ res = p->writeRes;
2695
+ stat->CombinedRes_Type = SZ_ERROR_WRITE;
2696
+ }
2697
+ else if (p->mtc.readRes != SZ_OK && p->mtc.inProcessed == p->mtc.readProcessed)
2698
+ {
2699
+ res = p->mtc.readRes;
2700
+ stat->ReadRes = res;
2701
+ stat->CombinedRes_Type = SZ_ERROR_READ;
2702
+ }
2703
+ else if (p->mainErrorCode != SZ_OK)
2704
+ {
2705
+ res = p->mainErrorCode;
2706
+ }
2809
2707
  }
2810
- else if (stat->DecodeRes != SZ_OK)
2811
- res = stat->DecodeRes;
2708
+
2709
+ stat->CombinedRes = res;
2710
+ if (stat->CombinedRes_Type == SZ_OK)
2711
+ stat->CombinedRes_Type = res;
2712
+ return res;
2812
2713
  }
2813
-
2814
- stat->CombinedRes = res;
2815
- if (stat->CombinedRes_Type == SZ_OK)
2816
- stat->CombinedRes_Type = res;
2817
- return res;
2818
- }
2819
2714
 
2820
- PRF_STR("----- decoding ST -----")
2715
+ PRF_STR("----- decoding ST -----");
2716
+ }
2821
2717
  }
2822
2718
 
2823
2719
  #endif
@@ -2827,41 +2723,39 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2827
2723
 
2828
2724
  {
2829
2725
  SRes res = XzDecMt_Decode_ST(p
2830
- #ifndef Z7_ST
2726
+ #ifndef _7ZIP_ST
2831
2727
  , tMode
2832
2728
  #endif
2833
2729
  , stat
2834
2730
  );
2835
2731
 
2836
- #ifndef Z7_ST
2837
- // we must set error code from MT decoding at first
2838
- if (p->mainErrorCode != SZ_OK)
2839
- stat->DecodeRes = p->mainErrorCode;
2840
- #endif
2841
-
2842
2732
  XzStatInfo_SetStat(&p->dec,
2843
2733
  p->finishMode,
2844
- // p->readProcessed,
2845
- p->inProcessed,
2734
+ p->readProcessed, p->inProcessed,
2846
2735
  p->codeRes, p->status,
2847
2736
  False, // truncated
2848
2737
  stat);
2849
2738
 
2850
- stat->ReadRes = p->readRes;
2851
-
2852
2739
  if (res == SZ_OK)
2853
2740
  {
2854
- if (p->readRes != SZ_OK
2855
- // && p->inProcessed == p->readProcessed
2856
- && stat->DecodeRes == SZ_ERROR_INPUT_EOF)
2741
+ /*
2742
+ if (p->writeRes != SZ_OK)
2743
+ {
2744
+ res = p->writeRes;
2745
+ stat->CombinedRes_Type = SZ_ERROR_WRITE;
2746
+ }
2747
+ else
2748
+ */
2749
+ if (p->readRes != SZ_OK && p->inProcessed == p->readProcessed)
2857
2750
  {
2858
- // we set read error as combined error, only if that error was the reason
2859
- // of decoding problem
2860
2751
  res = p->readRes;
2752
+ stat->ReadRes = res;
2861
2753
  stat->CombinedRes_Type = SZ_ERROR_READ;
2862
2754
  }
2863
- else if (stat->DecodeRes != SZ_OK)
2864
- res = stat->DecodeRes;
2755
+ #ifndef _7ZIP_ST
2756
+ else if (p->mainErrorCode != SZ_OK)
2757
+ res = p->mainErrorCode;
2758
+ #endif
2865
2759
  }
2866
2760
 
2867
2761
  stat->CombinedRes = res;
@@ -2870,7 +2764,3 @@ SRes XzDecMt_Decode(CXzDecMtHandle p,
2870
2764
  return res;
2871
2765
  }
2872
2766
  }
2873
-
2874
- #undef PRF
2875
- #undef PRF_STR
2876
- #undef PRF_STR_INT_2