aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 14:17:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 14:17:25 -0300
commit39b79783297bee79db9853b63d199e120a009a8f (patch)
treec738c621c4c28d8822c2f785400786301985273b /lfunc.c
parentd164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lfunc.c b/lfunc.c
index 3b8dfd21..7d6353cc 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -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*/
77const char *luaF_getlocalname (const Proto *f, int local_number, int pc) { 77const 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? */