comparison src/proto/option.pro @ 15470:55ccc2d353bd v8.1.0743

patch 8.1.0743: giving error messages is not flexible commit https://github.com/vim/vim/commit/f9e3e09fdc93be9f0d47afbc6c7df1188c2a5a0d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 13 23:38:42 2019 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jan 2019 23:45:08 +0100
parents 3a94f7918980
children ad8b2c109b22
comparison
equal deleted inserted replaced
15469:bc9b5261ed01 15470:55ccc2d353bd
19 void clear_string_option(char_u **pp); 19 void clear_string_option(char_u **pp);
20 int get_term_opt_idx(char_u **p); 20 int get_term_opt_idx(char_u **p);
21 int set_term_option_alloced(char_u **p); 21 int set_term_option_alloced(char_u **p);
22 int was_set_insecurely(char_u *opt, int opt_flags); 22 int was_set_insecurely(char_u *opt, int opt_flags);
23 void set_string_option_direct(char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid); 23 void set_string_option_direct(char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid);
24 char_u *check_colorcolumn(win_T *wp); 24 char *check_colorcolumn(win_T *wp);
25 char_u *check_stl_option(char_u *s); 25 char *check_stl_option(char_u *s);
26 void set_term_option_sctx_idx(char *name, int opt_idx); 26 void set_term_option_sctx_idx(char *name, int opt_idx);
27 int get_option_value(char_u *name, long *numval, char_u **stringval, int opt_flags); 27 int get_option_value(char_u *name, long *numval, char_u **stringval, int opt_flags);
28 int get_option_value_strict(char_u *name, long *numval, char_u **stringval, int opt_type, void *from); 28 int get_option_value_strict(char_u *name, long *numval, char_u **stringval, int opt_type, void *from);
29 char_u *option_iter_next(void **option, int opt_type); 29 char_u *option_iter_next(void **option, int opt_type);
30 char_u *set_option_value(char_u *name, long number, char_u *string, int opt_flags); 30 char *set_option_value(char_u *name, long number, char_u *string, int opt_flags);
31 char_u *get_term_code(char_u *tname); 31 char_u *get_term_code(char_u *tname);
32 char_u *get_highlight_default(void); 32 char_u *get_highlight_default(void);
33 char_u *get_encoding_default(void); 33 char_u *get_encoding_default(void);
34 int makeset(FILE *fd, int opt_flags, int local_only); 34 int makeset(FILE *fd, int opt_flags, int local_only);
35 int makefoldset(FILE *fd); 35 int makefoldset(FILE *fd);