summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib.c4
-rw-r--r--lib.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 6438bec..c8bed8a 100644
--- a/lib.c
+++ b/lib.c
@@ -2881,7 +2881,7 @@ uc_b64enc(uc_vm *vm, size_t nargs)
*/
-static const uc_cfunction_list functions[] = {
+const uc_cfunction_list uc_stdlib_functions[] = {
{ "chr", uc_chr },
{ "die", uc_die },
{ "exists", uc_exists },
@@ -2945,7 +2945,7 @@ static const uc_cfunction_list functions[] = {
void
uc_load_stdlib(uc_value_t *scope)
{
- uc_add_proto_functions(scope, functions);
+ uc_add_proto_functions(scope, uc_stdlib_functions);
}
uc_value_t *
diff --git a/lib.h b/lib.h
index 5425da2..e6bae8b 100644
--- a/lib.h
+++ b/lib.h
@@ -25,6 +25,8 @@ typedef struct {
uc_cfn_ptr_t func;
} uc_cfunction_list;
+extern const uc_cfunction_list uc_stdlib_functions[];
+
void uc_load_stdlib(uc_value_t *scope);
uc_value_t *uc_alloc_global(uc_vm *vm);