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/quickfix.c | |
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/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index cba6b5f94d..775b6e717e 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -134,43 +134,10 @@ struct efm_S { int conthere; /* %> used */ }; -static int qf_init_ext(qf_info_T *qi, char_u *efile, buf_T *buf, - typval_T *tv, char_u *errorformat, int newlist, - linenr_T lnumfirst, - linenr_T lnumlast, - char_u *qf_title); -static void qf_new_list(qf_info_T *qi, char_u *qf_title); -static void ll_free_all(qf_info_T **pqi); -static int qf_add_entry(qf_info_T *qi, qfline_T **prevp, char_u *dir, - char_u *fname, int bufnum, char_u *mesg, - long lnum, int col, int vis_col, - char_u *pattern, int nr, int type, - int valid); -static qf_info_T *ll_new_list(void); -static void qf_msg(qf_info_T *qi); -static void qf_free(qf_info_T *qi, int idx); -static char_u *qf_types(int, int); -static int qf_get_fnum(char_u *, char_u *); -static char_u *qf_push_dir(char_u *, struct dir_stack_T **); -static char_u *qf_pop_dir(struct dir_stack_T **); -static char_u *qf_guess_filepath(char_u *); -static void qf_fmt_text(char_u *text, char_u *buf, int bufsize); -static void qf_clean_dir_stack(struct dir_stack_T **); -static int qf_win_pos_update(qf_info_T *qi, int old_qf_index); -static int is_qf_win(win_T *win, qf_info_T *qi); -static win_T *qf_find_win(qf_info_T *qi); -static buf_T *qf_find_buf(qf_info_T *qi); -static void qf_update_buffer(qf_info_T *qi); -static void qf_set_title(qf_info_T *qi); -static void qf_fill_buffer(qf_info_T *qi); -static char_u *get_mef_name(void); -static void restore_start_dir(char_u *dirname_start); -static buf_T *load_dummy_buffer(char_u *fname, char_u *dirname_start, - char_u *resulting_dir); -static void wipe_dummy_buffer(buf_T *buf, char_u *dirname_start); -static void unload_dummy_buffer(buf_T *buf, char_u *dirname_start); -static qf_info_T *ll_get_or_alloc_list(win_T *); +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "quickfix.c.generated.h" +#endif /* Quickfix window check helper macro */ #define IS_QF_WINDOW(wp) (bt_quickfix(wp->w_buffer) && wp->w_llist_ref == NULL) /* Location list window check helper macro */ |