0
0
mirror of https://github.com/vim/vim.git synced 2025-10-23 08:44:20 -04:00

patch 8.1.0743: giving error messages is not flexible

Problem:    Giving error messages is not flexible.
Solution:   Add semsg().  Change argument from "char_u *" to "char *", also
            for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
            #3302)  Also make emsg() accept a "char *" argument.  Get rid of
            an enormous number of type casts.
This commit is contained in:
Bram Moolenaar
2019-01-13 23:38:42 +01:00
parent 05500ece62
commit f9e3e09fdc
95 changed files with 1963 additions and 2018 deletions

View File

@@ -108,25 +108,25 @@ int
# ifdef __BORLANDC__
_RTLENTRYF
# endif
smsg(char_u *, ...);
smsg(const char *, ...);
int
# ifdef __BORLANDC__
_RTLENTRYF
# endif
smsg_attr(int, char_u *, ...);
smsg_attr(int, const char *, ...);
int
# ifdef __BORLANDC__
_RTLENTRYF
# endif
smsg_attr_keep(int, char_u *, ...);
smsg_attr_keep(int, const char *, ...);
int
# ifdef __BORLANDC__
_RTLENTRYF
# endif
vim_snprintf_add(char *, size_t, char *, ...)
vim_snprintf_add(char *, size_t, const char *, ...)
#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
__attribute__((format(printf, 3, 4)))
#endif
@@ -136,14 +136,14 @@ int
# ifdef __BORLANDC__
_RTLENTRYF
# endif
vim_snprintf(char *, size_t, char *, ...)
vim_snprintf(char *, size_t, const char *, ...)
#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
__attribute__((format(printf, 3, 4)))
#endif
;
int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap);
int vim_vsnprintf_typval(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap);
int vim_vsnprintf_typval(char *str, size_t str_m, const char *fmt, va_list ap, typval_T *tvs);
# include "message.pro"
# include "misc1.pro"