cosmopolitan/third_party/python/Modules/unicodedata_unidata.h

60 lines
2.9 KiB
C
Raw Normal View History

Make numerous improvements - Python static hello world now 1.8mb - Python static fully loaded now 10mb - Python HTTPS client now uses MbedTLS - Python REPL now completes import stmts - Increase stack size for Python for now - Begin synthesizing posixpath and ntpath - Restore Python \N{UNICODE NAME} support - Restore Python NFKD symbol normalization - Add optimized code path for Intel SHA-NI - Get more Python unit tests passing faster - Get Python help() pagination working on NT - Python hashlib now supports MbedTLS PBKDF2 - Make memcpy/memmove/memcmp/bcmp/etc. faster - Add Mersenne Twister and Vigna to LIBC_RAND - Provide privileged __printf() for error code - Fix zipos opendir() so that it reports ENOTDIR - Add basic chmod() implementation for Windows NT - Add Cosmo's best functions to Python cosmo module - Pin function trace indent depth to that of caller - Show memory diagram on invalid access in MODE=dbg - Differentiate stack overflow on crash in MODE=dbg - Add stb_truetype and tools for analyzing font files - Upgrade to UNICODE 13 and reduce its binary footprint - COMPILE.COM now logs resource usage of build commands - Start implementing basic poll() support on bare metal - Set getauxval(AT_EXECFN) to GetModuleFileName() on NT - Add descriptions to strerror() in non-TINY build modes - Add COUNTBRANCH() macro to help with micro-optimizations - Make error / backtrace / asan / memory code more unbreakable - Add fast perfect C implementation of μ-Law and a-Law audio codecs - Make strtol() functions consistent with other libc implementations - Improve Linenoise implementation (see also github.com/jart/bestline) - COMPILE.COM now suppresses stdout/stderr of successful build commands
2021-09-28 05:58:51 +00:00
#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];
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 51904e2687c04d7ae20410cd94c2148972d6bae6 This change fixes a longstanding regression with Mach system calls, that 23ae9dfceb6f657862f00e674a8e4dc357a9d24d 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 15:17:04 +00:00
#define _PyUnicode_LexiconOffsetBits 17
extern const unsigned int _PyUnicode_LexiconOffset[8727];
Make numerous improvements - Python static hello world now 1.8mb - Python static fully loaded now 10mb - Python HTTPS client now uses MbedTLS - Python REPL now completes import stmts - Increase stack size for Python for now - Begin synthesizing posixpath and ntpath - Restore Python \N{UNICODE NAME} support - Restore Python NFKD symbol normalization - Add optimized code path for Intel SHA-NI - Get more Python unit tests passing faster - Get Python help() pagination working on NT - Python hashlib now supports MbedTLS PBKDF2 - Make memcpy/memmove/memcmp/bcmp/etc. faster - Add Mersenne Twister and Vigna to LIBC_RAND - Provide privileged __printf() for error code - Fix zipos opendir() so that it reports ENOTDIR - Add basic chmod() implementation for Windows NT - Add Cosmo's best functions to Python cosmo module - Pin function trace indent depth to that of caller - Show memory diagram on invalid access in MODE=dbg - Differentiate stack overflow on crash in MODE=dbg - Add stb_truetype and tools for analyzing font files - Upgrade to UNICODE 13 and reduce its binary footprint - COMPILE.COM now logs resource usage of build commands - Start implementing basic poll() support on bare metal - Set getauxval(AT_EXECFN) to GetModuleFileName() on NT - Add descriptions to strerror() in non-TINY build modes - Add COUNTBRANCH() macro to help with micro-optimizations - Make error / backtrace / asan / memory code more unbreakable - Add fast perfect C implementation of μ-Law and a-Law audio codecs - Make strtol() functions consistent with other libc implementations - Improve Linenoise implementation (see also github.com/jart/bestline) - COMPILE.COM now suppresses stdout/stderr of successful build commands
2021-09-28 05:58:51 +00:00
#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_ */