cosmopolitan/third_party/python/Modules/unicodedata_unidata.h
Justine Tunney 47a53e143b Productionize new APE loader and more
The APE_NO_MODIFY_SELF loader payload has been moved out of the examples
folder and improved so that it works on BSD systems, and permits general
elf program headers. This brings its quality up enough that it should be
acceptable to use by default for many programs, e.g. Python, Lua, SQLite
and Python. It's the responsibility of the user to define an appropriate
TMPDIR if /tmp is considered an adversarial environment. Mac OS shall be
supported by APE_NO_MODIFY_SELF soon.

Fixes and improvements have been made to program_executable_name as it's
now the one true way to get the absolute path of the executing image.

This change fixes a memory leak in linenoise history loading, introduced
by performance optimizations in 51904e2687
This change fixes a longstanding regression with Mach system calls, that
23ae9dfceb back in February which impacted
our sched_yield() implementation, which is why no one noticed until now.

The Blinkenlights PC emulator has been improved. We now fix rendering on
XNU and BSD by not making the assumption that the kernel terminal driver
understands UTF8 since that seems to break its internal modeling of \r\n
which is now being addressed by using \e[𝑦H instead. The paneling is now
more compact in real mode so you won't need to make your font as tiny if
you're only emulating an 8086 program. The CLMUL ISA is now emulated too

This change also makes improvement to time. CLOCK_MONOTONIC now does the
right thing on Windows NT. The nanosecond time module functions added in
Python 3.7 have been backported.

This change doubles the performance of Argon2 password stretching simply
by not using its copy_block and xor_block helper functions, as they were
trivial to inline thus resulting in us needing to iterate over each 1024
byte block four fewer times.

This change makes code size improvements. _PyUnicode_ToNumeric() was 64k
in size and now it's 10k. The CJK codec lookup tables now use lazy delta
zigzag deflate (δzd) encoding which reduces their size from 600k to 200k
plus the code bloat caused by macro abuse in _decimal.c is now addressed
so our fully-loaded statically-linked hermetically-sealed Python virtual
interpreter container is now 9.4 megs in the default build mode and 5.5m
in MODE=tiny which leaves plenty of room for chibicc.

The pydoc web server now accommodates the use case of people who work by
SSH'ing into a different machine w/ python.com -m pydoc -p8080 -h0.0.0.0

Finally Python Capsulae delenda est and won't be supported in the future
2021-10-02 08:27:03 -07:00

59 lines
2.9 KiB
C

#ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_UNICODEDATA_UNIDATA_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_UNICODEDATA_UNIDATA_H_
#include "third_party/python/Modules/unicodedata.h"
COSMOPOLITAN_C_START_
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
#define UNIDATA_VERSION "13.0.0"
#define UNIDATA_NAME_MAXLEN 256
extern const unsigned char _PyUnicode_Lexicon[121990];
#define _PyUnicode_LexiconOffsetBits 17
extern const unsigned int _PyUnicode_LexiconOffset[8727];
#define _PyUnicode_PhrasebookShift 8
#define _PyUnicode_PhrasebookShort 191
extern const unsigned char _PyUnicode_Phrasebook[188803];
extern const unsigned char _PyUnicode_PhrasebookOffset1[4352];
#define _PyUnicode_PhrasebookOffset2Bits 18
extern const unsigned int _PyUnicode_PhrasebookOffset2[25056];
#define _PyUnicode_CodeHashBits 20
extern const unsigned int _PyUnicode_CodeHash[40960];
#define _PyUnicode_CodeMagic 47
#define _PyUnicode_CodeSize 65536
#define _PyUnicode_CodePoly 65581
#define _PyUnicode_AliasesStart 0xf0000
#define _PyUnicode_AliasesEnd 0xf01d4
extern const unsigned int _PyUnicode_NameAliases[468];
#define _PyUnicode_NamedSequencesStart 0xf0200
#define _PyUnicode_NamedSequencesEnd 0xf03ba
extern const _PyUnicode_NamedSequence _PyUnicode_NamedSequences[442];
extern const _PyUnicode_Record _PyUnicode_Records[342];
#define _PyUnicode_RecordsShift 7
extern const unsigned short _PyUnicode_RecordsIndex1[8704];
extern const unsigned short _PyUnicode_RecordsIndex2[34176];
#define UNIDATA_TOTAL_FIRST 377
#define UNIDATA_TOTAL_LAST 63
extern const _PyUnicode_Reindex _PyUnicode_NfcFirst[211];
extern const _PyUnicode_Reindex _PyUnicode_NfcLast[40];
extern const char _PyUnicode_CategoryNames[31][3];
extern const char _PyUnicode_BidirectionalNames[24][4];
extern const char _PyUnicode_EastAsianWidthNames[6][3];
extern const char *const _PyUnicode_DecompPrefix[17];
#define _PyUnicode_DecompShift 7
#define _PyUnicode_DecompBits 18
extern const unsigned int _PyUnicode_Decomp[8032];
extern const unsigned char _PyUnicode_DecompIndex1[8704];
extern const unsigned short _PyUnicode_DecompIndex2[13312];
#define _PyUnicode_CompShift 2
extern const unsigned short _PyUnicode_CompIndex[5938];
#define _PyUnicode_CompDataBits 17
extern const unsigned int _PyUnicode_CompData[1449];
extern const unsigned char _PyUnicode_ChangeIndex_3_2_0[8704];
extern const unsigned char _PyUnicode_ChangeData_3_2_0[31360];
const _PyUnicode_ChangeRecord *_PyUnicode_GetChange_3_2_0(Py_UCS4);
Py_UCS4 _PyUnicode_Normalization_3_2_0(Py_UCS4);
extern const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[503];
#define _PyUnicode_TypeRecordsShift 7
extern const unsigned short _PyUnicode_TypeRecordsIndex1[8704];
extern const unsigned short _PyUnicode_TypeRecordsIndex2[35200];
extern const char16_t _PyUnicode_ExtendedCase[1236];
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_UNICODEDATA_UNIDATA_H_ */