diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-09 11:50:08 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-09 11:50:08 -0200 |
commit | 80b3d28f4a9e518bf40b35f786199919180bfcd4 (patch) | |
tree | e25a410ba61883244207e25b16a853991b417ebb /lfunc.c | |
parent | 69d97712ecfcd06aa4edb7374b262131210d0bbc (diff) | |
download | lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.gz lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.bz2 lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.zip |
details (mainly error messages)
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.5 1997/10/24 17:17:24 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.6 1997/11/19 17:29:23 roberto Exp roberto $ |
3 | ** Lua Funcion auxiliar | 3 | ** Auxiliar functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
@@ -11,8 +11,8 @@ | |||
11 | #include "lmem.h" | 11 | #include "lmem.h" |
12 | #include "lstate.h" | 12 | #include "lstate.h" |
13 | 13 | ||
14 | #define gcsizeproto(p) 5 | 14 | #define gcsizeproto(p) 5 /* approximate "weight" for a prototype */ |
15 | #define gcsizeclosure(c) 1 | 15 | #define gcsizeclosure(c) 1 /* approximate "weight" for a closure */ |
16 | 16 | ||
17 | 17 | ||
18 | 18 | ||
@@ -83,7 +83,7 @@ void luaF_freeclosure (Closure *l) | |||
83 | 83 | ||
84 | 84 | ||
85 | /* | 85 | /* |
86 | ** Look for n-esim local variable at line "line" in function "func". | 86 | ** Look for n-th local variable at line "line" in function "func". |
87 | ** Returns NULL if not found. | 87 | ** Returns NULL if not found. |
88 | */ | 88 | */ |
89 | char *luaF_getlocalname (TProtoFunc *func, int local_number, int line) | 89 | char *luaF_getlocalname (TProtoFunc *func, int local_number, int line) |