about summary refs log tree commit diff stats
path: root/src/box64context.c
diff options
context:
space:
mode:
authorJim Huang <jserv.tw@gmail.com>2024-11-07 04:56:34 +0800
committerGitHub <noreply@github.com>2024-11-06 21:56:34 +0100
commit394e81af452f64439fb8d8ab7254ce19f71d4390 (patch)
treefd5968a4ee6c3887ba74aaa631d7f75a48ce9e25 /src/box64context.c
parent6af8d70cc1620bf8e7927ade2e42e4cea41384be (diff)
downloadbox64-394e81af452f64439fb8d8ab7254ce19f71d4390.tar.gz
box64-394e81af452f64439fb8d8ab7254ce19f71d4390.zip
[RBTREE] Unify naming and prevent unintended symbol exposure (#2005)
Red-black tree operations now consistently use the 'rbtree_' prefix, and
internal functions remain unexposed. Tested on RV64GC, resulting in a
498-byte reduction in the .text section size.
Diffstat (limited to 'src/box64context.c')
-rw-r--r--src/box64context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/box64context.c b/src/box64context.c
index 2a2e1cae..b88f3808 100644
--- a/src/box64context.c
+++ b/src/box64context.c
@@ -287,7 +287,7 @@ box64context_t *NewBox64Context(int argc)
     initAllHelpers(context);
     
     #ifdef DYNAREC
-    context->db_sizes = init_rbtree("db_sizes");
+    context->db_sizes = rbtree_init("db_sizes");
     #endif
 
     return context;
@@ -391,7 +391,7 @@ void FreeBox64Context(box64context_t** context)
 
 #ifdef DYNAREC
     //dynarec_log(LOG_INFO, "BOX64 Dynarec at exit: Max DB=%d, righter=%d\n", ctx->max_db_size, rb_get_righter(ctx->db_sizes));
-    delete_rbtree(ctx->db_sizes);
+    rbtree_delete(ctx->db_sizes);
 #endif
 
     finiAllHelpers(ctx);