From 48d0674c2e85ef7bb447a8a45fbc6af80508f10e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Apr 2015 15:41:57 -0300 Subject: more consistent use of locale radix character across Lua --- llex.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index 0c3eb4dd..15eb29be 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 2.90 2015/03/03 18:17:04 roberto Exp roberto $ +** $Id: llex.c,v 2.91 2015/03/28 19:14:47 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -221,11 +221,6 @@ static void buffreplace (LexState *ls, char from, char to) { } -#if !defined(l_getlocaledecpoint) -#define l_getlocaledecpoint() (localeconv()->decimal_point[0]) -#endif - - #define buff2num(b,o) (luaO_str2num(luaZ_buffer(b), o) != 0) /* @@ -234,7 +229,7 @@ static void buffreplace (LexState *ls, char from, char to) { */ static void trydecpoint (LexState *ls, TValue *o) { char old = ls->decpoint; - ls->decpoint = l_getlocaledecpoint(); + ls->decpoint = lua_getlocaledecpoint(); buffreplace(ls, old, ls->decpoint); /* try new decimal separator */ if (!buff2num(ls->buff, o)) { /* format error with correct decimal point: no more options */ -- cgit v1.2.3-55-g6feb