diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
commit | 39b79783297bee79db9853b63d199e120a009a8f (patch) | |
tree | c738c621c4c28d8822c2f785400786301985273b /lfunc.c | |
parent | d164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff) | |
download | lua-39b79783297bee79db9853b63d199e120a009a8f.tar.gz lua-39b79783297bee79db9853b63d199e120a009a8f.tar.bz2 lua-39b79783297bee79db9853b63d199e120a009a8f.zip |
first (big) step to support wide chars
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.40 2001/02/09 20:22:29 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.41 2001/02/20 18:28:11 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 | */ |
@@ -74,7 +74,7 @@ void luaF_freeclosure (lua_State *L, Closure *c) { | |||
74 | ** Look for n-th local variable at line `line' in function `func'. | 74 | ** Look for n-th local variable at line `line' in function `func'. |
75 | ** Returns NULL if not found. | 75 | ** Returns NULL if not found. |
76 | */ | 76 | */ |
77 | const char *luaF_getlocalname (const Proto *f, int local_number, int pc) { | 77 | const l_char *luaF_getlocalname (const Proto *f, int local_number, int pc) { |
78 | int i; | 78 | int i; |
79 | for (i = 0; i<f->sizelocvars && f->locvars[i].startpc <= pc; i++) { | 79 | for (i = 0; i<f->sizelocvars && f->locvars[i].startpc <= pc; i++) { |
80 | if (pc < f->locvars[i].endpc) { /* is variable active? */ | 80 | if (pc < f->locvars[i].endpc) { /* is variable active? */ |