Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more wrapped function to libunistring2 #1582

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/wrapped/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1991,6 +1991,7 @@
#() iFpiCCpu
#() iFpiuuup
#() iFpiuupp
#() iFpipiii
#() iFpipipi
#() iFpipipp
#() iFpipupp
Expand Down
3 changes: 3 additions & 0 deletions src/wrapped/generated/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*);
Expand Down Expand Up @@ -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); }
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/wrapped/generated/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
37 changes: 37 additions & 0 deletions src/wrapped/wrappedlibunistring2_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)