about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorLiZhuoheng <114734429+zohanzephyr@users.noreply.github.com>2024-06-13 13:46:27 +0800
committerGitHub <noreply@github.com>2024-06-13 07:46:27 +0200
commit3a82dc6aad852c9e655e04b801ec67d17e8441c6 (patch)
tree8cd07bb7f4a3c8f28fb60ff43438f4b4da8491c1 /src
parente42b9e2866b3f3f17990ea0431577de3cb903ea6 (diff)
downloadbox64-3a82dc6aad852c9e655e04b801ec67d17e8441c6.tar.gz
box64-3a82dc6aad852c9e655e04b801ec67d17e8441c6.zip
Added more wrapped function to libunistring2 (#1582)
* Added more wrapped function to libunistring2

* add wrapper.c
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrapper.c3
-rw-r--r--src/wrapped/generated/wrapper.h1
-rw-r--r--src/wrapped/wrappedlibunistring2_private.h37
4 files changed, 42 insertions, 0 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 24aaa4e8..0728f409 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -1991,6 +1991,7 @@
 #() iFpiCCpu
 #() iFpiuuup
 #() iFpiuupp
+#() iFpipiii
 #() iFpipipi
 #() iFpipipp
 #() iFpipupp
diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c
index 37fd5864..9d49cf79 100644
--- a/src/wrapped/generated/wrapper.c
+++ b/src/wrapped/generated/wrapper.c
@@ -2029,6 +2029,7 @@ typedef int32_t (*iFpiippp_t)(void*, int32_t, int32_t, void*, void*, void*);
 typedef int32_t (*iFpiCCpu_t)(void*, int32_t, uint8_t, uint8_t, void*, uint32_t);
 typedef int32_t (*iFpiuuup_t)(void*, int32_t, uint32_t, uint32_t, uint32_t, void*);
 typedef int32_t (*iFpiuupp_t)(void*, int32_t, uint32_t, uint32_t, void*, void*);
+typedef int32_t (*iFpipiii_t)(void*, int32_t, void*, int32_t, int32_t, int32_t);
 typedef int32_t (*iFpipipi_t)(void*, int32_t, void*, int32_t, void*, int32_t);
 typedef int32_t (*iFpipipp_t)(void*, int32_t, void*, int32_t, void*, void*);
 typedef int32_t (*iFpipupp_t)(void*, int32_t, void*, uint32_t, void*, void*);
@@ -5113,6 +5114,7 @@ void iFpiippp(x64emu_t *emu, uintptr_t fcn) { iFpiippp_t fn = (iFpiippp_t)fcn; R
 void iFpiCCpu(x64emu_t *emu, uintptr_t fcn) { iFpiCCpu_t fn = (iFpiCCpu_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (int32_t)R_RSI, (uint8_t)R_RDX, (uint8_t)R_RCX, (void*)R_R8, (uint32_t)R_R9); }
 void iFpiuuup(x64emu_t *emu, uintptr_t fcn) { iFpiuuup_t fn = (iFpiuuup_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (int32_t)R_RSI, (uint32_t)R_RDX, (uint32_t)R_RCX, (uint32_t)R_R8, (void*)R_R9); }
 void iFpiuupp(x64emu_t *emu, uintptr_t fcn) { iFpiuupp_t fn = (iFpiuupp_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (int32_t)R_RSI, (uint32_t)R_RDX, (uint32_t)R_RCX, (void*)R_R8, (void*)R_R9); }
+void iFpipiii(x64emu_t *emu, uintptr_t fcn) { iFpipiii_t fn = (iFpipiii_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX, (int32_t)R_RCX, (int32_t)R_R8, (int32_t)R_R9); }
 void iFpipipi(x64emu_t *emu, uintptr_t fcn) { iFpipipi_t fn = (iFpipipi_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX, (int32_t)R_RCX, (void*)R_R8, (int32_t)R_R9); }
 void iFpipipp(x64emu_t *emu, uintptr_t fcn) { iFpipipp_t fn = (iFpipipp_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX, (int32_t)R_RCX, (void*)R_R8, (void*)R_R9); }
 void iFpipupp(x64emu_t *emu, uintptr_t fcn) { iFpipupp_t fn = (iFpipupp_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX, (uint32_t)R_RCX, (void*)R_R8, (void*)R_R9); }
@@ -7828,6 +7830,7 @@ int isSimpleWrapper(wrapper_t fun) {
 	if (fun == &iFpiCCpu) return 1;
 	if (fun == &iFpiuuup) return 1;
 	if (fun == &iFpiuupp) return 1;
+	if (fun == &iFpipiii) return 1;
 	if (fun == &iFpipipi) return 1;
 	if (fun == &iFpipipp) return 1;
 	if (fun == &iFpipupp) return 1;
diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h
index e2883b2d..25cd1b2d 100644
--- a/src/wrapped/generated/wrapper.h
+++ b/src/wrapped/generated/wrapper.h
@@ -2029,6 +2029,7 @@ void iFpiippp(x64emu_t *emu, uintptr_t fnc);
 void iFpiCCpu(x64emu_t *emu, uintptr_t fnc);
 void iFpiuuup(x64emu_t *emu, uintptr_t fnc);
 void iFpiuupp(x64emu_t *emu, uintptr_t fnc);
+void iFpipiii(x64emu_t *emu, uintptr_t fnc);
 void iFpipipi(x64emu_t *emu, uintptr_t fnc);
 void iFpipipp(x64emu_t *emu, uintptr_t fnc);
 void iFpipupp(x64emu_t *emu, uintptr_t fnc);
diff --git a/src/wrapped/wrappedlibunistring2_private.h b/src/wrapped/wrappedlibunistring2_private.h
index e6d6a130..78961052 100644
--- a/src/wrapped/wrappedlibunistring2_private.h
+++ b/src/wrapped/wrappedlibunistring2_private.h
@@ -4,3 +4,40 @@ error Meh...
 
 GO(uninorm_nfc, pFpipp)
 GO(uninorm_nfkc, pFpipp)
+GO(uc_is_property_join_control, iFu)
+GO(u8_check, pFpi)
+GO(u16_normalize, iFpipiii)
+DATA(UC_CATEGORY_Me, 4)
+DATA(UC_CATEGORY_Lo, 4)
+DATA(UC_CATEGORY_Pc, 4)
+DATA(UC_CATEGORY_Ps, 4)
+DATA(UC_CATEGORY_Lm, 4)
+DATA(UC_CATEGORY_Sm, 4)
+DATA(UC_CATEGORY_Pf, 4)
+DATA(UC_CATEGORY_Mc, 4)
+DATA(UC_CATEGORY_Lu, 4)
+DATA(UC_CATEGORY_Nd, 4)
+DATA(UC_CATEGORY_Po, 4)
+DATA(UC_CATEGORY_Zs, 4)
+DATA(UC_CATEGORY_Nl, 4)
+DATA(UC_CATEGORY_Sc, 4)
+DATA(UC_CATEGORY_Pe, 4)
+DATA(UC_CATEGORY_Pi, 4)
+DATA(UC_CATEGORY_Cc, 4)
+DATA(UC_CATEGORY_So, 4)
+DATA(UC_CATEGORY_Sk, 4)
+DATA(UC_CATEGORY_Mn, 4)
+DATA(UC_CATEGORY_Lt, 4)
+DATA(UC_CATEGORY_Ll, 4)
+DATA(UC_CATEGORY_No, 4)
+DATA(UC_CATEGORY_Pd, 4)
+GO(u32_to_u8, pFpip)
+GO(u8_to_u16, pFpip)
+GO(uc_general_category_and_not, iFuLL)
+GO(uc_general_category_or, iFuL)
+GO(uc_is_property_not_a_character, iFuL)
+GO(u32_normalize, iFpipi)
+GO(uc_is_property_default_ignorable_code_point, iFu)
+GO(uc_is_general_category, iFuL)
+GO(u8_to_u32, pFpip)
+GO(u16_to_u8, pFpip)