Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

处理vc编译c代码问题 #62

Merged
merged 1 commit into from
Mar 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
处理vc编译c代码问题
  • Loading branch information
sisong committed Mar 21, 2018
commit 2f56bd9899ffbb1a4f03d82bc92f6becab50331c
18 changes: 11 additions & 7 deletions libHDiffPatch/HPatch/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1821,11 +1821,13 @@ hpatch_BOOL patch_decompress_repeat_out(const hpatch_TStreamOutput* repeat_out_n

hpatch_BOOL hpatch_coverList_open_serializedDiff(hpatch_TCoverList* out_coverList,
const hpatch_TStreamInput* serializedDiff){
assert((out_coverList!=0)&&(out_coverList->ICovers==0));
TByte* temp_cache=out_coverList->_buf;
TByte* temp_cache_end=temp_cache+sizeof(out_coverList->_buf);
TByte* temp_cache;
TByte* temp_cache_end;
_TPackedCovers* packedCovers=0;
_THDiffHead diffHead;
assert((out_coverList!=0)&&(out_coverList->ICovers==0));
temp_cache=out_coverList->_buf;
temp_cache_end=temp_cache+sizeof(out_coverList->_buf);
if (!_packedCovers_open(&packedCovers,&diffHead,serializedDiff,
temp_cache,temp_cache_end))
return _hpatch_FALSE;
Expand All @@ -1836,11 +1838,13 @@ hpatch_BOOL hpatch_coverList_open_serializedDiff(hpatch_TCoverList* out_coverLis
hpatch_BOOL hpatch_coverList_open_compressedDiff(hpatch_TCoverList* out_coverList,
const hpatch_TStreamInput* compressedDiff,
hpatch_TDecompress* decompressPlugin){
assert((out_coverList!=0)&&(out_coverList->ICovers==0));
TByte* temp_cache=out_coverList->_buf;
TByte* temp_cache_end=temp_cache+sizeof(out_coverList->_buf);
hpatch_compressedDiffInfo diffInfo;
TByte* temp_cache;
TByte* temp_cache_end;
_TCompressedCovers* compressedCovers=0;
hpatch_compressedDiffInfo diffInfo;
assert((out_coverList!=0)&&(out_coverList->ICovers==0));
temp_cache=out_coverList->_buf;
temp_cache_end=temp_cache+sizeof(out_coverList->_buf);
if (!_compressedCovers_open(&compressedCovers,&diffInfo,compressedDiff,decompressPlugin,
temp_cache,temp_cache_end))
return _hpatch_FALSE;
Expand Down