about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-11-29 19:15:01 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-11-29 19:15:01 +0100
commitcc5033174532158129fa48ffb783d7b8a314c529 (patch)
tree459947ef2112a7759e578c2d7bea07cd3bf1f456
parent2777bc142fd401139ce563946e8a649dc5ba35d0 (diff)
downloadbox64-cc5033174532158129fa48ffb783d7b8a314c529.tar.gz
box64-cc5033174532158129fa48ffb783d7b8a314c529.zip
[BOX32][WRAPPED] Added one more obstack wrapped function
-rw-r--r--src/libtools/obstack.c6
-rw-r--r--src/wrapped32/generated/functions_list.txt1
-rw-r--r--src/wrapped32/generated/wrappedlibctypes32.h1
-rwxr-xr-xsrc/wrapped32/wrappedlibc_private.h2
4 files changed, 9 insertions, 1 deletions
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)  //%%