misc2.c: Move emsg* functions to message.c #2152

Clean up said functions and some outdated comments while we're at it.
This commit is contained in:
Michael Reed
2015-03-14 19:44:01 -04:00
committed by Justin M. Keyes
parent 21a5326527
commit 8f6ecc4089
6 changed files with 33 additions and 46 deletions

View File

@@ -389,42 +389,6 @@ int vim_chdir(char_u *new_dir)
return r;
}
/*
* Print an error message with one or two "%s" and one or two string arguments.
* This is not in message.c to avoid a warning for prototypes.
*/
int emsg3(char_u *s, char_u *a1, char_u *a2)
{
if (emsg_not_now())
return TRUE; /* no error messages at the moment */
vim_snprintf((char *)IObuff, IOSIZE, (char *)s, a1, a2);
return emsg(IObuff);
}
/*
* Print an error message with one "%" PRId64 and one (int64_t) argument.
* This is not in message.c to avoid a warning for prototypes.
*/
int emsgn(char_u *s, int64_t n)
{
if (emsg_not_now())
return TRUE; /* no error messages at the moment */
vim_snprintf((char *)IObuff, IOSIZE, (char *)s, n);
return emsg(IObuff);
}
/*
* Print an error message with one "%" PRIu64 and one (uint64_t) argument.
*/
int emsgu(char_u *s, uint64_t n)
{
if (emsg_not_now())
return TRUE; /* no error messages at the moment */
vim_snprintf((char *)IObuff, IOSIZE, (char *)s, n);
return emsg(IObuff);
}
/*
* Read 2 bytes from "fd" and turn them into an int, MSB first.
*/