Implement tree-shaking for Python sources

This commit is contained in:
Justine Tunney 2021-09-05 01:20:03 -07:00
parent 81287b7ec0
commit 44c87b83ff
110 changed files with 899 additions and 1922 deletions

View file

@ -38,9 +38,12 @@
#include "third_party/python/Include/ucnhash.h"
#include "third_party/python/Include/unicodeobject.h"
#include "third_party/python/Include/warnings.h"
#include "third_party/python/Include/yoink.h"
#include "third_party/python/Objects/stringlib/eq.inc"
/* clang-format off */
PYTHON_PROVIDE("_string");
/*
Unicode implementation based on original code by Fredrik Lundh,
@ -94,11 +97,6 @@ NOTE: In the interpreter's initialization phase, some globals are currently
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Maximum code point of Unicode 6.0: 0x10ffff (1,114,111) */
#define MAX_UNICODE 0x10ffff
@ -15760,8 +15758,3 @@ PyInit__string(void)
{
return PyModule_Create(&_string_module);
}
#ifdef __cplusplus
}
#endif