diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-08 17:42:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-08 17:42:07 -0300 |
commit | 0802a9df9e9326c5e61f0d6b69685c2c253de5f2 (patch) | |
tree | c0f34b8fbf79694ea3d5f9d98f14680ba74a2b14 /lfunc.c | |
parent | f90bc248b3c3c18941a96038b2a7517ad571d8b1 (diff) | |
download | lua-0802a9df9e9326c5e61f0d6b69685c2c253de5f2.tar.gz lua-0802a9df9e9326c5e61f0d6b69685c2c253de5f2.tar.bz2 lua-0802a9df9e9326c5e61f0d6b69685c2c253de5f2.zip |
no more options for debug information: it is always on
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.26 2000/08/07 20:21:34 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.27 2000/08/08 18:26:05 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -79,8 +79,6 @@ const char *luaF_getlocalname (const Proto *func, int local_number, int pc) { | |||
79 | int count = 0; | 79 | int count = 0; |
80 | const char *varname = NULL; | 80 | const char *varname = NULL; |
81 | LocVar *lv = func->locvars; | 81 | LocVar *lv = func->locvars; |
82 | if (lv == NULL) | ||
83 | return NULL; | ||
84 | for (; lv->pc != -1 && lv->pc <= pc; lv++) { | 82 | for (; lv->pc != -1 && lv->pc <= pc; lv++) { |
85 | if (lv->varname) { /* register */ | 83 | if (lv->varname) { /* register */ |
86 | if (++count == local_number) | 84 | if (++count == local_number) |