summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-06-23 19:39:37 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commit01795764e95983e416f5db14dd5599206b9ea41b (patch)
tree48d0bb9d4d13ea86d0fc387275b73cc4a8565a8f /lib.c
parent98b9c84a369b9f9fa2ee0c87724fcc2066aa0d65 (diff)
lib: rename uc_add_proto_functions() to uc_add_functions()
The naming is an artifact from before the introduction of the new type system. In the current code, there is nothing special about prototypes, they're simple object values. Also introduce a new singular uc_add_function() convenience macro while we're at it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index c8bed8a..e960681 100644
--- a/lib.c
+++ b/lib.c
@@ -2945,7 +2945,7 @@ const uc_cfunction_list uc_stdlib_functions[] = {
void
uc_load_stdlib(uc_value_t *scope)
{
- uc_add_proto_functions(scope, uc_stdlib_functions);
+ uc_add_functions(scope, uc_stdlib_functions);
}
uc_value_t *