fix(utilities): made save diff accept a changes struct to count deletions and insertions
This commit is contained in:
parent
550b47d568
commit
8831b267e5
2 changed files with 21 additions and 9 deletions
|
|
@ -38,6 +38,11 @@ typedef struct {
|
|||
typedef List StringBuffer;
|
||||
typedef List FileInfoBuffer;
|
||||
|
||||
typedef struct {
|
||||
uint32_t insertions;
|
||||
uint32_t deletions;
|
||||
} Changes;
|
||||
|
||||
List* list_new(size_t);
|
||||
int list_push(List*, void*);
|
||||
int list_remove(List*, const void*, int (*compare)(const void*, const void*));
|
||||
|
|
@ -64,9 +69,9 @@ PathType get_path_type(const char*);
|
|||
char* get_file_content(char*);
|
||||
char* get_file_content_with_size(char*, size_t*);
|
||||
int create_default_config_file(char*);
|
||||
int save_diff(ActionList*, char*, char*, size_t, char*, File*, int, char*);
|
||||
int save_diff(ActionList*, char*, char*, size_t, char*, File*, int);
|
||||
int read_diff(char*, char*, size_t, char*, ActionList*);
|
||||
int save_file_diff(char*, char*, size_t, char*, char*);
|
||||
int save_file_diff(char*, char*, size_t, char*, Changes*);
|
||||
File* apply_diff(File*, ActionList*);
|
||||
void sort_action_list(ActionList*);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue