diff options
Diffstat (limited to 'include/program.h')
-rw-r--r-- | include/program.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/program.h b/include/program.h index b398a3a..aa318d9 100644 --- a/include/program.h +++ b/include/program.h @@ -50,7 +50,6 @@ typedef struct { typedef struct { Buffer/*<...>*/ data; u32 *string_indices; - u32 *extern_func_indices; u8 *intermediates_start; /* Reference inside @data */ u8 *strings_start; /* Reference inside @data */ u8 *funcs_start; /* Reference inside @data */ @@ -84,7 +83,7 @@ void amal_program_deinit(amal_program *self); returns @AMAL_PROGRAM_EXTERN_FUNC_ALREADY_EXISTS if a function with the name @name already exists in the program */ -CHECK_RESULT int amal_program_add_extern_func(amal_program *self, BufferView name, void *func_ptr, int args_byte_size); +CHECK_RESULT int amal_program_register_extern_func(amal_program *self, BufferView name, void *func_ptr, int args_byte_size); CHECK_RESULT int amal_program_append_bytecode(amal_program *self, Bytecode *bytecode); CHECK_RESULT int amal_program_run(amal_program *self); |