mirror of
https://github.com/ptitSeb/box86.git
synced 2025-05-08 21:08:57 +08:00
Added wrapped libpcre (backported from box64)
This commit is contained in:
parent
786680a288
commit
c2375d030b
@ -548,6 +548,7 @@ set(WRAPPEDS
|
||||
"${BOX86_ROOT}/src/wrapped/wrappedtbbmallocproxy.c"
|
||||
"${BOX86_ROOT}/src/wrapped/wrappedlibfuse.c"
|
||||
"${BOX86_ROOT}/src/wrapped/wrappedatomic.c"
|
||||
"${BOX86_ROOT}/src/wrapped/wrappedlibpcre.c"
|
||||
)
|
||||
if(ANDROID)
|
||||
list(APPEND WRAPPEDS
|
||||
|
@ -178,6 +178,7 @@ GO("libFAudio.so.0", faudio)
|
||||
GO("libtbbmalloc_proxy.so.2", tbbmallocproxy)
|
||||
GO("libfuse.so.2", libfuse)
|
||||
GO("libatomic.so.1", atomic)
|
||||
GO("libpcre.so.3", libpcre)
|
||||
|
||||
#ifdef ANDROID
|
||||
GO("libc.so", libc)
|
||||
|
@ -1698,6 +1698,7 @@
|
||||
#() pFpiiuuu
|
||||
#() pFpiUUUU
|
||||
#() pFpippip
|
||||
#() pFpipppp
|
||||
#() pFpuuuuu
|
||||
#() pFpupppp
|
||||
#() pFplpppp
|
||||
@ -2014,6 +2015,7 @@
|
||||
#() iFpdiiiIiI
|
||||
#() iFppiiiiiu
|
||||
#() iFppIIIppp
|
||||
#() iFpppiiipi
|
||||
#() iFpppiippp
|
||||
#() iFpppipipi
|
||||
#() iFpppipppp
|
||||
@ -2133,6 +2135,7 @@
|
||||
#() iFppuLLpupp
|
||||
#() iFppupppupp
|
||||
#() iFppLpiippp
|
||||
#() iFpppiiipip
|
||||
#() iFpppiiuuii
|
||||
#() iFpppiipiiu
|
||||
#() iFpppLLLupp
|
||||
@ -2213,6 +2216,7 @@
|
||||
#() iFppipiippii
|
||||
#() iFppuuiiiiii
|
||||
#() iFppuuiiuupi
|
||||
#() iFpppiiipipi
|
||||
#() iFpppLLipppp
|
||||
#() iFppppiiuuii
|
||||
#() iFpppppppipi
|
||||
@ -3542,6 +3546,7 @@ wrappedlibnm:
|
||||
- nm_client_add_and_activate_connection_async
|
||||
wrappedlibogg:
|
||||
wrappedlibpanel:
|
||||
wrappedlibpcre:
|
||||
wrappedlibpthread:
|
||||
- vFv:
|
||||
- __pthread_initialize
|
||||
|
8
src/wrapped/generated/wrappedlibpcredefs.h
Normal file
8
src/wrapped/generated/wrappedlibpcredefs.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*******************************************************************
|
||||
* File automatically generated by rebuild_wrappers.py (v2.0.0.11) *
|
||||
*******************************************************************/
|
||||
#ifndef __wrappedlibpcreDEFS_H_
|
||||
#define __wrappedlibpcreDEFS_H_
|
||||
|
||||
|
||||
#endif // __wrappedlibpcreDEFS_H_
|
17
src/wrapped/generated/wrappedlibpcretypes.h
Normal file
17
src/wrapped/generated/wrappedlibpcretypes.h
Normal file
@ -0,0 +1,17 @@
|
||||
/*******************************************************************
|
||||
* File automatically generated by rebuild_wrappers.py (v2.0.0.11) *
|
||||
*******************************************************************/
|
||||
#ifndef __wrappedlibpcreTYPES_H_
|
||||
#define __wrappedlibpcreTYPES_H_
|
||||
|
||||
#ifndef LIBNAME
|
||||
#error You should only #include this file inside a wrapped*.c file
|
||||
#endif
|
||||
#ifndef ADDED_FUNCTIONS
|
||||
#define ADDED_FUNCTIONS()
|
||||
#endif
|
||||
|
||||
|
||||
#define SUPER() ADDED_FUNCTIONS()
|
||||
|
||||
#endif // __wrappedlibpcreTYPES_H_
|
8
src/wrapped/generated/wrappedlibpcreundefs.h
Normal file
8
src/wrapped/generated/wrappedlibpcreundefs.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*******************************************************************
|
||||
* File automatically generated by rebuild_wrappers.py (v2.0.0.11) *
|
||||
*******************************************************************/
|
||||
#ifndef __wrappedlibpcreUNDEFS_H_
|
||||
#define __wrappedlibpcreUNDEFS_H_
|
||||
|
||||
|
||||
#endif // __wrappedlibpcreUNDEFS_H_
|
@ -1770,6 +1770,7 @@ typedef void* (*pFpiiCCC_t)(void*, int32_t, int32_t, uint8_t, uint8_t, uint8_t);
|
||||
typedef void* (*pFpiiuuu_t)(void*, int32_t, int32_t, uint32_t, uint32_t, uint32_t);
|
||||
typedef void* (*pFpiUUUU_t)(void*, int32_t, uint64_t, uint64_t, uint64_t, uint64_t);
|
||||
typedef void* (*pFpippip_t)(void*, int32_t, void*, void*, int32_t, void*);
|
||||
typedef void* (*pFpipppp_t)(void*, int32_t, void*, void*, void*, void*);
|
||||
typedef void* (*pFpuuuuu_t)(void*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t);
|
||||
typedef void* (*pFpupppp_t)(void*, uint32_t, void*, void*, void*, void*);
|
||||
typedef void* (*pFplpppp_t)(void*, intptr_t, void*, void*, void*, void*);
|
||||
@ -2086,6 +2087,7 @@ typedef int32_t (*iFpUuuLpUi_t)(void*, uint64_t, uint32_t, uint32_t, uintptr_t,
|
||||
typedef int32_t (*iFpdiiiIiI_t)(void*, double, int32_t, int32_t, int32_t, int64_t, int32_t, int64_t);
|
||||
typedef int32_t (*iFppiiiiiu_t)(void*, void*, int32_t, int32_t, int32_t, int32_t, int32_t, uint32_t);
|
||||
typedef int32_t (*iFppIIIppp_t)(void*, void*, int64_t, int64_t, int64_t, void*, void*, void*);
|
||||
typedef int32_t (*iFpppiiipi_t)(void*, void*, void*, int32_t, int32_t, int32_t, void*, int32_t);
|
||||
typedef int32_t (*iFpppiippp_t)(void*, void*, void*, int32_t, int32_t, void*, void*, void*);
|
||||
typedef int32_t (*iFpppipipi_t)(void*, void*, void*, int32_t, void*, int32_t, void*, int32_t);
|
||||
typedef int32_t (*iFpppipppp_t)(void*, void*, void*, int32_t, void*, void*, void*, void*);
|
||||
@ -2205,6 +2207,7 @@ typedef int32_t (*iFppipiiipi_t)(void*, void*, int32_t, void*, int32_t, int32_t,
|
||||
typedef int32_t (*iFppuLLpupp_t)(void*, void*, uint32_t, uintptr_t, uintptr_t, void*, uint32_t, void*, void*);
|
||||
typedef int32_t (*iFppupppupp_t)(void*, void*, uint32_t, void*, void*, void*, uint32_t, void*, void*);
|
||||
typedef int32_t (*iFppLpiippp_t)(void*, void*, uintptr_t, void*, int32_t, int32_t, void*, void*, void*);
|
||||
typedef int32_t (*iFpppiiipip_t)(void*, void*, void*, int32_t, int32_t, int32_t, void*, int32_t, void*);
|
||||
typedef int32_t (*iFpppiiuuii_t)(void*, void*, void*, int32_t, int32_t, uint32_t, uint32_t, int32_t, int32_t);
|
||||
typedef int32_t (*iFpppiipiiu_t)(void*, void*, void*, int32_t, int32_t, void*, int32_t, int32_t, uint32_t);
|
||||
typedef int32_t (*iFpppLLLupp_t)(void*, void*, void*, uintptr_t, uintptr_t, uintptr_t, uint32_t, void*, void*);
|
||||
@ -2285,6 +2288,7 @@ typedef int32_t (*iFpddpippppp_t)(void*, double, double, void*, int32_t, void*,
|
||||
typedef int32_t (*iFppipiippii_t)(void*, void*, int32_t, void*, int32_t, int32_t, void*, void*, int32_t, int32_t);
|
||||
typedef int32_t (*iFppuuiiiiii_t)(void*, void*, uint32_t, uint32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t);
|
||||
typedef int32_t (*iFppuuiiuupi_t)(void*, void*, uint32_t, uint32_t, int32_t, int32_t, uint32_t, uint32_t, void*, int32_t);
|
||||
typedef int32_t (*iFpppiiipipi_t)(void*, void*, void*, int32_t, int32_t, int32_t, void*, int32_t, void*, int32_t);
|
||||
typedef int32_t (*iFpppLLipppp_t)(void*, void*, void*, uintptr_t, uintptr_t, int32_t, void*, void*, void*, void*);
|
||||
typedef int32_t (*iFppppiiuuii_t)(void*, void*, void*, void*, int32_t, int32_t, uint32_t, uint32_t, int32_t, int32_t);
|
||||
typedef int32_t (*iFpppppppipi_t)(void*, void*, void*, void*, void*, void*, void*, int32_t, void*, int32_t);
|
||||
@ -4205,6 +4209,7 @@ void pFpiiCCC(x86emu_t *emu, uintptr_t fcn) { pFpiiCCC_t fn = (pFpiiCCC_t)fcn; R
|
||||
void pFpiiuuu(x86emu_t *emu, uintptr_t fcn) { pFpiiuuu_t fn = (pFpiiuuu_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16), *(uint32_t*)(R_ESP + 20), *(uint32_t*)(R_ESP + 24)); }
|
||||
void pFpiUUUU(x86emu_t *emu, uintptr_t fcn) { pFpiUUUU_t fn = (pFpiUUUU_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(uint64_t*)(R_ESP + 12), *(uint64_t*)(R_ESP + 20), *(uint64_t*)(R_ESP + 28), *(uint64_t*)(R_ESP + 36)); }
|
||||
void pFpippip(x86emu_t *emu, uintptr_t fcn) { pFpippip_t fn = (pFpippip_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(void**)(R_ESP + 12), *(void**)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(void**)(R_ESP + 24)); }
|
||||
void pFpipppp(x86emu_t *emu, uintptr_t fcn) { pFpipppp_t fn = (pFpipppp_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(void**)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20), *(void**)(R_ESP + 24)); }
|
||||
void pFpuuuuu(x86emu_t *emu, uintptr_t fcn) { pFpuuuuu_t fn = (pFpuuuuu_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16), *(uint32_t*)(R_ESP + 20), *(uint32_t*)(R_ESP + 24)); }
|
||||
void pFpupppp(x86emu_t *emu, uintptr_t fcn) { pFpupppp_t fn = (pFpupppp_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(void**)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20), *(void**)(R_ESP + 24)); }
|
||||
void pFplpppp(x86emu_t *emu, uintptr_t fcn) { pFplpppp_t fn = (pFplpppp_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(intptr_t*)(R_ESP + 8), *(void**)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20), *(void**)(R_ESP + 24)); }
|
||||
@ -4521,6 +4526,7 @@ void iFpUuuLpUi(x86emu_t *emu, uintptr_t fcn) { iFpUuuLpUi_t fn = (iFpUuuLpUi_t)
|
||||
void iFpdiiiIiI(x86emu_t *emu, uintptr_t fcn) { iFpdiiiIiI_t fn = (iFpdiiiIiI_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(double*)(R_ESP + 8), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(int64_t*)(R_ESP + 28), *(int32_t*)(R_ESP + 36), *(int64_t*)(R_ESP + 40)); }
|
||||
void iFppiiiiiu(x86emu_t *emu, uintptr_t fcn) { iFppiiiiiu_t fn = (iFppiiiiiu_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(int32_t*)(R_ESP + 28), *(uint32_t*)(R_ESP + 32)); }
|
||||
void iFppIIIppp(x86emu_t *emu, uintptr_t fcn) { iFppIIIppp_t fn = (iFppIIIppp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(int64_t*)(R_ESP + 12), *(int64_t*)(R_ESP + 20), *(int64_t*)(R_ESP + 28), *(void**)(R_ESP + 36), *(void**)(R_ESP + 40), *(void**)(R_ESP + 44)); }
|
||||
void iFpppiiipi(x86emu_t *emu, uintptr_t fcn) { iFpppiiipi_t fn = (iFpppiiipi_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(void**)(R_ESP + 28), *(int32_t*)(R_ESP + 32)); }
|
||||
void iFpppiippp(x86emu_t *emu, uintptr_t fcn) { iFpppiippp_t fn = (iFpppiippp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(void**)(R_ESP + 24), *(void**)(R_ESP + 28), *(void**)(R_ESP + 32)); }
|
||||
void iFpppipipi(x86emu_t *emu, uintptr_t fcn) { iFpppipipi_t fn = (iFpppipipi_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(void**)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(void**)(R_ESP + 28), *(int32_t*)(R_ESP + 32)); }
|
||||
void iFpppipppp(x86emu_t *emu, uintptr_t fcn) { iFpppipppp_t fn = (iFpppipppp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(void**)(R_ESP + 20), *(void**)(R_ESP + 24), *(void**)(R_ESP + 28), *(void**)(R_ESP + 32)); }
|
||||
@ -4640,6 +4646,7 @@ void iFppipiiipi(x86emu_t *emu, uintptr_t fcn) { iFppipiiipi_t fn = (iFppipiiipi
|
||||
void iFppuLLpupp(x86emu_t *emu, uintptr_t fcn) { iFppuLLpupp_t fn = (iFppuLLpupp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uintptr_t*)(R_ESP + 16), *(uintptr_t*)(R_ESP + 20), *(void**)(R_ESP + 24), *(uint32_t*)(R_ESP + 28), *(void**)(R_ESP + 32), *(void**)(R_ESP + 36)); }
|
||||
void iFppupppupp(x86emu_t *emu, uintptr_t fcn) { iFppupppupp_t fn = (iFppupppupp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20), *(void**)(R_ESP + 24), *(uint32_t*)(R_ESP + 28), *(void**)(R_ESP + 32), *(void**)(R_ESP + 36)); }
|
||||
void iFppLpiippp(x86emu_t *emu, uintptr_t fcn) { iFppLpiippp_t fn = (iFppLpiippp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(uintptr_t*)(R_ESP + 12), *(void**)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(void**)(R_ESP + 28), *(void**)(R_ESP + 32), *(void**)(R_ESP + 36)); }
|
||||
void iFpppiiipip(x86emu_t *emu, uintptr_t fcn) { iFpppiiipip_t fn = (iFpppiiipip_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(void**)(R_ESP + 28), *(int32_t*)(R_ESP + 32), *(void**)(R_ESP + 36)); }
|
||||
void iFpppiiuuii(x86emu_t *emu, uintptr_t fcn) { iFpppiiuuii_t fn = (iFpppiiuuii_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(uint32_t*)(R_ESP + 24), *(uint32_t*)(R_ESP + 28), *(int32_t*)(R_ESP + 32), *(int32_t*)(R_ESP + 36)); }
|
||||
void iFpppiipiiu(x86emu_t *emu, uintptr_t fcn) { iFpppiipiiu_t fn = (iFpppiipiiu_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(void**)(R_ESP + 24), *(int32_t*)(R_ESP + 28), *(int32_t*)(R_ESP + 32), *(uint32_t*)(R_ESP + 36)); }
|
||||
void iFpppLLLupp(x86emu_t *emu, uintptr_t fcn) { iFpppLLLupp_t fn = (iFpppLLLupp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(uintptr_t*)(R_ESP + 16), *(uintptr_t*)(R_ESP + 20), *(uintptr_t*)(R_ESP + 24), *(uint32_t*)(R_ESP + 28), *(void**)(R_ESP + 32), *(void**)(R_ESP + 36)); }
|
||||
@ -4720,6 +4727,7 @@ void iFpddpippppp(x86emu_t *emu, uintptr_t fcn) { iFpddpippppp_t fn = (iFpddpipp
|
||||
void iFppipiippii(x86emu_t *emu, uintptr_t fcn) { iFppipiippii_t fn = (iFppipiippii_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(void**)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(void**)(R_ESP + 28), *(void**)(R_ESP + 32), *(int32_t*)(R_ESP + 36), *(int32_t*)(R_ESP + 40)); }
|
||||
void iFppuuiiiiii(x86emu_t *emu, uintptr_t fcn) { iFppuuiiiiii_t fn = (iFppuuiiiiii_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(int32_t*)(R_ESP + 28), *(int32_t*)(R_ESP + 32), *(int32_t*)(R_ESP + 36), *(int32_t*)(R_ESP + 40)); }
|
||||
void iFppuuiiuupi(x86emu_t *emu, uintptr_t fcn) { iFppuuiiuupi_t fn = (iFppuuiiuupi_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(uint32_t*)(R_ESP + 28), *(uint32_t*)(R_ESP + 32), *(void**)(R_ESP + 36), *(int32_t*)(R_ESP + 40)); }
|
||||
void iFpppiiipipi(x86emu_t *emu, uintptr_t fcn) { iFpppiiipipi_t fn = (iFpppiiipipi_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(void**)(R_ESP + 28), *(int32_t*)(R_ESP + 32), *(void**)(R_ESP + 36), *(int32_t*)(R_ESP + 40)); }
|
||||
void iFpppLLipppp(x86emu_t *emu, uintptr_t fcn) { iFpppLLipppp_t fn = (iFpppLLipppp_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(uintptr_t*)(R_ESP + 16), *(uintptr_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(void**)(R_ESP + 28), *(void**)(R_ESP + 32), *(void**)(R_ESP + 36), *(void**)(R_ESP + 40)); }
|
||||
void iFppppiiuuii(x86emu_t *emu, uintptr_t fcn) { iFppppiiuuii_t fn = (iFppppiiuuii_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(void**)(R_ESP + 16), *(int32_t*)(R_ESP + 20), *(int32_t*)(R_ESP + 24), *(uint32_t*)(R_ESP + 28), *(uint32_t*)(R_ESP + 32), *(int32_t*)(R_ESP + 36), *(int32_t*)(R_ESP + 40)); }
|
||||
void iFpppppppipi(x86emu_t *emu, uintptr_t fcn) { iFpppppppipi_t fn = (iFpppppppipi_t)fcn; R_EAX=fn(*(void**)(R_ESP + 4), *(void**)(R_ESP + 8), *(void**)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20), *(void**)(R_ESP + 24), *(void**)(R_ESP + 28), *(int32_t*)(R_ESP + 32), *(void**)(R_ESP + 36), *(int32_t*)(R_ESP + 40)); }
|
||||
|
@ -1730,6 +1730,7 @@ void pFpiiCCC(x86emu_t *emu, uintptr_t fnc);
|
||||
void pFpiiuuu(x86emu_t *emu, uintptr_t fnc);
|
||||
void pFpiUUUU(x86emu_t *emu, uintptr_t fnc);
|
||||
void pFpippip(x86emu_t *emu, uintptr_t fnc);
|
||||
void pFpipppp(x86emu_t *emu, uintptr_t fnc);
|
||||
void pFpuuuuu(x86emu_t *emu, uintptr_t fnc);
|
||||
void pFpupppp(x86emu_t *emu, uintptr_t fnc);
|
||||
void pFplpppp(x86emu_t *emu, uintptr_t fnc);
|
||||
@ -2046,6 +2047,7 @@ void iFpUuuLpUi(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpdiiiIiI(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppiiiiiu(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppIIIppp(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppiiipi(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppiippp(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppipipi(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppipppp(x86emu_t *emu, uintptr_t fnc);
|
||||
@ -2165,6 +2167,7 @@ void iFppipiiipi(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppuLLpupp(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppupppupp(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppLpiippp(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppiiipip(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppiiuuii(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppiipiiu(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppLLLupp(x86emu_t *emu, uintptr_t fnc);
|
||||
@ -2245,6 +2248,7 @@ void iFpddpippppp(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppipiippii(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppuuiiiiii(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppuuiiuupi(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppiiipipi(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppLLipppp(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFppppiiuuii(x86emu_t *emu, uintptr_t fnc);
|
||||
void iFpppppppipi(x86emu_t *emu, uintptr_t fnc);
|
||||
|
34
src/wrapped/wrappedlibpcre.c
Normal file
34
src/wrapped/wrappedlibpcre.c
Normal file
@ -0,0 +1,34 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#define _GNU_SOURCE /* See feature_test_macros(7) */
|
||||
#include <dlfcn.h>
|
||||
|
||||
#include "wrappedlibs.h"
|
||||
|
||||
#include "wrapper.h"
|
||||
#include "bridge.h"
|
||||
#include "librarian/library_private.h"
|
||||
#include "x86emu.h"
|
||||
#include "callback.h"
|
||||
#include "debug.h"
|
||||
|
||||
const char* libpcreName = "libpcre.so.3";
|
||||
#define LIBNAME libpcre
|
||||
|
||||
typedef void (*pcre_free_t)(void *);
|
||||
EXPORT uintptr_t my_pcre_free;
|
||||
|
||||
void wrapped_pcre_free(void* p) {
|
||||
if(my_pcre_free)
|
||||
RunFunctionFmt(my_pcre_free, "p", p);
|
||||
else
|
||||
box_free(p);
|
||||
}
|
||||
EXPORT pcre_free_t pcre_free = wrapped_pcre_free;
|
||||
|
||||
#define CUSTOM_INIT \
|
||||
my_pcre_free = AddCheckBridge(lib->w.bridge, vFp, free, 0, "free");
|
||||
|
||||
#include "wrappedlib_init.h"
|
||||
|
37
src/wrapped/wrappedlibpcre_private.h
Normal file
37
src/wrapped/wrappedlibpcre_private.h
Normal file
@ -0,0 +1,37 @@
|
||||
#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
|
||||
#error meh!
|
||||
#endif
|
||||
|
||||
GO(pcre_assign_jit_stack, vFpp)
|
||||
//DATAM(pcre_callout, //int (*pcre_callout)(pcre_callout_block *);
|
||||
GO(pcre_compile, pFpippp)
|
||||
GO(pcre_compile2, pFpipppp)
|
||||
GO(pcre_config, iFip)
|
||||
GO(pcre_copy_named_substring, iFpppippi)
|
||||
GO(pcre_copy_substring, iFppiipi)
|
||||
GO(pcre_dfa_exec, iFpppiiipipi)
|
||||
GO(pcre_exec, iFpppiiipi)
|
||||
DATAM(pcre_free, sizeof(void*))
|
||||
GO(pcre_free_study, vFp)
|
||||
GO(pcre_free_substring, vFp)
|
||||
GO(pcre_free_substring_list, vFp)
|
||||
GO(pcre_fullinfo, iFppip)
|
||||
GO(pcre_get_named_substring, iFpppipp)
|
||||
GO(pcre_get_stringnumber, iFpp)
|
||||
GO(pcre_get_stringtable_entries, iFpppp)
|
||||
GO(pcre_get_substring, iFppiip)
|
||||
GO(pcre_get_substring_list, iFppip)
|
||||
GO(pcre_info, iFppp)
|
||||
GO(pcre_jit_exec, iFpppiiipip)
|
||||
GO(pcre_jit_free_unused_memory, vFv)
|
||||
GO(pcre_jit_stack_alloc, pFii)
|
||||
GO(pcre_jit_stack_free, vFp)
|
||||
GO(pcre_maketables, pFv)
|
||||
//DATAM(pcre_malloc, //void *(*pcre_malloc)(size_t);
|
||||
GO(pcre_pattern_to_host_byte_order, iFppp)
|
||||
GO(pcre_refcount, iFpi)
|
||||
//DATAM(pcre_stack_free, //void (*pcre_stack_free)(void *);
|
||||
//DATAM(pcre_stack_guard, //int (*pcre_stack_guard)(void);
|
||||
//DATAM(pcre_stack_malloc, //void *(*pcre_stack_malloc)(size_t);
|
||||
GO(pcre_study, pFpip)
|
||||
GO(pcre_version, pFv)
|
Loading…
x
Reference in New Issue
Block a user