refactor: make error message definitions const

message.c functions now take const char * as a format. Error message
definitions can be made const.
This commit is contained in:
ii14
2023-04-05 21:13:53 +02:00
committed by GitHub
parent 2612930a09
commit 371823d407
37 changed files with 376 additions and 372 deletions

View File

@@ -44,11 +44,11 @@
garray_T ucmds = { 0, 0, sizeof(ucmd_T), 4, NULL };
static char e_complete_used_without_allowing_arguments[]
static const char e_complete_used_without_allowing_arguments[]
= N_("E1208: -complete used without allowing arguments");
static char e_no_such_user_defined_command_str[]
static const char e_no_such_user_defined_command_str[]
= N_("E184: No such user-defined command: %s");
static char e_no_such_user_defined_command_in_current_buffer_str[]
static const char e_no_such_user_defined_command_in_current_buffer_str[]
= N_("E1237: No such user-defined command in current buffer: %s");
/// List of names for completion for ":command" with the EXPAND_ flag.