history.h (413B)
1#ifndef HISTORY_H 2#define HISTORY_H 3 4struct blob; 5 6enum op_type { 7 REPLACE, 8 INSERT, 9 DELETE, 10}; 11 12struct diff; 13 14void history_init(struct diff **history); 15void history_free(struct diff **history); 16void history_save(struct diff **history, enum op_type type, struct blob *blob, size_t pos, size_t len); 17bool history_step(struct diff **history, struct blob *blob, struct diff **target, size_t *pos); 18 19#endif