compile: fix memory leaks
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef BSHELL_COMPILE_H_
|
||||
#define BSHELL_COMPILE_H_
|
||||
|
||||
#include <bshell/command/function.h>
|
||||
#include <bshell/runtime/script-block.h>
|
||||
|
||||
struct bshell_ast_node;
|
||||
@@ -8,5 +9,8 @@ struct bshell_ast_node;
|
||||
extern enum bshell_status bshell_compile(
|
||||
struct bshell_ast_node *src,
|
||||
bshell_scriptblock *dest);
|
||||
extern enum bshell_status bshell_compile_function(
|
||||
struct bshell_ast_node *src,
|
||||
bshell_function **out);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user