diff options
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r-- | src/nvim/version.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c index 9e2358c9a3..1fcbae8be3 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -29,8 +29,8 @@ // for ":version", ":intro", and "nvim --version" #ifndef NVIM_VERSION_MEDIUM -# define NVIM_VERSION_MEDIUM "v" STR(NVIM_VERSION_MAJOR)\ - "." STR(NVIM_VERSION_MINOR) "." STR(NVIM_VERSION_PATCH)\ +# define NVIM_VERSION_MEDIUM "v" STR(NVIM_VERSION_MAJOR) \ + "." STR(NVIM_VERSION_MINOR) "." STR(NVIM_VERSION_PATCH) \ NVIM_VERSION_PRERELEASE #endif #define NVIM_VERSION_LONG "NVIM " NVIM_VERSION_MEDIUM @@ -1992,7 +1992,8 @@ bool has_vim_patch(int n) return false; } -Dictionary version_dict(void) { +Dictionary version_dict(void) +{ Dictionary d = ARRAY_DICT_INIT; PUT(d, "major", INTEGER_OBJ(NVIM_VERSION_MAJOR)); PUT(d, "minor", INTEGER_OBJ(NVIM_VERSION_MINOR)); @@ -2137,32 +2138,32 @@ void list_lua_version(void) Object ret = nlua_exec(cstr_as_string(code), (Array)ARRAY_DICT_INIT, &err); assert(!ERROR_SET(&err)); assert(ret.type == kObjectTypeString); - MSG(ret.data.string.data); + msg(ret.data.string.data); api_free_object(ret); } void list_version(void) { - MSG(longVersion); - MSG(version_buildtype); + msg(longVersion); + msg(version_buildtype); list_lua_version(); #ifndef NDEBUG - MSG(version_cflags); + msg(version_cflags); #endif #ifdef HAVE_PATHDEF if ((*compiled_user != NUL) || (*compiled_sys != NUL)) { - MSG_PUTS(_("\nCompiled ")); + msg_puts(_("\nCompiled ")); if (*compiled_user != NUL) { - MSG_PUTS(_("by ")); - MSG_PUTS(compiled_user); + msg_puts(_("by ")); + msg_puts((const char *)compiled_user); } if (*compiled_sys != NUL) { - MSG_PUTS("@"); - MSG_PUTS(compiled_sys); + msg_puts("@"); + msg_puts((const char *)compiled_sys); } } #endif // ifdef HAVE_PATHDEF |