refactor: reduce number of unique char casts (#15995)

This commit is contained in:
dundargoc
2021-10-12 17:52:54 +02:00
committed by GitHub
parent 64f0fdc682
commit 649b3160a1
29 changed files with 133 additions and 140 deletions

View File

@@ -390,7 +390,7 @@ static char_u *debug_skipped_name;
/// Called from do_one_cmd() before executing a command.
void dbg_check_breakpoint(exarg_T *eap)
{
char_u *p;
char *p;
debug_skipped = false;
if (debug_breakpoint_name != NULL) {
@@ -399,9 +399,9 @@ void dbg_check_breakpoint(exarg_T *eap)
if (debug_breakpoint_name[0] == K_SPECIAL
&& debug_breakpoint_name[1] == KS_EXTRA
&& debug_breakpoint_name[2] == KE_SNR) {
p = (char_u *)"<SNR>";
p = "<SNR>";
} else {
p = (char_u *)"";
p = "";
}
smsg(_("Breakpoint in \"%s%s\" line %" PRId64),
p,