From fa233012511e42740cb3ed12d553ad8f0a8e49d2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 5 Jun 2002 09:34:19 -0300 Subject: defintions for lua_number2str and lua_str2number don't need to be public --- lobject.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lobject.c') diff --git a/lobject.c b/lobject.c index 34cb1ad1..ce3f757b 100644 --- a/lobject.c +++ b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 1.81 2002/05/16 18:39:46 roberto Exp roberto $ +** $Id: lobject.c,v 1.82 2002/06/03 14:08:43 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -19,6 +19,11 @@ #include "lvm.h" +/* function to convert a string to a lua_Number */ +#ifndef lua_str2number +#define lua_str2number(s,p) strtod((s), (p)) +#endif + const TObject luaO_nilobject = {LUA_TNIL, {NULL}}; -- cgit v1.2.3-55-g6feb