##// END OF EJS Templates
bdiff: include compat.h in header to define ssize_t...
Yuya Nishihara -
r34653:174d115d default
parent child Browse files
Show More
@@ -1,21 +1,23 b''
1 1 #ifndef _HG_BDIFF_H_
2 2 #define _HG_BDIFF_H_
3 3
4 #include "compat.h"
5
4 6 struct bdiff_line {
5 7 int hash, n, e;
6 8 ssize_t len;
7 9 const char *l;
8 10 };
9 11
10 12 struct bdiff_hunk;
11 13 struct bdiff_hunk {
12 14 int a1, a2, b1, b2;
13 15 struct bdiff_hunk *next;
14 16 };
15 17
16 18 int bdiff_splitlines(const char *a, ssize_t len, struct bdiff_line **lr);
17 19 int bdiff_diff(struct bdiff_line *a, int an, struct bdiff_line *b, int bn,
18 20 struct bdiff_hunk *base);
19 21 void bdiff_freehunks(struct bdiff_hunk *l);
20 22
21 23 #endif
General Comments 0
You need to be logged in to leave comments. Login now