summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-25 19:16:10 +0200
committerJo-Philipp Wich <jo@mein.io>2021-05-25 21:02:40 +0200
commitd4edadc839bd0b5a1345c9f5a42dd8a8d0cdf4f1 (patch)
tree56b81d6e7f580e05bec813f9486c11e258593408
parentd81bad7683165df8b9e3a8f8edf253129ce6f4b2 (diff)
lib: rename uc_lib_init() to uc_load_stdlib()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--lib.c2
-rw-r--r--lib.h2
-rw-r--r--main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib.c b/lib.c
index 466d56a..1a70d37 100644
--- a/lib.c
+++ b/lib.c
@@ -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);
}
diff --git a/lib.h b/lib.h
index e243272..2d27b04 100644
--- a/lib.h
+++ b/lib.h
@@ -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);
diff --git a/main.c b/main.c
index 078de6c..4b34ef2 100644
--- a/main.c
+++ b/main.c
@@ -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);