diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:46:57 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:46:57 -0200 |
commit | 8e7451512f01a89b4230be65cf086f7c1d41d2e2 (patch) | |
tree | 2679a6305b6d7612ca9705142e3d4dbdcf32d676 /lfunc.c | |
parent | 4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec (diff) | |
download | lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.gz lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.bz2 lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.zip |
some more `const's
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | */ |
65 | const char *luaF_getlocalname (TProtoFunc *func, int local_number, int line) { | 65 | const 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; |