From cc5033174532158129fa48ffb783d7b8a314c529 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 29 Nov 2024 19:15:01 +0100 Subject: [BOX32][WRAPPED] Added one more obstack wrapped function --- src/libtools/obstack.c | 6 ++++++ src/wrapped32/generated/functions_list.txt | 1 + src/wrapped32/generated/wrappedlibctypes32.h | 1 + src/wrapped32/wrappedlibc_private.h | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libtools/obstack.c b/src/libtools/obstack.c index 2522f37b..3f923f8a 100644 --- a/src/libtools/obstack.c +++ b/src/libtools/obstack.c @@ -221,6 +221,12 @@ EXPORT void my__obstack_newchunk(x64emu_t* emu, struct obstack* obstack, int s) { _obstack_newchunk(obstack, s); } +#ifdef BOX32 +EXPORT void my32__obstack_newchunk(x64emu_t* emu, struct obstack* obstack, int s) +{ + _obstack_newchunk(obstack, s); +} +#endif EXPORT int32_t my_obstack_vprintf(x64emu_t* emu, struct obstack* obstack, void* fmt, x64_va_list_t V) { diff --git a/src/wrapped32/generated/functions_list.txt b/src/wrapped32/generated/functions_list.txt index 14ea3e57..413b519c 100644 --- a/src/wrapped32/generated/functions_list.txt +++ b/src/wrapped32/generated/functions_list.txt @@ -1764,6 +1764,7 @@ wrappedlibc: - asctime - vEip: - vEpi: + - _obstack_newchunk - vEpu: - vEpp: - iEip: diff --git a/src/wrapped32/generated/wrappedlibctypes32.h b/src/wrapped32/generated/wrappedlibctypes32.h index 6f1f2481..31212429 100644 --- a/src/wrapped32/generated/wrappedlibctypes32.h +++ b/src/wrapped32/generated/wrappedlibctypes32.h @@ -148,6 +148,7 @@ typedef int32_t (*iEpLiLppp_t)(void*, uintptr_t, int32_t, uintptr_t, void*, void GO(getifaddrs, iEbp__t) \ GO(ctime, pErl__t) \ GO(asctime, pEriiiiiiiiilt__t) \ + GO(_obstack_newchunk, vEpi_t) \ GO(futimens, iEip_t) \ GO(futimes, iEip_t) \ GO(getrlimit, iEup_t) \ diff --git a/src/wrapped32/wrappedlibc_private.h b/src/wrapped32/wrappedlibc_private.h index 67a4aa79..d5b8c0e7 100755 --- a/src/wrapped32/wrappedlibc_private.h +++ b/src/wrapped32/wrappedlibc_private.h @@ -1194,7 +1194,7 @@ GOW(ntohs, WEW) //GOM(_obstack_free, vEpp) //%%,noE //GOM(obstack_free, vEpp) //%%,noE // _obstack_memory_used -//GOM(_obstack_newchunk, vEpi) //%%,noE +GOM(_obstack_newchunk, vEEpi) // obstack_printf // Weak // __obstack_printf_chk GOWM(obstack_vprintf, iEEpppp) //%% -- cgit 1.4.1