diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 2.82 2014/10/10 22:23:04 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.83 2014/10/17 16:28:21 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -218,8 +218,8 @@ static void buffreplace (LexState *ls, char from, char to) { | |||
218 | } | 218 | } |
219 | 219 | ||
220 | 220 | ||
221 | #if !defined(getlocaledecpoint) | 221 | #if !defined(l_getlocaledecpoint) |
222 | #define getlocaledecpoint() (localeconv()->decimal_point[0]) | 222 | #define l_getlocaledecpoint() (localeconv()->decimal_point[0]) |
223 | #endif | 223 | #endif |
224 | 224 | ||
225 | 225 | ||
@@ -231,7 +231,7 @@ static void buffreplace (LexState *ls, char from, char to) { | |||
231 | */ | 231 | */ |
232 | static void trydecpoint (LexState *ls, TValue *o) { | 232 | static void trydecpoint (LexState *ls, TValue *o) { |
233 | char old = ls->decpoint; | 233 | char old = ls->decpoint; |
234 | ls->decpoint = getlocaledecpoint(); | 234 | ls->decpoint = l_getlocaledecpoint(); |
235 | buffreplace(ls, old, ls->decpoint); /* try new decimal separator */ | 235 | buffreplace(ls, old, ls->decpoint); /* try new decimal separator */ |
236 | if (!buff2num(ls->buff, o)) { | 236 | if (!buff2num(ls->buff, o)) { |
237 | /* format error with correct decimal point: no more options */ | 237 | /* format error with correct decimal point: no more options */ |