mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
Remove undefined functions.
This commit is contained in:
parent
7cb20fd1b0
commit
3a5f538cad
@ -69,8 +69,6 @@ int buf_getsigntype(buf_T *buf, linenr_T lnum, int type);
|
||||
linenr_T buf_delsign(buf_T *buf, int id);
|
||||
int buf_findsign(buf_T *buf, int id);
|
||||
int buf_findsign_id(buf_T *buf, linenr_T lnum);
|
||||
int buf_findsigntype_id(buf_T *buf, linenr_T lnum, int typenr);
|
||||
int buf_signcount(buf_T *buf, linenr_T lnum);
|
||||
void buf_delete_signs(buf_T *buf);
|
||||
void buf_delete_all_signs(void);
|
||||
void sign_list_placed(buf_T *rbuf);
|
||||
|
@ -62,6 +62,5 @@ int hexhex2nr(char_u *p);
|
||||
int rem_backslash(char_u *str);
|
||||
void backslash_halve(char_u *p);
|
||||
char_u *backslash_halve_save(char_u *p);
|
||||
void ebcdic2ascii(char_u *buffer, int len);
|
||||
|
||||
#endif // NEOVIM_CHARSET_H
|
||||
|
@ -49,6 +49,5 @@ typedef struct cursor_entry {
|
||||
|
||||
char_u *parse_shape_opt(int what);
|
||||
int get_shape_idx(int mouse);
|
||||
void update_mouseshape(int shape_idx);
|
||||
|
||||
#endif /* NEOVIM_CURSOR_SHAPE_H */
|
||||
|
@ -53,8 +53,6 @@ void fixthisline(int (*get_the_indent)(void));
|
||||
void fix_indent(void);
|
||||
int in_cinkeys(int keytyped, int when, int line_is_empty);
|
||||
int hkmap(int c);
|
||||
void ins_scroll(void);
|
||||
void ins_horscroll(void);
|
||||
int ins_copychar(linenr_T lnum);
|
||||
|
||||
#endif /* NEOVIM_EDIT_H */
|
||||
|
@ -63,7 +63,6 @@ void ex_exusage(exarg_T *eap);
|
||||
void ex_viusage(exarg_T *eap);
|
||||
void ex_helptags(exarg_T *eap);
|
||||
void ex_sign(exarg_T *eap);
|
||||
void sign_gui_started(void);
|
||||
int sign_get_attr(int typenr, int line);
|
||||
char_u *sign_get_text(int typenr);
|
||||
void *sign_get_image(int typenr);
|
||||
|
@ -39,7 +39,6 @@ int prof_def_func(void);
|
||||
int autowrite(buf_T *buf, int forceit);
|
||||
void autowrite_all(void);
|
||||
int check_changed(buf_T *buf, int flags);
|
||||
void browse_save_fname(buf_T *buf);
|
||||
void dialog_changed(buf_T *buf, int checkall);
|
||||
int can_abandon(buf_T *buf, int forceit);
|
||||
int check_changed_any(int hidden);
|
||||
@ -48,7 +47,6 @@ int buf_write_all(buf_T *buf, int forceit);
|
||||
void get_arglist(garray_T *gap, char_u *str);
|
||||
int get_arglist_exp(char_u *str, int *fcountp, char_u ***fnamesp,
|
||||
int wig);
|
||||
void set_arglist(char_u *str);
|
||||
void check_arg_idx(win_T *win);
|
||||
void ex_args(exarg_T *eap);
|
||||
void ex_previous(exarg_T *eap);
|
||||
|
@ -13,7 +13,6 @@ char_u *getexline(int c, void *cookie, int indent);
|
||||
char_u *getexmodeline(int promptc, void *cookie, int indent);
|
||||
int cmdline_overstrike(void);
|
||||
int cmdline_at_end(void);
|
||||
colnr_T cmdline_getvcol_cursor(void);
|
||||
void free_cmdline_buf(void);
|
||||
void putcmdline(int c, int shift);
|
||||
void unputcmdline(void);
|
||||
|
@ -26,7 +26,6 @@ void set_file_options(int set_options, exarg_T *eap);
|
||||
void set_forced_fenc(exarg_T *eap);
|
||||
int prepare_crypt_read(FILE *fp);
|
||||
char_u *prepare_crypt_write(buf_T *buf, int *lenp);
|
||||
int check_file_readonly(char_u *fname, int perm);
|
||||
int buf_write(buf_T *buf, char_u *fname, char_u *sfname, linenr_T start,
|
||||
linenr_T end, exarg_T *eap, int append, int forceit,
|
||||
int reset_changed,
|
||||
|
@ -72,7 +72,6 @@ void check_map_keycodes(void);
|
||||
char_u *check_map(char_u *keys, int mode, int exact, int ign_mod,
|
||||
int abbr, mapblock_T **mp_ptr,
|
||||
int *local_ptr);
|
||||
void init_mappings(void);
|
||||
void add_map(char_u *map, int mode);
|
||||
|
||||
#endif /* NEOVIM_GETCHAR_H */
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include "normal.h"
|
||||
|
||||
void main_loop(int cmdwin, int noexmode);
|
||||
void getout_preserve_modified(int exitval);
|
||||
void getout(int exitval);
|
||||
int process_env(char_u *env, int is_viminit);
|
||||
void mainerr_arg_missing(char_u *str);
|
||||
|
16
src/mbyte.h
16
src/mbyte.h
@ -57,8 +57,6 @@ void mb_copy_char(char_u **fp, char_u **tp);
|
||||
int mb_off_next(char_u *base, char_u *p);
|
||||
int mb_tail_off(char_u *base, char_u *p);
|
||||
void utf_find_illegal(void);
|
||||
int utf_valid_string(char_u *s, char_u *end);
|
||||
int dbcs_screen_tail_off(char_u *base, char_u *p);
|
||||
void mb_adjust_cursor(void);
|
||||
void mb_adjustpos(buf_T *buf, pos_T *lp);
|
||||
char_u *mb_prevptr(char_u *line, char_u *p);
|
||||
@ -70,25 +68,11 @@ int mb_fix_col(int col, int row);
|
||||
char_u *enc_skip(char_u *p);
|
||||
char_u *enc_canonize(char_u *enc);
|
||||
char_u *enc_locale(void);
|
||||
int encname2codepage(char_u *name);
|
||||
void *my_iconv_open(char_u *to, char_u *from);
|
||||
int iconv_enabled(int verbose);
|
||||
void iconv_end(void);
|
||||
void im_set_active(int active);
|
||||
void xim_set_focus(int focus);
|
||||
void im_set_position(int row, int col);
|
||||
void xim_set_preedit(void);
|
||||
int im_get_feedback_attr(int col);
|
||||
void xim_init(void);
|
||||
void im_shutdown(void);
|
||||
int im_xim_isvalid_imactivate(void);
|
||||
void xim_reset(void);
|
||||
int xim_queue_key_press_event(GdkEventKey *event, int down);
|
||||
int im_get_status(void);
|
||||
int preedit_get_status(void);
|
||||
int im_is_preediting(void);
|
||||
void xim_set_status_area(void);
|
||||
int xim_get_status_area_height(void);
|
||||
int convert_setup(vimconv_T *vcp, char_u *from, char_u *to);
|
||||
int convert_setup_ext(vimconv_T *vcp, char_u *from,
|
||||
int from_unicode_is_utf8, char_u *to,
|
||||
|
@ -54,18 +54,11 @@ char_u *set_context_in_menu_cmd(expand_T *xp, char_u *cmd, char_u *arg,
|
||||
char_u *get_menu_name(expand_T *xp, int idx);
|
||||
char_u *get_menu_names(expand_T *xp, int idx);
|
||||
char_u *menu_name_skip(char_u *name);
|
||||
int get_menu_index(vimmenu_T *menu, int state);
|
||||
int menu_is_menubar(char_u *name);
|
||||
int menu_is_popup(char_u *name);
|
||||
int menu_is_child_of_popup(vimmenu_T *menu);
|
||||
int menu_is_toolbar(char_u *name);
|
||||
int menu_is_separator(char_u *name);
|
||||
int check_menu_pointer(vimmenu_T *root, vimmenu_T *menu_to_check);
|
||||
void gui_create_initial_menus(vimmenu_T *menu);
|
||||
void gui_update_menus(int modes);
|
||||
int gui_is_menu_shortcut(int key);
|
||||
void gui_show_popupmenu(void);
|
||||
void gui_mch_toggle_tearoffs(int enable);
|
||||
void ex_emenu(exarg_T *eap);
|
||||
vimmenu_T *gui_find_menu(char_u *path_name);
|
||||
void ex_menutranslate(exarg_T *eap);
|
||||
|
@ -18,7 +18,6 @@ void invalidate_botline_win(win_T *wp);
|
||||
void approximate_botline_win(win_T *wp);
|
||||
int cursor_valid(void);
|
||||
void validate_cursor(void);
|
||||
void validate_cline_row(void);
|
||||
void validate_virtcol(void);
|
||||
void validate_virtcol_win(win_T *wp);
|
||||
void validate_cursor_col(void);
|
||||
|
@ -78,7 +78,6 @@ void check_scrollbind(linenr_T topline_diff, long leftcol_diff);
|
||||
int find_decl(char_u *ptr, int len, int locally, int thisblock,
|
||||
int searchflags);
|
||||
void scroll_redraw(int up, long count);
|
||||
void handle_tabmenu(void);
|
||||
void do_nv_ident(int c1, int c2);
|
||||
int get_visual_text(cmdarg_T *cap, char_u **pp, int *lenp);
|
||||
void start_selection(void);
|
||||
|
@ -18,7 +18,6 @@ char_u *get_expr_line(void);
|
||||
char_u *get_expr_line_src(void);
|
||||
int valid_yank_reg(int regname, int writing);
|
||||
void get_yank_register(int regname, int writing);
|
||||
int may_get_selection(int regname);
|
||||
void *get_register(int name, int copy) FUNC_ATTR_NONNULL_RET;
|
||||
void put_register(int name, void *reg);
|
||||
void free_register(void *reg);
|
||||
@ -53,13 +52,8 @@ int paragraph_start(linenr_T lnum);
|
||||
int do_addsub(int command, linenr_T Prenum1);
|
||||
int read_viminfo_register(vir_T *virp, int force);
|
||||
void write_viminfo_registers(FILE *fp);
|
||||
void x11_export_final_selection(void);
|
||||
void clip_free_selection(VimClipboard *cbd);
|
||||
void clip_get_selection(VimClipboard *cbd);
|
||||
void clip_yank_selection(int type, char_u *str, long len,
|
||||
VimClipboard *cbd);
|
||||
int clip_convert_selection(char_u **str, long_u *len, VimClipboard *cbd);
|
||||
void dnd_yank_drag_data(char_u *str, long len);
|
||||
char_u get_reg_type(int regname, long *reglen);
|
||||
char_u *get_reg_contents(int regname, int allowexpr, int expr_src);
|
||||
void write_reg_contents(int name, char_u *str, int maxlen,
|
||||
|
@ -8,7 +8,6 @@ void free_all_options(void);
|
||||
void set_init_2(void);
|
||||
void set_init_3(void);
|
||||
void set_helplang_default(char_u *lang);
|
||||
void init_gui_options(void);
|
||||
void set_title_defaults(void);
|
||||
int do_set(char_u *arg, int opt_flags);
|
||||
void set_options_bin(int oldval, int newval, int opt_flags);
|
||||
|
@ -15,7 +15,6 @@ int conceal_cursor_line(win_T *wp);
|
||||
void conceal_check_cursur_line(void);
|
||||
void update_single_line(win_T *wp, linenr_T lnum);
|
||||
void update_debug_sign(buf_T *buf, linenr_T lnum);
|
||||
void updateWindow(win_T *wp);
|
||||
void rl_mirror(char_u *str);
|
||||
void status_redraw_all(void);
|
||||
void status_redraw_curbuf(void);
|
||||
|
@ -35,11 +35,7 @@ int load_colors(char_u *name);
|
||||
void do_highlight(char_u *line, int forceit, int init);
|
||||
void free_highlight(void);
|
||||
void restore_cterm_colors(void);
|
||||
void set_normal_colors(void);
|
||||
char_u *hl_get_font_name(void);
|
||||
void hl_set_font_name(char_u *font_name);
|
||||
void hl_set_bg_color_name(char_u *name);
|
||||
void hl_set_fg_color_name(char_u *name);
|
||||
void clear_hl_tables(void);
|
||||
int hl_combine_attr(int char_attr, int prim_attr);
|
||||
attrentry_T *syn_gui_attr2entry(int attr);
|
||||
@ -55,12 +51,9 @@ char_u *syn_id2name(int id);
|
||||
int syn_namen2id(char_u *linep, int len);
|
||||
int syn_check_group(char_u *pp, int len);
|
||||
int syn_id2attr(int hl_id);
|
||||
int syn_id2colors(int hl_id, guicolor_T *fgp, guicolor_T *bgp);
|
||||
int syn_get_final_id(int hl_id);
|
||||
void highlight_gui_started(void);
|
||||
int highlight_changed(void);
|
||||
void set_context_in_highlight_cmd(expand_T *xp, char_u *arg);
|
||||
char_u *get_highlight_name(expand_T *xp, int idx);
|
||||
void free_highlight_fonts(void);
|
||||
|
||||
#endif /* NEOVIM_SYNTAX_H */
|
||||
|
@ -7,12 +7,10 @@ void del_mouse_termcode(int n);
|
||||
void getlinecol(long *cp, long *rp);
|
||||
int add_termcap_entry(char_u *name, int force);
|
||||
int term_is_8bit(char_u *name);
|
||||
int term_is_gui(char_u *name);
|
||||
char_u *tltoa(unsigned long i);
|
||||
void termcapinit(char_u *name);
|
||||
void out_flush(void);
|
||||
void out_flush_check(void);
|
||||
void out_trash(void);
|
||||
void out_char(unsigned c);
|
||||
void out_str_nf(char_u *s);
|
||||
void out_str(char_u *s);
|
||||
@ -63,5 +61,4 @@ int find_term_bykeys(char_u *src);
|
||||
void show_termcodes(void);
|
||||
int show_one_termcode(char_u *name, char_u *code, int printit);
|
||||
char_u *translate_mapping(char_u *str, int expmap);
|
||||
void update_tcap(int attr);
|
||||
#endif /* NEOVIM_TERM_H */
|
||||
|
32
src/ui.h
32
src/ui.h
@ -11,31 +11,9 @@ void suspend_shell(void);
|
||||
int ui_get_shellsize(void);
|
||||
void ui_set_shellsize(int mustset);
|
||||
void ui_breakcheck(void);
|
||||
void clip_init(int can_use);
|
||||
void clip_update_selection(VimClipboard *clip);
|
||||
void clip_own_selection(VimClipboard *cbd);
|
||||
void clip_lose_selection(VimClipboard *cbd);
|
||||
void clip_auto_select(void);
|
||||
int clip_isautosel_star(void);
|
||||
int clip_isautosel_plus(void);
|
||||
void clip_modeless(int button, int is_click, int is_drag);
|
||||
void clip_start_selection(int col, int row, int repeated_click);
|
||||
void clip_process_selection(int button, int col, int row,
|
||||
uint32_t repeated_click);
|
||||
void clip_may_redraw_selection(int row, int col, int len);
|
||||
void clip_clear_selection(VimClipboard *cbd);
|
||||
void clip_may_clear_selection(int row1, int row2);
|
||||
void clip_scroll_selection(int rows);
|
||||
void clip_copy_modeless_selection(int both);
|
||||
int clip_gen_own_selection(VimClipboard *cbd);
|
||||
void clip_gen_lose_selection(VimClipboard *cbd);
|
||||
void clip_gen_set_selection(VimClipboard *cbd);
|
||||
void clip_gen_request_selection(VimClipboard *cbd);
|
||||
int clip_gen_owner_exists(VimClipboard *cbd);
|
||||
int vim_is_input_buf_full(void);
|
||||
int vim_is_input_buf_empty(void);
|
||||
int vim_free_in_input_buf(void);
|
||||
int vim_used_in_input_buf(void);
|
||||
char_u *get_input_buf(void);
|
||||
void set_input_buf(char_u *p);
|
||||
void add_to_input_buf(char_u *s, int len);
|
||||
@ -48,21 +26,11 @@ void read_error_exit(void);
|
||||
void ui_cursor_shape(void);
|
||||
int check_col(int col);
|
||||
int check_row(int row);
|
||||
void open_app_context(void);
|
||||
void x11_setup_atoms(Display *dpy);
|
||||
void x11_setup_selection(Widget w);
|
||||
void clip_x11_request_selection(Widget myShell, Display *dpy,
|
||||
VimClipboard *cbd);
|
||||
void clip_x11_lose_selection(Widget myShell, VimClipboard *cbd);
|
||||
int clip_x11_own_selection(Widget myShell, VimClipboard *cbd);
|
||||
void clip_x11_set_selection(VimClipboard *cbd);
|
||||
int clip_x11_owner_exists(VimClipboard *cbd);
|
||||
void yank_cut_buffer0(Display *dpy, VimClipboard *cbd);
|
||||
int jump_to_mouse(int flags, int *inclusive, int which_button);
|
||||
int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump);
|
||||
win_T *mouse_find_win(int *rowp, int *colp);
|
||||
int get_fpos_of_mouse(pos_T *mpos);
|
||||
int vcol2col(win_T *wp, linenr_T lnum, int vcol);
|
||||
void ui_focus_change(int in_focus);
|
||||
void im_save_status(long *psave);
|
||||
#endif /* NEOVIM_UI_H */
|
||||
|
@ -1,7 +1,6 @@
|
||||
#ifndef NEOVIM_VERSION_H
|
||||
#define NEOVIM_VERSION_H
|
||||
|
||||
void make_version(void);
|
||||
int highest_patch(void);
|
||||
int has_patch(int n);
|
||||
void ex_version(exarg_T *eap);
|
||||
|
@ -79,11 +79,8 @@ void restore_win(win_T *save_curwin, tabpage_T *save_curtab,
|
||||
int no_display);
|
||||
void switch_buffer(buf_T **save_curbuf, buf_T *buf);
|
||||
void restore_buffer(buf_T *save_curbuf);
|
||||
int win_hasvertsplit(void);
|
||||
int match_add(win_T *wp, char_u *grp, char_u *pat, int prio, int id);
|
||||
int match_delete(win_T *wp, int id, int perr);
|
||||
void clear_matches(win_T *wp);
|
||||
matchitem_T *get_match(win_T *wp, int id);
|
||||
int get_win_number(win_T *wp, win_T *first_win);
|
||||
int get_tab_number(tabpage_T *tp);
|
||||
#endif /* NEOVIM_WINDOW_H */
|
||||
|
Loading…
Reference in New Issue
Block a user