mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove FEAT_FLOAT
Support for floating point variables
This commit is contained in:
parent
ef5d9ccefe
commit
b4ca3abc9f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user