some more `const's

This commit is contained in:
Roberto Ierusalimschy
1999-10-14 17:46:57 -02:00
parent 4e9f2d13d5
commit 8e7451512f
6 changed files with 17 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lfunc.c,v 1.11 1999/08/16 20:52:00 roberto Exp roberto $
** $Id: lfunc.c,v 1.12 1999/10/04 17:51:04 roberto Exp roberto $
** Auxiliary functions to manipulate prototypes and closures
** See Copyright Notice in lua.h
*/
@@ -62,7 +62,8 @@ void luaF_freeclosure (Closure *c) {
** Look for n-th local variable at line "line" in function "func".
** Returns NULL if not found.
*/
const char *luaF_getlocalname (TProtoFunc *func, int local_number, int line) {
const char *luaF_getlocalname (const TProtoFunc *func,
int local_number, int line) {
int count = 0;
const char *varname = NULL;
LocVar *lv = func->locvars;