Fix and enable faulthandler module compilation

- Fixed non-constant initializer error by replacing Py_ARRAY_LENGTH with sizeof
- Enabled faulthandler.c in CMakeLists.txt
- Removed faulthandler stubs from frozen_stubs.c
- Updated STUBS.md to reflect faulthandler is now functional

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-28 23:38:30 +00:00
parent 9b25757234
commit 9af9379805
4 changed files with 17 additions and 25 deletions

View File

@@ -66,19 +66,6 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
return PyStatus_Ok();
}
/* Faulthandler stubs - module excluded from build */
int
_PyFaulthandler_Init(int enable)
{
return 0;
}
void
_PyFaulthandler_Fini(void)
{
/* No-op */
}
/* plock stub - not available on all systems */
#ifndef HAVE_PLOCK
int plock(int op)