aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.h
diff options
context:
space:
mode:
authorZyX <kp-pav@ya.ru>2014-05-10 17:24:13 +0400
committerThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:04:17 -0300
commit70929f7e1616bab2783cc5735c6061981cda8a0f (patch)
tree4a947af96fa0bac749f843a41e7b6593dd2659c0 /src/nvim/diff.h
parent880957ad4e3fc0ff681025f5e29c5eccf797c564 (diff)
downloadrneovim-70929f7e1616bab2783cc5735c6061981cda8a0f.tar.gz
rneovim-70929f7e1616bab2783cc5735c6061981cda8a0f.tar.bz2
rneovim-70929f7e1616bab2783cc5735c6061981cda8a0f.zip
Add automatic generation of headers
- The 'stripdecls.py' script replaces declarations in all headers by includes to generated headers. `ag '#\s*if(?!ndef NEOVIM_).*((?!#\s*endif).*\n)*#ifdef INCLUDE_GENERATED'` was used for this. - Add and integrate gendeclarations.lua into the build system to generate the required includes. - Add -Wno-unused-function - Made a bunch of old-style definitions ANSI This adds a requirement: all type and structure definitions must be present before INCLUDE_GENERATED_DECLARATIONS-protected include. Warning: mch_expandpath (path.h.generated.h) was moved manually. So far it is the only exception.
Diffstat (limited to 'src/nvim/diff.h')
-rw-r--r--src/nvim/diff.h31
1 files changed, 3 insertions, 28 deletions
diff --git a/src/nvim/diff.h b/src/nvim/diff.h
index f68fd03d46..75aa658ab6 100644
--- a/src/nvim/diff.h
+++ b/src/nvim/diff.h
@@ -1,33 +1,8 @@
#ifndef NVIM_DIFF_H
#define NVIM_DIFF_H
-void diff_buf_delete(buf_T *buf);
-void diff_buf_adjust(win_T *win);
-void diff_buf_add(buf_T *buf);
-void diff_invalidate(buf_T *buf);
-void diff_mark_adjust(linenr_T line1, linenr_T line2, long amount,
- long amount_after);
-void ex_diffupdate(exarg_T *eap);
-void ex_diffpatch(exarg_T *eap);
-void ex_diffsplit(exarg_T *eap);
-void ex_diffthis(exarg_T *eap);
-void diff_win_options(win_T *wp, int addbuf);
-void ex_diffoff(exarg_T *eap);
-void diff_clear(tabpage_T *tp);
-int diff_check(win_T *wp, linenr_T lnum);
-int diff_check_fill(win_T *wp, linenr_T lnum);
-void diff_set_topline(win_T *fromwin, win_T *towin);
-int diffopt_changed(void);
-int diffopt_horizontal(void);
-int diff_find_change(win_T *wp, linenr_T lnum, int *startp, int *endp);
-int diff_infold(win_T *wp, linenr_T lnum);
-void nv_diffgetput(int put);
-void ex_diffgetput(exarg_T *eap);
-int diff_mode_buf(buf_T *buf);
-int diff_move_to(int dir, long count);
-linenr_T diff_get_corresponding_line(buf_T *buf1, linenr_T lnum1,
- buf_T *buf2,
- linenr_T lnum3);
-linenr_T diff_lnum_win(linenr_T lnum, win_T *wp);
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "diff.h.generated.h"
+#endif
#endif // NVIM_DIFF_H