about summary refs log tree commit diff stats
path: root/src/include/box64context.h
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/include/box64context.h
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/include/box64context.h')
-rw-r--r--src/include/box64context.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h
index d27a23af..ecf60f7f 100644
--- a/src/include/box64context.h
+++ b/src/include/box64context.h
@@ -35,7 +35,7 @@ typedef struct library_s library_t;
 typedef struct linkmap_s linkmap_t;
 typedef struct linkmap32_s linkmap32_t;
 typedef struct kh_threadstack_s kh_threadstack_t;
-typedef struct rbtree rbtree;
+typedef struct rbtree rbtree_t;
 typedef struct atfork_fnc_s {
     uintptr_t prepare;
     uintptr_t parent;
@@ -172,7 +172,7 @@ typedef struct box64context_s {
     pthread_mutex_t     mutex_bridge;
     #endif
     uintptr_t           max_db_size;    // the biggest (in x86_64 instructions bytes) built dynablock
-    rbtree*             db_sizes;
+    rbtree_t*             db_sizes;
     int                 trace_dynarec;
     pthread_mutex_t     mutex_lock;     // this is for the Test interpreter
     #if defined(__riscv) || defined(__loongarch64)