diff options
author | ZyX <kp-pav@ya.ru> | 2014-05-10 17:24:13 +0400 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-02 11:04:17 -0300 |
commit | 70929f7e1616bab2783cc5735c6061981cda8a0f (patch) | |
tree | 4a947af96fa0bac749f843a41e7b6593dd2659c0 /src/nvim/mark.h | |
parent | 880957ad4e3fc0ff681025f5e29c5eccf797c564 (diff) | |
download | rneovim-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/mark.h')
-rw-r--r-- | src/nvim/mark.h | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/src/nvim/mark.h b/src/nvim/mark.h index 1fcbb0304c..aa89a5b625 100644 --- a/src/nvim/mark.h +++ b/src/nvim/mark.h @@ -5,38 +5,7 @@ #include "nvim/mark_defs.h" #include "nvim/pos.h" -/* mark.c */ -int setmark(int c); -int setmark_pos(int c, pos_T *pos, int fnum); -void setpcmark(void); -void checkpcmark(void); -pos_T *movemark(int count); -pos_T *movechangelist(int count); -pos_T *getmark_buf(buf_T *buf, int c, int changefile); -pos_T *getmark(int c, int changefile); -pos_T *getmark_buf_fnum(buf_T *buf, int c, int changefile, int *fnum); -pos_T *getnextmark(pos_T *startpos, int dir, int begin_line); -void fmarks_check_names(buf_T *buf); -int check_mark(pos_T *pos); -void clrallmarks(buf_T *buf); -char_u *fm_getname(fmark_T *fmark, int lead_len); -void do_marks(exarg_T *eap); -void ex_delmarks(exarg_T *eap); -void ex_jumps(exarg_T *eap); -void ex_changes(exarg_T *eap); -void mark_adjust(linenr_T line1, linenr_T line2, long amount, - long amount_after); -void mark_col_adjust(linenr_T lnum, colnr_T mincol, long lnum_amount, - long col_amount); -void copy_jumplist(win_T *from, win_T *to); -void free_jumplist(win_T *wp); -void set_last_cursor(win_T *win); -void free_all_marks(void); -int read_viminfo_filemark(vir_T *virp, int force); -void write_viminfo_filemarks(FILE *fp); -int removable(char_u *name); -int write_viminfo_marks(FILE *fp_out); -void copy_viminfo_marks(vir_T *virp, FILE *fp_out, int count, int eof, - int flags); - -#endif /* NVIM_MARK_H */ +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "mark.h.generated.h" +#endif +#endif // NVIM_MARK_H |