mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142)
- c_longlong and c_longdouble need experimental WASM bigint.
- Skip tests that need threading
- Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
(cherry picked from commit 8625802d85
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
e4d72d1863
commit
4d2c972ff7
9 changed files with 26 additions and 9 deletions
|
@ -19,7 +19,11 @@
|
|||
* to avoid allocating a massive buffer on the stack.
|
||||
*/
|
||||
#ifndef CTYPES_MAX_ARGCOUNT
|
||||
#define CTYPES_MAX_ARGCOUNT 1024
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#define CTYPES_MAX_ARGCOUNT 1000
|
||||
#else
|
||||
#define CTYPES_MAX_ARGCOUNT 1024
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef struct tagPyCArgObject PyCArgObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue