diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-05-07 13:02:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-05-07 13:02:16 -0300 |
commit | ee07ad346dde41180a4e27a3029940c89ce42bf0 (patch) | |
tree | 56569ab4d302d081e9b1108931a62133ade0b4bb | |
parent | fee9e473f256cf5abe9072be7d912e87f66c8818 (diff) | |
download | lua-ee07ad346dde41180a4e27a3029940c89ce42bf0.tar.gz lua-ee07ad346dde41180a4e27a3029940c89ce42bf0.tar.bz2 lua-ee07ad346dde41180a4e27a3029940c89ce42bf0.zip |
`getn' doesn't need this field (values cannot be nil)
-rw-r--r-- | lua.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.121 2003/03/24 12:40:01 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.122 2003/04/03 13:34:42 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -155,10 +155,6 @@ static void getargs (char *argv[], int n) { | |||
155 | lua_pushstring(L, argv[i]); | 155 | lua_pushstring(L, argv[i]); |
156 | lua_rawset(L, -3); | 156 | lua_rawset(L, -3); |
157 | } | 157 | } |
158 | /* arg.n = maximum index in table `arg' */ | ||
159 | lua_pushliteral(L, "n"); | ||
160 | lua_pushnumber(L, i-n-1); | ||
161 | lua_rawset(L, -3); | ||
162 | } | 158 | } |
163 | 159 | ||
164 | 160 | ||