From a72fbf794d263d6c2e99e06f4efbe7a75d532a8c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 10 Jan 2005 17:16:29 -0200 Subject: detail --- luaconf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 64747364..d74f1b9d 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.25 2005/01/10 16:31:30 roberto Exp roberto $ +** $Id: luaconf.h,v 1.26 2005/01/10 18:17:39 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -237,6 +237,8 @@ __inline int l_lrint (double flt) /* function to convert a lua_Number to a string */ #include #define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) +/* maximum size of previous conversion */ +#define MAX_NUMBER2STR 32 /* 16 digits, sign, point and \0 (+ some extra) */ /* function to convert a string to a lua_Number */ #define lua_str2number(s,p) strtod((s), (p)) -- cgit v1.2.3-55-g6feb