summaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-05 09:34:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-05 09:34:19 -0300
commitfa233012511e42740cb3ed12d553ad8f0a8e49d2 (patch)
tree566b2370f1096e8ddcf6ace08a1e6660d9a7448f /lobject.c
parent94c2449d25d0e00d72c2aa22904d6ff2cbb11ee2 (diff)
downloadlua-fa233012511e42740cb3ed12d553ad8f0a8e49d2.tar.gz
lua-fa233012511e42740cb3ed12d553ad8f0a8e49d2.tar.bz2
lua-fa233012511e42740cb3ed12d553ad8f0a8e49d2.zip
defintions for lua_number2str and lua_str2number don't need to be public
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lobject.c b/lobject.c
index 34cb1ad1..ce3f757b 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.81 2002/05/16 18:39:46 roberto Exp roberto $ 2** $Id: lobject.c,v 1.82 2002/06/03 14:08:43 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -19,6 +19,11 @@
19#include "lvm.h" 19#include "lvm.h"
20 20
21 21
22/* function to convert a string to a lua_Number */
23#ifndef lua_str2number
24#define lua_str2number(s,p) strtod((s), (p))
25#endif
26
22 27
23const TObject luaO_nilobject = {LUA_TNIL, {NULL}}; 28const TObject luaO_nilobject = {LUA_TNIL, {NULL}};
24 29