From 98b9c84a369b9f9fa2ee0c87724fcc2066aa0d65 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 23 Jun 2021 19:31:19 +0200 Subject: lib: expose stdlib function array Signed-off-by: Jo-Philipp Wich --- lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib.c') 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 * -- cgit v1.2.3