Remove FEAT_FLOAT

Support for floating point variables
This commit is contained in:
Hinidu 2014-04-12 09:28:46 +03:00 committed by Justin M. Keyes
parent ef5d9ccefe
commit b4ca3abc9f
5 changed files with 4 additions and 11 deletions

View File

@ -109,7 +109,6 @@
#define FEAT_DIGRAPHS
#define FEAT_FIND_ID
#define FEAT_FKMAP
#define FEAT_FLOAT
#define FEAT_FOLDING
#define FEAT_GETTEXT
#define FEAT_HANGULIN

View File

@ -12,6 +12,7 @@
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "nvim/vim.h"
#include "nvim/eval.h"
#include "nvim/buffer.h"
@ -69,10 +70,6 @@
#include "nvim/os/time.h"
#include "nvim/os/channel.h"
#if defined(FEAT_FLOAT)
# include <math.h>
#endif
#define DICT_MAXNEST 100 /* maximum nesting of lists and dicts */
#define DO_NOT_FREE_CNT 99999 /* refcount for dict or list that should not

View File

@ -3394,7 +3394,7 @@ void ex_language(exarg_T *eap)
#endif
{
loc = setlocale(what, (char *)name);
#if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
#ifdef LC_NUMERIC
/* Make sure strtod() uses a decimal point, not a comma. */
setlocale(LC_NUMERIC, "C");
#endif

View File

@ -880,7 +880,7 @@ static void init_locale(void)
{
setlocale(LC_ALL, "");
# if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
# ifdef LC_NUMERIC
/* Make sure strtod() uses a decimal point, not a comma. */
setlocale(LC_NUMERIC, "C");
# endif

View File

@ -13,6 +13,7 @@
#define MESSAGE_FILE /* don't include prototype for smsg() */
#include <string.h>
#include <math.h>
#include "nvim/vim.h"
#include "nvim/message.h"
@ -37,10 +38,6 @@
#include "nvim/os/os.h"
#include "nvim/os/event.h"
#if defined(FEAT_FLOAT)
# include <math.h>
#endif
static int other_sourcing_name(void);
static char_u *get_emsg_source(void);
static char_u *get_emsg_lnum(void);