Mercurial > vim
comparison src/os_win32.c @ 15543:dd725a8ab112 v8.1.0779
patch 8.1.0779: argument for message functions is inconsistent
commit https://github.com/vim/vim/commit/32526b3c1846025f0e655f41efd4e5428da16b6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 19 17:43:09 2019 +0100
patch 8.1.0779: argument for message functions is inconsistent
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Jan 2019 17:45:07 +0100 |
parents | ba876ced4f1f |
children | df198b298bff |
comparison
equal
deleted
inserted
replaced
15542:5baedae7ca7a | 15543:dd725a8ab112 |
---|---|
4532 return; | 4532 return; |
4533 } | 4533 } |
4534 } | 4534 } |
4535 c = *p; | 4535 c = *p; |
4536 *p = NUL; | 4536 *p = NUL; |
4537 msg_puts(buffer); | 4537 msg_puts((char *)buffer); |
4538 if (p < buffer + len) | 4538 if (p < buffer + len) |
4539 { | 4539 { |
4540 *p = c; | 4540 *p = c; |
4541 *buffer_off = (DWORD)((buffer + len) - p); | 4541 *buffer_off = (DWORD)((buffer + len) - p); |
4542 mch_memmove(buffer, p, *buffer_off); | 4542 mch_memmove(buffer, p, *buffer_off); |
4546 } | 4546 } |
4547 # endif /* FEAT_MBYTE */ | 4547 # endif /* FEAT_MBYTE */ |
4548 else | 4548 else |
4549 { | 4549 { |
4550 buffer[len] = NUL; | 4550 buffer[len] = NUL; |
4551 msg_puts(buffer); | 4551 msg_puts((char *)buffer); |
4552 } | 4552 } |
4553 | 4553 |
4554 windgoto(msg_row, msg_col); | 4554 windgoto(msg_row, msg_col); |
4555 cursor_on(); | 4555 cursor_on(); |
4556 out_flush(); | 4556 out_flush(); |
4605 { | 4605 { |
4606 CloseHandle(g_hChildStd_IN_Rd); | 4606 CloseHandle(g_hChildStd_IN_Rd); |
4607 CloseHandle(g_hChildStd_IN_Wr); | 4607 CloseHandle(g_hChildStd_IN_Wr); |
4608 CloseHandle(g_hChildStd_OUT_Rd); | 4608 CloseHandle(g_hChildStd_OUT_Rd); |
4609 CloseHandle(g_hChildStd_OUT_Wr); | 4609 CloseHandle(g_hChildStd_OUT_Wr); |
4610 MSG_PUTS(_("\nCannot create pipes\n")); | 4610 msg_puts(_("\nCannot create pipes\n")); |
4611 } | 4611 } |
4612 | 4612 |
4613 si.cb = sizeof(si); | 4613 si.cb = sizeof(si); |
4614 si.lpReserved = NULL; | 4614 si.lpReserved = NULL; |
4615 si.lpDesktop = NULL; | 4615 si.lpDesktop = NULL; |