Mercurial > vim
comparison src/ex_cmds2.c @ 15597:536dd2bc5ac9 v8.1.0806
patch 8.1.0806: too many #ifdefs
commit https://github.com/vim/vim/commit/fc3abf47fbe1e426f2b676c316c81ee9ff607075
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 15:54:21 2019 +0100
patch 8.1.0806: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 2.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 16:00:08 +0100 |
parents | 1ec942f1b648 |
children | 734b1928a5aa |
comparison
equal
deleted
inserted
replaced
15596:d614c94f60fd | 15597:536dd2bc5ac9 |
---|---|
5419 | 5419 |
5420 /* Complicated #if; matches with where get_mess_env() is used below. */ | 5420 /* Complicated #if; matches with where get_mess_env() is used below. */ |
5421 #if (defined(FEAT_EVAL) && !((defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ | 5421 #if (defined(FEAT_EVAL) && !((defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ |
5422 && defined(LC_MESSAGES))) \ | 5422 && defined(LC_MESSAGES))) \ |
5423 || ((defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ | 5423 || ((defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ |
5424 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) \ | |
5425 && !defined(LC_MESSAGES)) | 5424 && !defined(LC_MESSAGES)) |
5426 /* | 5425 /* |
5427 * Get the language used for messages from the environment. | 5426 * Get the language used for messages from the environment. |
5428 */ | 5427 */ |
5429 static char_u * | 5428 static char_u * |
5483 # endif | 5482 # endif |
5484 set_vim_var_string(VV_LC_TIME, loc, -1); | 5483 set_vim_var_string(VV_LC_TIME, loc, -1); |
5485 } | 5484 } |
5486 #endif | 5485 #endif |
5487 | 5486 |
5488 #if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ | 5487 #if defined(HAVE_LOCALE_H) || defined(X_LOCALE) \ |
5489 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) | |
5490 /* | 5488 /* |
5491 * ":language": Set the language (locale). | 5489 * ":language": Set the language (locale). |
5492 */ | 5490 */ |
5493 void | 5491 void |
5494 ex_language(exarg_T *eap) | 5492 ex_language(exarg_T *eap) |