File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88#include <stdlib.h>
99
1010#include "ps_ast.h"
11- #include "ps_signature.h"
12- #include "ps_type_definition.h"
11+ #include "ps_value.h"
1312
1413#ifndef _PS_EXECUTABLE_H
1514#define _PS_EXECUTABLE_H
@@ -20,9 +19,6 @@ extern "C"
2019#endif
2120
2221 // Forward references
23- typedef struct s_ps_formal_signature ps_formal_signature ;
24- typedef struct s_ps_type_definition ps_type_definition ;
25- typedef struct s_ps_interpreter ps_interpreter ;
2622 typedef struct s_ps_value ps_value ;
2723 typedef struct s_ps_symbol ps_symbol ;
2824
@@ -50,9 +46,9 @@ extern "C"
5046 {
5147 ps_executable_kind kind ;
5248 union {
53- void * address ; /** @brief Generic pointer to function/procedure */
49+ void * address ; /** @brief Generic pointer to system function/procedure */
5450 ps_function_1arg func_1arg ; /** @brief Pointer to system function with 1 value argument */
55- ps_function_1arg_s func_1arg_s ; /** @brief Pointer to system function with 1 symbol argument */
51+ ps_function_1arg_s func_1arg_s ; /** @brief Pointer to system function with 1 byref argument */
5652 ps_function_2args func_2args ; /** @brief Pointer to system function with 2 value arguments */
5753 ps_procedure_1arg proc_1arg ; /** @brief Pointer to system procedure with 1 value argument */
5854 ps_procedure_file_read proc_file_read ; /** @brief Pointer to "read(file, variable)" system procedure */
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ ps_executable *ps_executable_free(ps_executable *executable)
3636{
3737 if (executable == NULL )
3838 return NULL ;
39- // System function?
4039 if (ps_executable_is_system (executable -> kind ))
4140 return NULL ;
4241 executable -> block = ps_ast_free_block (executable -> block );
You can’t perform that action at this time.
0 commit comments