Skip to content

Commit

Permalink
Wrap calls to 'get_mess_env' into LIBINTL #ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarruda committed Feb 1, 2014
1 parent 9f380dd commit 8253e29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ file( GLOB IO_SOURCES io/*.c )

add_executable (vim ${NEOVIM_SOURCES} ${IO_SOURCES})

target_link_libraries (vim m)
target_link_libraries (vim m uv rt pthread)

include(CheckLibraryExists)
check_library_exists(termcap tgetent "" HAVE_LIBTERMCAP)
Expand Down
8 changes: 4 additions & 4 deletions src/ex_cmds2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3394,10 +3394,10 @@ void set_lang_var() {

/* When LC_MESSAGES isn't defined use the value from $LC_MESSAGES, fall
* back to LC_CTYPE if it's empty. */
# if defined(HAVE_GET_LOCALE_VAL) && defined(LC_MESSAGES)
loc = (char_u *)get_locale_val(LC_MESSAGES);
# else
# ifdef HAVE_WORKING_LIBINTL
loc = get_mess_env();
# else
loc = (char_u *)get_locale_val(LC_MESSAGES);
# endif
set_vim_var_string(VV_LANG, loc, -1);

Expand Down Expand Up @@ -3448,7 +3448,7 @@ exarg_T *eap;
}

if (*name == NUL) {
#ifndef LC_MESSAGES
#ifdef HAVE_WORKING_LIBINTL
if (what == VIM_LC_MESSAGES)
p = get_mess_env();
else
Expand Down
6 changes: 0 additions & 6 deletions src/getchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -4249,12 +4249,6 @@ int *local_ptr; /* return: buffer-local mapping or NULL */
}


/*
* Set up default mappings.
*/
void init_mappings() {
}

#if defined(MSDOS) || defined(MSWIN) || defined(OS2) \
|| defined(FEAT_CMDWIN) || defined(MACOS) || defined(PROTO)
/*
Expand Down
2 changes: 0 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,6 @@ main(argc, argv)
msg_scroll = TRUE;
no_wait_return = TRUE;

init_mappings(); /* set up initial mappings */

init_highlight(TRUE, FALSE); /* set the default highlight groups */
TIME_MSG("init highlight");

Expand Down

0 comments on commit 8253e29

Please sign in to comment.