diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-19 15:31:30 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-19 15:31:30 -0300 |
commit | a2b1c279f184ea8cfb6de941753cb2bf82ffac19 (patch) | |
tree | 9e59a1a90227e031d0487e60cad8c7b349442aec | |
parent | 2f128c5130b962bc691aa1f7eaf5882b3e826c23 (diff) | |
download | lua-a2b1c279f184ea8cfb6de941753cb2bf82ffac19.tar.gz lua-a2b1c279f184ea8cfb6de941753cb2bf82ffac19.tar.bz2 lua-a2b1c279f184ea8cfb6de941753cb2bf82ffac19.zip |
'LUA_USELONGLONG' on by default on Linux + LUA_USE_HEXAFLOAT renamed
to LUA_USE_STRTODHEX (as Lua 5.2 always *uses* hexa floats)
-rw-r--r-- | luaconf.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.152 2010/12/08 12:58:04 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.153 2010/12/10 19:03:46 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 | */ |
@@ -44,8 +44,9 @@ | |||
44 | #define LUA_USE_POSIX | 44 | #define LUA_USE_POSIX |
45 | #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ | 45 | #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ |
46 | #define LUA_USE_READLINE /* needs some extra libraries */ | 46 | #define LUA_USE_READLINE /* needs some extra libraries */ |
47 | #define LUA_USE_HEXAFLOAT /* assume 'strtod' handles hexa formats */ | 47 | #define LUA_USE_STRTODHEX /* assume 'strtod' handles hexa formats */ |
48 | #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ | 48 | #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ |
49 | #define LUA_USELONGLONG /* assume support for long long */ | ||
49 | #endif | 50 | #endif |
50 | 51 | ||
51 | #if defined(LUA_USE_MACOSX) | 52 | #if defined(LUA_USE_MACOSX) |
@@ -397,7 +398,7 @@ | |||
397 | */ | 398 | */ |
398 | #define lua_str2number(s,p) strtod((s), (p)) | 399 | #define lua_str2number(s,p) strtod((s), (p)) |
399 | 400 | ||
400 | #if defined(LUA_USE_HEXAFLOAT) | 401 | #if defined(LUA_USE_STRTODHEX) |
401 | #define lua_strx2number(s,p) strtod((s), (p)) | 402 | #define lua_strx2number(s,p) strtod((s), (p)) |
402 | #endif | 403 | #endif |
403 | 404 | ||