mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 12:11:39 +08:00
hpatch head code to C
This commit is contained in:
@@ -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
|
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// BSDiff.m
|
// HDiffPatch.m
|
||||||
// RCTPushy
|
// RCTPushy
|
||||||
//
|
//
|
||||||
// Created by HouSisong, All rights reserved.
|
// Created by HouSisong, All rights reserved.
|
||||||
|
Reference in New Issue
Block a user