diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-05-25 19:16:10 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-05-25 21:02:40 +0200 |
commit | d4edadc839bd0b5a1345c9f5a42dd8a8d0cdf4f1 (patch) | |
tree | 56b81d6e7f580e05bec813f9486c11e258593408 | |
parent | d81bad7683165df8b9e3a8f8edf253129ce6f4b2 (diff) |
lib: rename uc_lib_init() to uc_load_stdlib()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | lib.c | 2 | ||||
-rw-r--r-- | lib.h | 2 | ||||
-rw-r--r-- | main.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -2579,7 +2579,7 @@ static const uc_cfunction_list functions[] = { void -uc_lib_init(uc_value_t *scope) +uc_load_stdlib(uc_value_t *scope) { uc_add_proto_functions(scope, functions); } @@ -25,7 +25,7 @@ typedef struct { uc_cfn_ptr_t func; } uc_cfunction_list; -void uc_lib_init(uc_value_t *scope); +void uc_load_stdlib(uc_value_t *scope); uc_value_t *uc_alloc_global(uc_vm *vm); bool format_source_context(uc_stringbuf_t *buf, uc_source *src, size_t off, bool compact); @@ -112,7 +112,7 @@ parse(uc_parse_config *config, uc_source *src, } /* load std functions into global scope */ - uc_lib_init(globals); + uc_load_stdlib(globals); rc = uc_vm_execute(&vm, entry, globals, modules); |