1
1
diff --git a/git-xdiff.h b/git-xdiff.h
2
2
new file mode 100644
3
- index 0000000..4091d22
3
+ index 0000000..e3a6ef8
4
4
--- /dev/null
5
5
+++ b/git-xdiff.h
6
6
@@ -0,0 +1,79 @@
@@ -57,7 +57,7 @@ index 0000000..4091d22
57
57
+ # define xdl_regex_t void *
58
58
+ # define xdl_regmatch_t void *
59
59
+
60
- + inline int xdl_regexec_buf(
60
+ + static inline int xdl_regexec_buf(
61
61
+ const xdl_regex_t *preg, const char *buf, size_t size,
62
62
+ size_t nmatch, xdl_regmatch_t pmatch[], int eflags)
63
63
+ {
@@ -70,7 +70,7 @@ index 0000000..4091d22
70
70
+ # define xdl_regex_t regex_t
71
71
+ # define xdl_regmatch_t regmatch_t
72
72
+
73
- + inline int xdl_regexec_buf(
73
+ + static inline int xdl_regexec_buf(
74
74
+ const xdl_regex_t *preg, const char *buf, size_t size,
75
75
+ size_t nmatch, xdl_regmatch_t pmatch[], int eflags)
76
76
+ {
@@ -118,10 +118,10 @@ index bb56b23..fb47f63 100644
118
118
long xdl_mmfile_size(mmfile_t *mmf);
119
119
120
120
diff --git a/xdiffi.c b/xdiffi.c
121
- index 344c2df..ea36143 100644
121
+ index 4685ba6..7224739 100644
122
122
--- a/xdiffi.c
123
123
+++ b/xdiffi.c
124
- @@ -833 ,7 +833 ,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
124
+ @@ -834 ,7 +834 ,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
125
125
/* Shift the group backward as much as possible: */
126
126
while (!group_slide_up(xdf, &g))
127
127
if (group_previous(xdfo, &go))
@@ -130,7 +130,7 @@ index 344c2df..ea36143 100644
130
130
131
131
/*
132
132
* This is this highest that this group can be shifted.
133
- @@ -849 ,7 +849 ,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
133
+ @@ -850 ,7 +850 ,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
134
134
if (group_slide_down(xdf, &g))
135
135
break;
136
136
if (group_next(xdfo, &go))
@@ -139,7 +139,7 @@ index 344c2df..ea36143 100644
139
139
140
140
if (go.end > go.start)
141
141
end_matching_other = g.end;
142
- @@ -874 ,9 +874 ,9 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
142
+ @@ -875 ,9 +875 ,9 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
143
143
*/
144
144
while (go.end == go.start) {
145
145
if (group_slide_up(xdf, &g))
@@ -151,7 +151,7 @@ index 344c2df..ea36143 100644
151
151
}
152
152
} else if (flags & XDF_INDENT_HEURISTIC) {
153
153
/*
154
- @@ -917 ,9 +917 ,9 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
154
+ @@ -918 ,9 +918 ,9 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
155
155
156
156
while (g.end > best_shift) {
157
157
if (group_slide_up(xdf, &g))
@@ -163,7 +163,7 @@ index 344c2df..ea36143 100644
163
163
}
164
164
}
165
165
166
- @@ -928 ,11 +928 ,11 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
166
+ @@ -929 ,11 +929 ,11 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
167
167
if (group_next(xdf, &g))
168
168
break;
169
169
if (group_next(xdfo, &go))
@@ -177,7 +177,7 @@ index 344c2df..ea36143 100644
177
177
178
178
return 0;
179
179
}
180
- @@ -973 ,7 +973 ,7 @@ void xdl_free_script(xdchange_t *xscr) {
180
+ @@ -974 ,7 +974 ,7 @@ void xdl_free_script(xdchange_t *xscr) {
181
181
}
182
182
}
183
183
@@ -186,7 +186,7 @@ index 344c2df..ea36143 100644
186
186
xdemitconf_t const *xecfg)
187
187
{
188
188
xdchange_t *xch, *xche;
189
- @@ -1012 ,11 +1012 ,11 @@ static void xdl_mark_ignorable_lines(xdchange_t *xscr, xdfenv_t *xe, long flags)
189
+ @@ -1013 ,11 +1013 ,11 @@ static void xdl_mark_ignorable_lines(xdchange_t *xscr, xdfenv_t *xe, long flags)
190
190
}
191
191
192
192
static int record_matches_regex(xrecord_t *rec, xpparam_t const *xpp) {
@@ -201,15 +201,18 @@ index 344c2df..ea36143 100644
201
201
return 1;
202
202
203
203
diff --git a/xinclude.h b/xinclude.h
204
- index a4285ac..75db1d8 100644
204
+ index 7e56542..5163346 100644
205
205
--- a/xinclude.h
206
206
+++ b/xinclude.h
207
- @@ -23,7 +23,7 @@
207
+ @@ -23,9 +23,10 @@
208
208
#if !defined(XINCLUDE_H)
209
209
#define XINCLUDE_H
210
210
211
- - #include "git-compat-util.h"
212
211
+ #include "git-xdiff.h"
212
+ +
213
+ #define DISABLE_SIGN_COMPARE_WARNINGS
214
+
215
+ - #include "git-compat-util.h"
213
216
#include "xmacros.h"
214
217
#include "xdiff.h"
215
218
#include "xtypes.h"
0 commit comments