diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.25 2005/01/10 16:31:30 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.26 2005/01/10 18:17:39 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 | */ |
@@ -237,6 +237,8 @@ __inline int l_lrint (double flt) | |||
237 | /* function to convert a lua_Number to a string */ | 237 | /* function to convert a lua_Number to a string */ |
238 | #include <stdio.h> | 238 | #include <stdio.h> |
239 | #define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) | 239 | #define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) |
240 | /* maximum size of previous conversion */ | ||
241 | #define MAX_NUMBER2STR 32 /* 16 digits, sign, point and \0 (+ some extra) */ | ||
240 | 242 | ||
241 | /* function to convert a string to a lua_Number */ | 243 | /* function to convert a string to a lua_Number */ |
242 | #define lua_str2number(s,p) strtod((s), (p)) | 244 | #define lua_str2number(s,p) strtod((s), (p)) |