##// 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 #ifndef _HG_BDIFF_H_
1 #ifndef _HG_BDIFF_H_
2 #define _HG_BDIFF_H_
2 #define _HG_BDIFF_H_
3
3
4 #include "compat.h"
5
4 struct bdiff_line {
6 struct bdiff_line {
5 int hash, n, e;
7 int hash, n, e;
6 ssize_t len;
8 ssize_t len;
7 const char *l;
9 const char *l;
8 };
10 };
9
11
10 struct bdiff_hunk;
12 struct bdiff_hunk;
11 struct bdiff_hunk {
13 struct bdiff_hunk {
12 int a1, a2, b1, b2;
14 int a1, a2, b1, b2;
13 struct bdiff_hunk *next;
15 struct bdiff_hunk *next;
14 };
16 };
15
17
16 int bdiff_splitlines(const char *a, ssize_t len, struct bdiff_line **lr);
18 int bdiff_splitlines(const char *a, ssize_t len, struct bdiff_line **lr);
17 int bdiff_diff(struct bdiff_line *a, int an, struct bdiff_line *b, int bn,
19 int bdiff_diff(struct bdiff_line *a, int an, struct bdiff_line *b, int bn,
18 struct bdiff_hunk *base);
20 struct bdiff_hunk *base);
19 void bdiff_freehunks(struct bdiff_hunk *l);
21 void bdiff_freehunks(struct bdiff_hunk *l);
20
22
21 #endif
23 #endif
General Comments 0
You need to be logged in to leave comments. Login now