mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Perform build and magnum tuning
Building o//third_party/python now takes 5 seconds on my PC This change works towards modifying Python to use runtime dispatching when appropriate. For example, when loading the magnums in the socket module, it's a good idea to check if the magnum is zero, because that means the local system platform doesn't support it.
This commit is contained in:
parent
ee7e296339
commit
d26d7ae0e4
1028 changed files with 6576 additions and 172777 deletions
23
third_party/python/Include/unicodeobject.h
vendored
23
third_party/python/Include/unicodeobject.h
vendored
|
@ -1,10 +1,9 @@
|
|||
#ifndef Py_UNICODEOBJECT_H
|
||||
#define Py_UNICODEOBJECT_H
|
||||
|
||||
#include <stdarg.h>
|
||||
COSMOPOLITAN_C_START_
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
|
||||
Unicode implementation based on original code by Fredrik Lundh,
|
||||
modified by Marc-Andre Lemburg (mal@lemburg.com) according to the
|
||||
Unicode Integration Proposal. (See
|
||||
|
@ -55,8 +54,6 @@ Copyright (c) Corporation for National Research Initiatives.
|
|||
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
* -------------------------------------------------------------------- */
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
/* === Internal API ======================================================= */
|
||||
|
||||
/* --- Internal Unicode Format -------------------------------------------- */
|
||||
|
@ -103,14 +100,6 @@ typedef wchar_t Py_UNICODE;
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WCHAR_H
|
||||
/* Work around a cosmetic bug in BSDI 4.x wchar.h; thanks to Thomas Wouters */
|
||||
# ifdef _HAVE_BSDI
|
||||
# include <time.h>
|
||||
# endif
|
||||
# include <wchar.h>
|
||||
#endif
|
||||
|
||||
/* Py_UCS4 and Py_UCS2 are typedefs for the respective
|
||||
unicode representations. */
|
||||
typedef uint32_t Py_UCS4;
|
||||
|
@ -186,10 +175,6 @@ typedef uint8_t Py_UCS1;
|
|||
|
||||
#endif /* Py_LIMITED_API */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* --- Unicode Type ------------------------------------------------------- */
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
|
@ -2336,7 +2321,5 @@ PyAPI_FUNC(void) _PyUnicode_ClearStaticStrings(void);
|
|||
PyAPI_FUNC(int) _PyUnicode_EQ(PyObject *, PyObject *);
|
||||
#endif /* !Py_LIMITED_API */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !Py_UNICODEOBJECT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue