aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index 64747364..d74f1b9d 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -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))