mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Implement tree-shaking for Python sources
This commit is contained in:
parent
81287b7ec0
commit
44c87b83ff
110 changed files with 899 additions and 1922 deletions
13
third_party/python/Objects/unicodeobject.c
vendored
13
third_party/python/Objects/unicodeobject.c
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue