aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-14 12:54:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-14 12:54:20 -0300
commit1dc0e82aeb43d2265fcb6834430e8471729c77e2 (patch)
tree8bb9f7280481321955091c4e5f5986f90f72a683
parentc2eb02aaf6f0c852b5528a6d47d098af103a6258 (diff)
downloadlua-1dc0e82aeb43d2265fcb6834430e8471729c77e2.tar.gz
lua-1dc0e82aeb43d2265fcb6834430e8471729c77e2.tar.bz2
lua-1dc0e82aeb43d2265fcb6834430e8471729c77e2.zip
"freefunc" now is public.
-rw-r--r--func.c4
-rw-r--r--func.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/func.c b/func.c
index 8762b1f6..58ff0fd2 100644
--- a/func.c
+++ b/func.c
@@ -43,7 +43,7 @@ void luaI_insertfunction (TFunc *f)
43/* 43/*
44** Free function 44** Free function
45*/ 45*/
46static void freefunc (TFunc *f) 46void luaI_freefunc (TFunc *f)
47{ 47{
48 luaI_free (f->code); 48 luaI_free (f->code);
49 luaI_free (f->locvars); 49 luaI_free (f->locvars);
@@ -68,7 +68,7 @@ Long luaI_funccollector (void)
68 function_root = next; 68 function_root = next;
69 else 69 else
70 prev->next = next; 70 prev->next = next;
71 freefunc (curr); 71 luaI_freefunc (curr);
72 ++counter; 72 ++counter;
73 } 73 }
74 else 74 else
diff --git a/func.h b/func.h
index d8d339bc..74e954c7 100644
--- a/func.h
+++ b/func.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: $ 2** $Id: func.h,v 1.7 1996/03/08 12:04:04 roberto Exp roberto $
3*/ 3*/
4 4
5#ifndef func_h 5#ifndef func_h
@@ -7,6 +7,7 @@
7 7
8#include "types.h" 8#include "types.h"
9#include "lua.h" 9#include "lua.h"
10#include "tree.h"
10 11
11typedef struct LocVar 12typedef struct LocVar
12{ 13{
@@ -33,6 +34,7 @@ Long luaI_funccollector (void);
33void luaI_insertfunction (TFunc *f); 34void luaI_insertfunction (TFunc *f);
34 35
35void luaI_initTFunc (TFunc *f); 36void luaI_initTFunc (TFunc *f);
37void luaI_freefunc (TFunc *f);
36 38
37void luaI_registerlocalvar (TaggedString *varname, int line); 39void luaI_registerlocalvar (TaggedString *varname, int line);
38void luaI_unregisterlocalvar (int line); 40void luaI_unregisterlocalvar (int line);