ops: refactor get_spec_reg()

Return value is bool.
errmsg (param) is bool in here and in getaltfname().
allocated (param) is bool.
This commit is contained in:
Jan Edmund Lazo
2018-08-16 22:32:06 -04:00
parent 015df9c66e
commit 58ad7fc578
3 changed files with 35 additions and 37 deletions

View File

@@ -2659,9 +2659,8 @@ buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum)
* Get alternate file name for current window.
* Return NULL if there isn't any, and give error message if requested.
*/
char_u *
getaltfname (
int errmsg /* give error message */
char_u * getaltfname(
bool errmsg // give error message
)
{
char_u *fname;