aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-14 17:46:57 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-14 17:46:57 -0200
commit8e7451512f01a89b4230be65cf086f7c1d41d2e2 (patch)
tree2679a6305b6d7612ca9705142e3d4dbdcf32d676 /lfunc.c
parent4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec (diff)
downloadlua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.gz
lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.bz2
lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.zip
some more `const's
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lfunc.c b/lfunc.c
index ea8a9a42..fc97c0a3 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lfunc.c,v 1.11 1999/08/16 20:52:00 roberto Exp roberto $ 2** $Id: lfunc.c,v 1.12 1999/10/04 17:51:04 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*/
@@ -62,7 +62,8 @@ void luaF_freeclosure (Closure *c) {
62** Look for n-th local variable at line "line" in function "func". 62** Look for n-th local variable at line "line" in function "func".
63** Returns NULL if not found. 63** Returns NULL if not found.
64*/ 64*/
65const char *luaF_getlocalname (TProtoFunc *func, int local_number, int line) { 65const char *luaF_getlocalname (const TProtoFunc *func,
66 int local_number, int line) {
66 int count = 0; 67 int count = 0;
67 const char *varname = NULL; 68 const char *varname = NULL;
68 LocVar *lv = func->locvars; 69 LocVar *lv = func->locvars;