From 8e7451512f01a89b4230be65cf086f7c1d41d2e2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 14 Oct 1999 17:46:57 -0200 Subject: some more `const's --- lfunc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lfunc.c') diff --git a/lfunc.c b/lfunc.c index ea8a9a42..fc97c0a3 100644 --- a/lfunc.c +++ b/lfunc.c @@ -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; -- cgit v1.2.3-55-g6feb