1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 12:11:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

hpatch head code to C

This commit is contained in:
sisong
2021-04-09 19:57:56 +08:00
parent 116d9959c2
commit f8fec9b5f0
2 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,9 @@
#define HDIFFPATCH_PATCH_H #define HDIFFPATCH_PATCH_H
# include <stdint.h> //for uint8_t # include <stdint.h> //for uint8_t
#include "HDiffPatch/libHDiffPatch/HPatch/patch_types.h" //for hpatch_singleCompressedDiffInfo #include "HDiffPatch/libHDiffPatch/HPatch/patch_types.h" //for hpatch_singleCompressedDiffInfo
#ifdef __cplusplus
extern "C" {
#endif
//result //result
enum { enum {
@@ -35,4 +38,7 @@ int hpatch_by_mem(const uint8_t* old,size_t oldsize, uint8_t* newBuf,size_t news
const uint8_t* pat,size_t patsize,const hpatch_singleCompressedDiffInfo* patInfo); const uint8_t* pat,size_t patsize,const hpatch_singleCompressedDiffInfo* patInfo);
int hpatch_by_file(const char* oldfile, const char* newfile, const char* patchfile); int hpatch_by_file(const char* oldfile, const char* newfile, const char* patchfile);
#ifdef __cplusplus
}
#endif
#endif //HDIFFPATCH_PATCH_H #endif //HDIFFPATCH_PATCH_H

View File

@@ -1,5 +1,5 @@
// //
// BSDiff.m // HDiffPatch.m
// RCTPushy // RCTPushy
// //
// Created by HouSisong, All rights reserved. // Created by HouSisong, All rights reserved.