aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-04-03 15:41:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-04-03 15:41:57 -0300
commit48d0674c2e85ef7bb447a8a45fbc6af80508f10e (patch)
tree9d7b34ea077dfbe155866c9b87ae47ba901b2a7e /luaconf.h
parent6ffe006f5c57321a9b3c12a246b142a0394bf62d (diff)
downloadlua-48d0674c2e85ef7bb447a8a45fbc6af80508f10e.tar.gz
lua-48d0674c2e85ef7bb447a8a45fbc6af80508f10e.tar.bz2
lua-48d0674c2e85ef7bb447a8a45fbc6af80508f10e.zip
more consistent use of locale radix character across Lua
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/luaconf.h b/luaconf.h
index f948bb5f..b5966a4d 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.248 2015/03/06 19:49:50 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.249 2015/03/31 12:00:07 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -569,7 +569,7 @@
569 569
570/* 570/*
571** {================================================================== 571** {==================================================================
572** Dependencies with C99 572** Dependencies with C99 and other C details
573** =================================================================== 573** ===================================================================
574*/ 574*/
575 575
@@ -626,6 +626,16 @@
626#endif 626#endif
627#endif 627#endif
628 628
629
630/*
631@@ lua_getlocaledecpoint gets the locale "radix character" (decimal point).
632** Change that if you do not want to use C locales. (Code using this
633** macro must include header 'locale.h'.)
634*/
635#if !defined(lua_getlocaledecpoint)
636#define lua_getlocaledecpoint() (localeconv()->decimal_point[0])
637#endif
638
629/* }================================================================== */ 639/* }================================================================== */
630 640
631 641