mirror of
https://github.com/facebook/sapling.git
synced 2024-10-16 11:52:02 +03:00
31bcfbe58e
Summary: They're actively fighting against the clang-format config and don't have an auto-fix. Reviewed By: quark-zju Differential Revision: D8283622 fbshipit-source-id: 2de45f50e6370a5ed14915c6ff23dc843ff14e8a
28 lines
478 B
C
28 lines
478 B
C
#ifndef _HG_BDIFF_H_
|
|
#define _HG_BDIFF_H_
|
|
|
|
#include "compat.h"
|
|
|
|
struct bdiff_line {
|
|
int hash, n, e;
|
|
ssize_t len;
|
|
const char* l;
|
|
};
|
|
|
|
struct bdiff_hunk;
|
|
struct bdiff_hunk {
|
|
int a1, a2, b1, b2;
|
|
struct bdiff_hunk* next;
|
|
};
|
|
|
|
int bdiff_splitlines(const char* a, ssize_t len, struct bdiff_line** lr);
|
|
int bdiff_diff(
|
|
struct bdiff_line* a,
|
|
int an,
|
|
struct bdiff_line* b,
|
|
int bn,
|
|
struct bdiff_hunk* base);
|
|
void bdiff_freehunks(struct bdiff_hunk* l);
|
|
|
|
#endif
|