diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-28 10:55:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-28 10:55:41 -0200 |
commit | 0183b8030c80f57b87874ff7867ccdb172d9d3dc (patch) | |
tree | 1033b5a84489a2f1f1bd210b1b120155cd7aeed7 /ltests.c | |
parent | 8c49e198654567f770a7d5081b886a7c35201d81 (diff) | |
download | lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.tar.gz lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.tar.bz2 lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.zip |
`free' gets size of the block: complete control over memory use
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.53 2000/10/30 16:29:59 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.54 2000/10/31 13:10:24 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -116,7 +116,7 @@ static int liststrings (lua_State *L) { | |||
116 | 1, "Lua function expected"); | 116 | 1, "Lua function expected"); |
117 | p = clvalue(luaA_index(L, 1))->f.l; | 117 | p = clvalue(luaA_index(L, 1))->f.l; |
118 | lua_newtable(L); | 118 | lua_newtable(L); |
119 | for (i=0; i<p->nkstr; i++) { | 119 | for (i=0; i<p->sizekstr; i++) { |
120 | lua_pushnumber(L, i+1); | 120 | lua_pushnumber(L, i+1); |
121 | lua_pushstring(L, p->kstr[i]->str); | 121 | lua_pushstring(L, p->kstr[i]->str); |
122 | lua_settable(L, -3); | 122 | lua_settable(L, -3); |