diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-05 09:34:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-05 09:34:19 -0300 |
commit | fa233012511e42740cb3ed12d553ad8f0a8e49d2 (patch) | |
tree | 566b2370f1096e8ddcf6ace08a1e6660d9a7448f /lobject.c | |
parent | 94c2449d25d0e00d72c2aa22904d6ff2cbb11ee2 (diff) | |
download | lua-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 | ||
23 | const TObject luaO_nilobject = {LUA_TNIL, {NULL}}; | 28 | const TObject luaO_nilobject = {LUA_TNIL, {NULL}}; |
24 | 29 | ||