1#ifndef DEFINE_FUNC_ATTRIBUTES
2# define DEFINE_FUNC_ATTRIBUTES
3#endif
4#include "nvim/func_attr.h"
5#undef DEFINE_FUNC_ATTRIBUTES
6void msg_grid_set_pos(int row, _Bool scrolled);
7_Bool msg_use_grid(void);
8void msg_grid_validate(void);
9int msg(char_u *s);
10int verb_msg(char *s);
11int msg_attr(const char *s, const int attr) FUNC_ATTR_NONNULL_ARG(1);
12void msg_multiline_attr(const char *s, int attr, _Bool check_int) FUNC_ATTR_NONNULL_ALL;
13_Bool msg_attr_keep(char_u *s, int attr, _Bool keep, _Bool multiline) FUNC_ATTR_NONNULL_ALL;
14char_u *msg_strtrunc(char_u *s, int force );
15void trunc_string(char_u *s, char_u *buf, int room_in, int buflen);
16int smsg(char *s, ...) FUNC_ATTR_PRINTF(1, 2);
17int smsg_attr(int attr, char *s, ...) FUNC_ATTR_PRINTF(2, 3);
18int smsg_attr_keep(int attr, char *s, ...) FUNC_ATTR_PRINTF(2, 3);
19void reset_last_sourcing(void);
20void msg_source(int attr);
21int emsg_not_now(void);
22_Bool emsg(const char_u *s);
23void emsg_invreg(int name);
24_Bool emsgf(const char *const fmt, ...) FUNC_ATTR_PRINTF(1, 2);
25_Bool emsgf_multiline(const char *const fmt, ...);
26void iemsg(const char *s);
27void iemsgf(const char *s, ...);
28void internal_error(char *where);
29void msg_schedule_emsgf(const char *const fmt, ...) FUNC_ATTR_PRINTF(1, 2);
30char_u *msg_trunc_attr(char_u *s, int force, int attr);
31char_u *msg_may_trunc(int force, char_u *s);
32int delete_first_msg(void);
33void ex_messages(void *const eap_p) FUNC_ATTR_NONNULL_ALL;
34void msg_end_prompt(void);
35void wait_return(int redraw);
36void set_keep_msg(char_u *s, int attr);
37void msg_ext_set_kind(const char *msg_kind);
38void msg_start(void);
39void msg_starthere(void);
40void msg_putchar(int c);
41void msg_putchar_attr(int c, int attr);
42void msg_outnum(long n);
43void msg_home_replace(char_u *fname);
44void msg_home_replace_hl(char_u *fname);
45int msg_outtrans(char_u *str);
46int msg_outtrans_attr(char_u *str, int attr);
47int msg_outtrans_len(char_u *str, int len);
48char_u *msg_outtrans_one(char_u *p, int attr);
49int msg_outtrans_len_attr(char_u *msgstr, int len, int attr);
50void msg_make(char_u *arg);
51int msg_outtrans_special(const char_u *strstart, int from );
52char *str2special_save(const char *const str, const _Bool replace_spaces, const _Bool replace_lt) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_RET;
53const char *str2special(const char **const sp, const _Bool replace_spaces, const _Bool replace_lt) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_RET;
54void str2specialbuf(const char *sp, char *buf, size_t len) FUNC_ATTR_NONNULL_ALL;
55void msg_prt_line(char_u *s, int list);
56void msg_puts(const char *s);
57void msg_puts_title(const char *s);
58void msg_puts_long_attr(char_u *longstr, int attr);
59void msg_puts_long_len_attr(char_u *longstr, int len, int attr);
60void msg_puts_attr(const char *const s, const int attr);
61void msg_puts_attr_len(const char *const str, const ptrdiff_t len, int attr) FUNC_ATTR_NONNULL_ALL;
62void msg_printf_attr(const int attr, const char *const fmt, ...) FUNC_ATTR_NONNULL_ARG(2) FUNC_ATTR_PRINTF(2, 3);
63_Bool message_filtered(char_u *msg);
64int msg_scrollsize(void);
65_Bool msg_use_msgsep(void);
66_Bool msg_do_throttle(void);
67void msg_scroll_up(_Bool may_throttle);
68void msg_scroll_flush(void);
69void msg_reset_scroll(void);
70void may_clear_sb_text(void);
71void sb_text_start_cmdline(void);
72void sb_text_end_cmdline(void);
73void clear_sb_text(int all);
74void show_sb_text(void);
75void msg_sb_eol(void);
76int msg_use_printf(void);
77void msg_moremsg(int full);
78void repeat_message(void);
79void msg_clr_eos(void);
80void msg_clr_eos_force(void);
81void msg_clr_cmdline(void);
82int msg_end(void);
83void msg_ext_ui_flush(void);
84void msg_ext_flush_showmode(void);
85void msg_ext_clear(_Bool force);
86void msg_ext_clear_later(void);
87void msg_ext_check_clear(void);
88_Bool msg_ext_is_visible(void);
89void msg_check(void);
90int redirecting(void);
91void verbose_enter(void);
92void verbose_leave(void);
93void verbose_enter_scroll(void);
94void verbose_leave_scroll(void);
95void verbose_stop(void);
96int verbose_open(void);
97void give_warning(char_u *message, _Bool hl) FUNC_ATTR_NONNULL_ARG(1);
98void give_warning2(char_u *const message, char_u *const a1, _Bool hl);
99void msg_advance(int col);
100int do_dialog(int type, char_u *title, char_u *message, char_u *buttons, int dfltbutton, char_u *textfield, int ex_cmd );
101void display_confirm_msg(void);
102int vim_dialog_yesno(int type, char_u *title, char_u *message, int dflt);
103int vim_dialog_yesnocancel(int type, char_u *title, char_u *message, int dflt);
104int vim_dialog_yesnoallcancel(int type, char_u *title, char_u *message, int dflt);
105#include "nvim/func_attr.h"
106