diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-04-30 17:13:38 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-04-30 17:13:38 -0300 |
commit | b4cd38ba6c148cf7db5deae6208b660c3417cac9 (patch) | |
tree | 8818b5e364c8ad5489a9755d3fc24110bccfdfe2 /lvm.c | |
parent | 079facab40542ff2e6be9ecc254fd148772b47c9 (diff) | |
download | lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.gz lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.bz2 lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.zip |
new scheme for configuration through `luaconf.h'
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.2 2004/03/16 12:31:40 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.3 2004/03/26 14:02:41 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -8,10 +8,8 @@ | |||
8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
9 | #include <string.h> | 9 | #include <string.h> |
10 | 10 | ||
11 | /* needed only when `lua_number2str' uses `sprintf' */ | ||
12 | #include <stdio.h> | ||
13 | |||
14 | #define lvm_c | 11 | #define lvm_c |
12 | #define LUA_CORE | ||
15 | 13 | ||
16 | #include "lua.h" | 14 | #include "lua.h" |
17 | 15 | ||
@@ -29,12 +27,6 @@ | |||
29 | 27 | ||
30 | 28 | ||
31 | 29 | ||
32 | /* function to convert a lua_Number to a string */ | ||
33 | #ifndef lua_number2str | ||
34 | #define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) | ||
35 | #endif | ||
36 | |||
37 | |||
38 | /* limit for table tag-method chains (to avoid loops) */ | 30 | /* limit for table tag-method chains (to avoid loops) */ |
39 | #define MAXTAGLOOP 100 | 31 | #define MAXTAGLOOP 100 |
40 | 32 | ||