1 | #ifndef DEFINE_FUNC_ATTRIBUTES |
2 | # define DEFINE_FUNC_ATTRIBUTES |
3 | #endif |
4 | #include "nvim/func_attr.h" |
5 | #undef DEFINE_FUNC_ATTRIBUTES |
6 | static void diff_buf_clear(void); |
7 | static int diff_buf_idx(buf_T *buf); |
8 | static int diff_buf_idx_tp(buf_T *buf, tabpage_T *tp); |
9 | static void diff_mark_adjust_tp(tabpage_T *tp, int idx, linenr_T line1, linenr_T line2, long amount, long amount_after); |
10 | static diff_T *diff_alloc_new(tabpage_T *tp, diff_T *dprev, diff_T *dp); |
11 | static void diff_check_unchanged(tabpage_T *tp, diff_T *dp); |
12 | static int diff_check_sanity(tabpage_T *tp, diff_T *dp); |
13 | static void diff_redraw(int dofold); |
14 | static void clear_diffin(diffin_T *din); |
15 | static void clear_diffout(diffout_T *dout); |
16 | static int diff_write_buffer(buf_T *buf, diffin_T *din); |
17 | static int diff_write(buf_T *buf, diffin_T *din); |
18 | static void diff_try_update(diffio_T *dio, int idx_orig, exarg_T *eap); |
19 | static int diff_internal_failed(void); |
20 | static int check_external_diff(diffio_T *diffio); |
21 | static int diff_file_internal(diffio_T *diffio); |
22 | static int diff_file(diffio_T *dio); |
23 | static void set_diff_option(win_T *wp, int value); |
24 | static void diff_read(int idx_orig, int idx_new, diffout_T *dout); |
25 | static void diff_copy_entry(diff_T *dprev, diff_T *dp, int idx_orig, int idx_new); |
26 | static _Bool diff_equal_entry(diff_T *dp, int idx1, int idx2) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ARG(1); |
27 | static _Bool diff_equal_char(const char_u *const p1, const char_u *const p2, int *const len); |
28 | static int diff_cmp(char_u *s1, char_u *s2); |
29 | static void diff_fold_update(diff_T *dp, int skip_idx); |
30 | static linenr_T diff_get_corresponding_line_int(buf_T *buf1, linenr_T lnum1); |
31 | static int parse_diff_ed(char_u *line, linenr_T *lnum_orig, long *count_orig, linenr_T *lnum_new, long *count_new); |
32 | static int parse_diff_unified(char_u *line, linenr_T *lnum_orig, long *count_orig, linenr_T *lnum_new, long *count_new); |
33 | static int xdiff_out(void *priv, mmbuffer_t *mb, int nbuf); |
34 | #include "nvim/func_attr.h" |
35 | |