aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-22 09:44:20 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-22 09:44:20 -0200
commit6b12b8253247079941e6303e9bb47aaeec03331b (patch)
tree913b96240cbb290f758e6a4de4213a53132ab99c /llex.c
parentd7a0179cd60657079d522c17da1e5aa5cc20532d (diff)
downloadlua-6b12b8253247079941e6303e9bb47aaeec03331b.tar.gz
lua-6b12b8253247079941e6303e9bb47aaeec03331b.tar.bz2
lua-6b12b8253247079941e6303e9bb47aaeec03331b.zip
added 'l_' prefix for names that can be redefined externally
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/llex.c b/llex.c
index 9816efd9..c9ade3ae 100644
--- a/llex.c
+++ b/llex.c
@@ -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*/
232static void trydecpoint (LexState *ls, TValue *o) { 232static 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 */