diff options
| -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 | ||
