mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
"freefunc" now is public.
This commit is contained in:
parent
c2eb02aaf6
commit
1dc0e82aeb
4
func.c
4
func.c
@ -43,7 +43,7 @@ void luaI_insertfunction (TFunc *f)
|
|||||||
/*
|
/*
|
||||||
** Free function
|
** Free function
|
||||||
*/
|
*/
|
||||||
static void freefunc (TFunc *f)
|
void luaI_freefunc (TFunc *f)
|
||||||
{
|
{
|
||||||
luaI_free (f->code);
|
luaI_free (f->code);
|
||||||
luaI_free (f->locvars);
|
luaI_free (f->locvars);
|
||||||
@ -68,7 +68,7 @@ Long luaI_funccollector (void)
|
|||||||
function_root = next;
|
function_root = next;
|
||||||
else
|
else
|
||||||
prev->next = next;
|
prev->next = next;
|
||||||
freefunc (curr);
|
luaI_freefunc (curr);
|
||||||
++counter;
|
++counter;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
4
func.h
4
func.h
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: $
|
** $Id: func.h,v 1.7 1996/03/08 12:04:04 roberto Exp roberto $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef func_h
|
#ifndef func_h
|
||||||
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "lua.h"
|
#include "lua.h"
|
||||||
|
#include "tree.h"
|
||||||
|
|
||||||
typedef struct LocVar
|
typedef struct LocVar
|
||||||
{
|
{
|
||||||
@ -33,6 +34,7 @@ Long luaI_funccollector (void);
|
|||||||
void luaI_insertfunction (TFunc *f);
|
void luaI_insertfunction (TFunc *f);
|
||||||
|
|
||||||
void luaI_initTFunc (TFunc *f);
|
void luaI_initTFunc (TFunc *f);
|
||||||
|
void luaI_freefunc (TFunc *f);
|
||||||
|
|
||||||
void luaI_registerlocalvar (TaggedString *varname, int line);
|
void luaI_registerlocalvar (TaggedString *varname, int line);
|
||||||
void luaI_unregisterlocalvar (int line);
|
void luaI_unregisterlocalvar (int line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user