aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
commit72659a06050632da1a9b4c492302be46ac283f6b (patch)
treebac06b4ea523ba5443564d0869e392180d4b7b77 /lfunc.c
parentdfaf8c5291fa8aef5bedbfa375853475364ac76e (diff)
downloadlua-72659a06050632da1a9b4c492302be46ac283f6b.tar.gz
lua-72659a06050632da1a9b4c492302be46ac283f6b.tar.bz2
lua-72659a06050632da1a9b4c492302be46ac283f6b.zip
no more explicit support for wide-chars; too much troble...
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lfunc.c b/lfunc.c
index 1e903a5b..8af857a8 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lfunc.c,v 1.48 2001/10/02 16:45:03 roberto Exp $ 2** $Id: lfunc.c,v 1.49 2001/11/06 21:41:53 roberto Exp $
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*/
@@ -7,7 +7,6 @@
7 7
8#include <stdlib.h> 8#include <stdlib.h>
9 9
10#define LUA_PRIVATE
11#include "lua.h" 10#include "lua.h"
12 11
13#include "lfunc.h" 12#include "lfunc.h"
@@ -157,7 +156,7 @@ void luaF_freeclosure (lua_State *L, Closure *c) {
157** Look for n-th local variable at line `line' in function `func'. 156** Look for n-th local variable at line `line' in function `func'.
158** Returns NULL if not found. 157** Returns NULL if not found.
159*/ 158*/
160const l_char *luaF_getlocalname (const Proto *f, int local_number, int pc) { 159const char *luaF_getlocalname (const Proto *f, int local_number, int pc) {
161 int i; 160 int i;
162 for (i = 0; i<f->sizelocvars && f->locvars[i].startpc <= pc; i++) { 161 for (i = 0; i<f->sizelocvars && f->locvars[i].startpc <= pc; i++) {
163 if (pc < f->locvars[i].endpc) { /* is variable active? */ 162 if (pc < f->locvars[i].endpc) { /* is variable active? */