mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
This commit is contained in:
parent
96f979dfc5
commit
fa20edc44d
3057 changed files with 410 additions and 4398 deletions
1
third_party/python/Objects/abstract.c
vendored
1
third_party/python/Objects/abstract.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Abstract Object Interface (many thanks to Jim Fulton) */
|
||||
|
||||
|
|
1
third_party/python/Objects/accu.c
vendored
1
third_party/python/Objects/accu.c
vendored
|
@ -8,7 +8,6 @@
|
|||
#include "third_party/python/Include/accu.h"
|
||||
#include "third_party/python/Include/listobject.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
static PyObject *
|
||||
join_list_unicode(PyObject *lst)
|
||||
|
|
1
third_party/python/Objects/boolobject.c
vendored
1
third_party/python/Objects/boolobject.c
vendored
|
@ -8,7 +8,6 @@
|
|||
#include "third_party/python/Include/longintrepr.h"
|
||||
#include "third_party/python/Include/modsupport.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Boolean type, a subtype of int */
|
||||
|
||||
|
|
1
third_party/python/Objects/bytearrayobject.c
vendored
1
third_party/python/Objects/bytearrayobject.c
vendored
|
@ -24,7 +24,6 @@
|
|||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*[clinic input]
|
||||
class bytearray "PyByteArrayObject *" "&PyByteArray_Type"
|
||||
|
|
1
third_party/python/Objects/bytes_methods.c
vendored
1
third_party/python/Objects/bytes_methods.c
vendored
|
@ -13,7 +13,6 @@
|
|||
#include "third_party/python/Include/longobject.h"
|
||||
#include "third_party/python/Include/pyctype.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
/* clang-format off */
|
||||
|
||||
PyDoc_STRVAR_shared(_Py_isspace__doc__,
|
||||
"B.isspace() -> bool\n\
|
||||
|
|
1
third_party/python/Objects/bytesobject.c
vendored
1
third_party/python/Objects/bytesobject.c
vendored
|
@ -27,7 +27,6 @@
|
|||
#include "third_party/python/Include/pystrtod.h"
|
||||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*[clinic input]
|
||||
class bytes "PyBytesObject *" "&PyBytes_Type"
|
||||
|
|
1
third_party/python/Objects/call.c
vendored
1
third_party/python/Objects/call.c
vendored
|
@ -28,7 +28,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
int
|
||||
_PyObject_HasFastCall(PyObject *callable)
|
||||
|
|
1
third_party/python/Objects/capsule.c
vendored
1
third_party/python/Objects/capsule.c
vendored
|
@ -10,7 +10,6 @@
|
|||
#include "third_party/python/Include/pycapsule.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Wrap void * pointers to be passed between C modules */
|
||||
|
||||
|
|
1
third_party/python/Objects/cellobject.c
vendored
1
third_party/python/Objects/cellobject.c
vendored
|
@ -9,7 +9,6 @@
|
|||
#include "third_party/python/Include/descrobject.h"
|
||||
#include "third_party/python/Include/object.h"
|
||||
#include "third_party/python/Include/objimpl.h"
|
||||
/* clang-format off */
|
||||
|
||||
PyObject *
|
||||
PyCell_New(PyObject *obj)
|
||||
|
|
1
third_party/python/Objects/classobject.c
vendored
1
third_party/python/Objects/classobject.c
vendored
|
@ -16,7 +16,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Class object implementation (dead now except for methods) */
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
1
third_party/python/Objects/codeobject.c
vendored
1
third_party/python/Objects/codeobject.c
vendored
|
@ -23,7 +23,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define NAME_CHARS \
|
||||
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"
|
||||
|
|
1
third_party/python/Objects/complexobject.c
vendored
1
third_party/python/Objects/complexobject.c
vendored
|
@ -20,7 +20,6 @@
|
|||
#include "third_party/python/Include/pymath.h"
|
||||
#include "third_party/python/Include/pystrtod.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Borrows heavily from floatobject.c */
|
||||
/* Submitted by Jim Hugunin */
|
||||
|
|
1
third_party/python/Objects/descrobject.c
vendored
1
third_party/python/Objects/descrobject.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Descriptors -- a new, flexible way to describe attributes */
|
||||
|
||||
|
|
1
third_party/python/Objects/dict-common.h
vendored
1
third_party/python/Objects/dict-common.h
vendored
|
@ -2,7 +2,6 @@
|
|||
#define Py_DICT_COMMON_H
|
||||
#include "third_party/python/Include/dictobject.h"
|
||||
#include "third_party/python/Include/object.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct {
|
||||
/* Cached hash code of me_key. */
|
||||
|
|
1
third_party/python/Objects/dictobject.c
vendored
1
third_party/python/Objects/dictobject.c
vendored
|
@ -20,7 +20,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Objects/dict-common.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Dictionary object implementation using a hash table */
|
||||
|
||||
|
|
1
third_party/python/Objects/enumobject.c
vendored
1
third_party/python/Objects/enumobject.c
vendored
|
@ -14,7 +14,6 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
|
|
1
third_party/python/Objects/exceptions.c
vendored
1
third_party/python/Objects/exceptions.c
vendored
|
@ -19,7 +19,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* New exceptions.c written in Iceland by Richard Jones and Georg Brandl.
|
||||
|
|
1
third_party/python/Objects/fileobject.c
vendored
1
third_party/python/Objects/fileobject.c
vendored
|
@ -23,7 +23,6 @@
|
|||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* File object implementation (what's left of it -- see io.py) */
|
||||
|
||||
|
|
1
third_party/python/Objects/floatobject.c
vendored
1
third_party/python/Objects/floatobject.c
vendored
|
@ -29,7 +29,6 @@
|
|||
#include "third_party/python/Include/pystrtod.h"
|
||||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* XXX There should be overflow checks here, but it's hard to check
|
||||
for any kind of float exception without losing portability. */
|
||||
|
|
1
third_party/python/Objects/frameobject.c
vendored
1
third_party/python/Objects/frameobject.c
vendored
|
@ -19,7 +19,6 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define OFF(x) offsetof(PyFrameObject, x)
|
||||
|
||||
|
|
1
third_party/python/Objects/fromfd.c
vendored
1
third_party/python/Objects/fromfd.c
vendored
|
@ -8,7 +8,6 @@
|
|||
#include "third_party/python/Include/import.h"
|
||||
#include "third_party/python/Include/object.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_YOINK("io");
|
||||
|
||||
|
|
1
third_party/python/Objects/funcobject.c
vendored
1
third_party/python/Objects/funcobject.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
PyObject *
|
||||
PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname)
|
||||
|
|
1
third_party/python/Objects/genobject.c
vendored
1
third_party/python/Objects/genobject.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
static PyObject *gen_close(PyGenObject *, PyObject *);
|
||||
static PyObject *async_gen_asend_new(PyAsyncGenObject *, PyObject *);
|
||||
|
|
1
third_party/python/Objects/iterobject.c
vendored
1
third_party/python/Objects/iterobject.c
vendored
|
@ -12,7 +12,6 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
|
|
1
third_party/python/Objects/listobject.c
vendored
1
third_party/python/Objects/listobject.c
vendored
|
@ -21,7 +21,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/sliceobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Ensure ob_item has room for at least newsize elements, and set
|
||||
* ob_size to newsize. If newsize > ob_size on entry, the content
|
||||
|
|
1
third_party/python/Objects/longobject.c
vendored
1
third_party/python/Objects/longobject.c
vendored
|
@ -26,7 +26,6 @@
|
|||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Long (arbitrary precision) integer object implementation */
|
||||
/* XXX The functional organization of this file is terrible */
|
||||
|
|
1
third_party/python/Objects/memoryobject.c
vendored
1
third_party/python/Objects/memoryobject.c
vendored
|
@ -22,7 +22,6 @@
|
|||
#include "third_party/python/Include/pystrhex.h"
|
||||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
/****************************************************************************/
|
||||
/* ManagedBuffer Object */
|
||||
|
|
1
third_party/python/Objects/methodobject.c
vendored
1
third_party/python/Objects/methodobject.c
vendored
|
@ -15,7 +15,6 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/pyhash.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Free list for method objects to safe malloc/free overhead
|
||||
* The m_self element is used to chain the objects.
|
||||
|
|
1
third_party/python/Objects/moduleobject.c
vendored
1
third_party/python/Objects/moduleobject.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
static Py_ssize_t max_module_number;
|
||||
|
||||
|
|
1
third_party/python/Objects/namespaceobject.c
vendored
1
third_party/python/Objects/namespaceobject.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
|
|
1
third_party/python/Objects/object.c
vendored
1
third_party/python/Objects/object.c
vendored
|
@ -39,7 +39,6 @@
|
|||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/weakrefobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
_Py_IDENTIFIER(Py_Repr);
|
||||
_Py_IDENTIFIER(__bytes__);
|
||||
|
|
3
third_party/python/Objects/obmalloc.c
vendored
3
third_party/python/Objects/obmalloc.c
vendored
|
@ -8,7 +8,6 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/intrin/asan.internal.h"
|
||||
#include "libc/intrin/bits.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/sysv/consts/map.h"
|
||||
|
@ -20,8 +19,8 @@
|
|||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
#include "libc/serialize.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Python's malloc wrappers (see pymem.h) */
|
||||
|
||||
|
|
1
third_party/python/Objects/odictobject.c
vendored
1
third_party/python/Objects/odictobject.c
vendored
|
@ -19,7 +19,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Objects/dict-common.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Ordered Dictionary object implementation.
|
||||
|
||||
|
|
1
third_party/python/Objects/rangeobject.c
vendored
1
third_party/python/Objects/rangeobject.c
vendored
|
@ -14,7 +14,6 @@
|
|||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Support objects whose length is > PY_SSIZE_T_MAX.
|
||||
|
||||
|
|
1
third_party/python/Objects/setobject.c
vendored
1
third_party/python/Objects/setobject.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "third_party/python/Include/setobject.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* set object implementation
|
||||
|
||||
|
|
1
third_party/python/Objects/sliceobject.c
vendored
1
third_party/python/Objects/sliceobject.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
Written by Jim Hugunin and Chris Chase.
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* this is sort of a hack. there's at least one place (formatting
|
||||
floats) where some stringlib code takes a different path if it's
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: codec implementations */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: count implementation */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
#if STRINGLIB_IS_UNICODE
|
||||
# error "ctype.h only compatible with byte-wise strings"
|
||||
|
|
1
third_party/python/Objects/stringlib/eq.inc
vendored
1
third_party/python/Objects/stringlib/eq.inc
vendored
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* Fast unicode equal function optimized for dictobject.c and setobject.c */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: fastsearch implementation */
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/modsupport.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: find/index implementation */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* Finding the optimal width of unicode characters in a buffer */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: bytes joining implementation */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* _PyUnicode_InsertThousandsGrouping() helper functions */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: partition implementation */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: replace implementation */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* stringlib: split implementation */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
#ifndef STRINGLIB_STRINGDEFS_H
|
||||
#define STRINGLIB_STRINGDEFS_H
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
#if STRINGLIB_IS_UNICODE
|
||||
# error "transmogrify.h only compatible with byte-wise strings"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* this is sort of a hack. there's at least one place (formatting
|
||||
floats) where some stringlib code takes a different path if it's
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* this is sort of a hack. there's at least one place (formatting
|
||||
floats) where some stringlib code takes a different path if it's
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/* this is sort of a hack. there's at least one place (formatting
|
||||
floats) where some stringlib code takes a different path if it's
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
unicode_format.h -- implementation of str.format().
|
||||
|
|
1
third_party/python/Objects/structseq.c
vendored
1
third_party/python/Objects/structseq.c
vendored
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/modsupport.h"
|
||||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Implementation helper: a struct that looks like a tuple. See timemodule
|
||||
and posixmodule for example uses. */
|
||||
|
|
1
third_party/python/Objects/tupleobject.c
vendored
1
third_party/python/Objects/tupleobject.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Tuple object implementation */
|
||||
|
||||
|
|
1
third_party/python/Objects/typeobject.c
vendored
1
third_party/python/Objects/typeobject.c
vendored
|
@ -30,7 +30,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/weakrefobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
static const short slotoffsets[] = {
|
||||
-1, /* invalid slot */
|
||||
|
|
1
third_party/python/Objects/typeslots.inc
generated
vendored
1
third_party/python/Objects/typeslots.inc
generated
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* Generated by typeslots.py */
|
||||
0,
|
||||
0,
|
||||
|
|
1
third_party/python/Objects/unicodectype.c
vendored
1
third_party/python/Objects/unicodectype.c
vendored
|
@ -7,7 +7,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Modules/unicodedata.h"
|
||||
#include "third_party/python/Modules/unicodedata_unidata.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Unicode character type helpers.
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define _PyUnicode_STATE(op) \
|
||||
(((PyASCIIObject *)(op))->state)
|
||||
|
|
1
third_party/python/Objects/unicodeobject.c
vendored
1
third_party/python/Objects/unicodeobject.c
vendored
|
@ -42,7 +42,6 @@
|
|||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/unicodedata.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_string");
|
||||
PYTHON_PROVIDE("_string.__doc__");
|
||||
|
|
1
third_party/python/Objects/weakrefobject.c
vendored
1
third_party/python/Objects/weakrefobject.c
vendored
|
@ -12,7 +12,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/weakrefobject.h"
|
||||
#include "third_party/quickjs/quickjs.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define GET_WEAKREFS_LISTPTR(o) \
|
||||
((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue