Mercurial > vim
comparison src/proto/message.pro @ 15543:dd725a8ab112 v8.1.0779
patch 8.1.0779: argument for message functions is inconsistent
commit https://github.com/vim/vim/commit/32526b3c1846025f0e655f41efd4e5428da16b6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 19 17:43:09 2019 +0100
patch 8.1.0779: argument for message functions is inconsistent
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Jan 2019 17:45:07 +0100 |
parents | 98c35d312987 |
children | ac080f6a4db8 |
comparison
equal
deleted
inserted
replaced
15542:5baedae7ca7a | 15543:dd725a8ab112 |
---|---|
1 /* message.c */ | 1 /* message.c */ |
2 int msg(char_u *s); | 2 int msg(char *s); |
3 int verb_msg(char_u *s); | 3 int verb_msg(char *s); |
4 int msg_attr(char_u *s, int attr); | 4 int msg_attr(char *s, int attr); |
5 int msg_attr_keep(char_u *s, int attr, int keep); | 5 int msg_attr_keep(char *s, int attr, int keep); |
6 char_u *msg_strtrunc(char_u *s, int force); | 6 char_u *msg_strtrunc(char_u *s, int force); |
7 void trunc_string(char_u *s, char_u *buf, int room_in, int buflen); | 7 void trunc_string(char_u *s, char_u *buf, int room_in, int buflen); |
8 void reset_last_sourcing(void); | 8 void reset_last_sourcing(void); |
9 void msg_source(int attr); | 9 void msg_source(int attr); |
10 int emsg_not_now(void); | 10 int emsg_not_now(void); |
11 void ignore_error_for_testing(char_u *error); | 11 void ignore_error_for_testing(char_u *error); |
12 void do_perror(char *msg); | 12 void do_perror(char *msg); |
13 int emsg(char *s); | 13 int emsg(char *s); |
14 | 14 int semsg(const char *s, ...); |
15 int semsg(const char *s, ...) | |
16 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE | |
17 __attribute__((format(printf, 1, 2))) | |
18 #endif | |
19 ; | |
20 void iemsg(char *s); | 15 void iemsg(char *s); |
21 void siemsg(const char *s, ...) | 16 void siemsg(const char *s, ...); |
22 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE | |
23 __attribute__((format(printf, 1, 2))) | |
24 #endif | |
25 ; | |
26 void internal_error(char *where); | 17 void internal_error(char *where); |
27 void emsg_invreg(int name); | 18 void emsg_invreg(int name); |
28 char_u *msg_trunc_attr(char_u *s, int force, int attr); | 19 char *msg_trunc_attr(char *s, int force, int attr); |
29 char_u *msg_may_trunc(int force, char_u *s); | 20 char_u *msg_may_trunc(int force, char_u *s); |
30 int delete_first_msg(void); | 21 int delete_first_msg(void); |
31 void ex_messages(exarg_T *eap); | 22 void ex_messages(exarg_T *eap); |
32 void msg_end_prompt(void); | 23 void msg_end_prompt(void); |
33 void wait_return(int redraw); | 24 void wait_return(int redraw); |
49 int msg_outtrans_special(char_u *strstart, int from); | 40 int msg_outtrans_special(char_u *strstart, int from); |
50 char_u *str2special_save(char_u *str, int is_lhs); | 41 char_u *str2special_save(char_u *str, int is_lhs); |
51 char_u *str2special(char_u **sp, int from); | 42 char_u *str2special(char_u **sp, int from); |
52 void str2specialbuf(char_u *sp, char_u *buf, int len); | 43 void str2specialbuf(char_u *sp, char_u *buf, int len); |
53 void msg_prt_line(char_u *s, int list); | 44 void msg_prt_line(char_u *s, int list); |
54 void msg_puts(char_u *s); | 45 void msg_puts(char *s); |
55 void msg_puts_title(char_u *s); | 46 void msg_puts_title(char *s); |
56 void msg_puts_long_attr(char_u *longstr, int attr); | 47 void msg_outtrans_long_attr(char_u *longstr, int attr); |
57 void msg_puts_long_len_attr(char_u *longstr, int len, int attr); | 48 void msg_outtrans_long_len_attr(char_u *longstr, int len, int attr); |
58 void msg_puts_attr(char_u *s, int attr); | 49 void msg_puts_attr(char *s, int attr); |
59 int message_filtered(char_u *msg); | 50 int message_filtered(char_u *msg); |
60 void may_clear_sb_text(void); | 51 void may_clear_sb_text(void); |
61 void sb_text_start_cmdline(void); | 52 void sb_text_start_cmdline(void); |
62 void sb_text_end_cmdline(void); | 53 void sb_text_end_cmdline(void); |
63 void clear_sb_text(int all); | 54 void clear_sb_text(int all); |