comparison src/structs.h @ 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 1d2b5c016f17
children 959cf4c63b18
comparison
equal deleted inserted replaced
15469:bc9b5261ed01 15470:55ccc2d353bd
887 * original message stored in that element, but sometimes it points to a later 887 * original message stored in that element, but sometimes it points to a later
888 * message in the list. See cause_errthrow() below. 888 * message in the list. See cause_errthrow() below.
889 */ 889 */
890 struct msglist 890 struct msglist
891 { 891 {
892 char_u *msg; /* original message */ 892 char *msg; /* original message */
893 char_u *throw_msg; /* msg to throw: usually original one */ 893 char *throw_msg; /* msg to throw: usually original one */
894 struct msglist *next; /* next of several messages in a row */ 894 struct msglist *next; /* next of several messages in a row */
895 }; 895 };
896 896
897 /* 897 /*
898 * The exception types. 898 * The exception types.
910 */ 910 */
911 typedef struct vim_exception except_T; 911 typedef struct vim_exception except_T;
912 struct vim_exception 912 struct vim_exception
913 { 913 {
914 except_type_T type; /* exception type */ 914 except_type_T type; /* exception type */
915 char_u *value; /* exception value */ 915 char *value; /* exception value */
916 struct msglist *messages; /* message(s) causing error exception */ 916 struct msglist *messages; /* message(s) causing error exception */
917 char_u *throw_name; /* name of the throw point */ 917 char_u *throw_name; /* name of the throw point */
918 linenr_T throw_lnum; /* line number of the throw point */ 918 linenr_T throw_lnum; /* line number of the throw point */
919 except_T *caught; /* next exception on the caught stack */ 919 except_T *caught; /* next exception on the caught stack */
920 }; 920 };