mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +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/Modules/_asynciomodule.c
vendored
1
third_party/python/Modules/_asynciomodule.c
vendored
|
@ -21,7 +21,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_asyncio");
|
||||
PYTHON_PROVIDE("_asyncio.Future");
|
||||
|
|
1
third_party/python/Modules/_bisectmodule.c
vendored
1
third_party/python/Modules/_bisectmodule.c
vendored
|
@ -13,7 +13,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_bisect");
|
||||
PYTHON_PROVIDE("_bisect.bisect");
|
||||
|
|
1
third_party/python/Modules/_bz2module.c
vendored
1
third_party/python/Modules/_bz2module.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_bz2");
|
||||
PYTHON_PROVIDE("_bz2.BZ2Compressor");
|
||||
|
|
1
third_party/python/Modules/_codecsmodule.c
vendored
1
third_party/python/Modules/_codecsmodule.c
vendored
|
@ -16,7 +16,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_codecs");
|
||||
PYTHON_PROVIDE("_codecs._forget_codec");
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_collections");
|
||||
PYTHON_PROVIDE("_collections.OrderedDict");
|
||||
|
|
1
third_party/python/Modules/_cryptmodule.c
vendored
1
third_party/python/Modules/_cryptmodule.c
vendored
|
@ -8,7 +8,6 @@
|
|||
#include "third_party/python/Include/object.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_crypt");
|
||||
PYTHON_PROVIDE("_crypt.crypt");
|
||||
|
|
1
third_party/python/Modules/_csv.c
vendored
1
third_party/python/Modules/_csv.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_csv");
|
||||
PYTHON_PROVIDE("_csv.Dialect");
|
||||
|
|
1
third_party/python/Modules/_datetimemodule.c
vendored
1
third_party/python/Modules/_datetimemodule.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/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_datetime");
|
||||
PYTHON_PROVIDE("_datetime.MAXYEAR");
|
||||
|
|
1
third_party/python/Modules/_dbmmodule.c
vendored
1
third_party/python/Modules/_dbmmodule.c
vendored
|
@ -1,6 +1,5 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_dbm");
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/_decimal/docstrings.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_decimal");
|
||||
PYTHON_PROVIDE("_decimal.BasicContext");
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef DOCSTRINGS_H
|
||||
#define DOCSTRINGS_H
|
||||
/* clang-format off */
|
||||
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define BASEARITH_H
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Internal header file: all symbols have local scope in the DSO */
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef BITS_H
|
||||
#define BITS_H
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Check if 𝑛 is a power of 2.
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef CONSTANTS_H
|
||||
#define CONSTANTS_H
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define MULMOD(a, b) x64_mulmod(a, b, umod)
|
||||
#define MULMOD2C(a0, a1, w) x64_mulmod2c(a0, a1, w, umod)
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/sysv/consts/sig.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/sixstep.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef CRT_H
|
||||
#define CRT_H
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Internal header file: all symbols have local scope in the DSO */
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/fnt.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/sixstep.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/transpose.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/io.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
|
||||
/* clang-format off */
|
||||
|
||||
#if __GNUC__ >= 11
|
||||
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef IO_H
|
||||
#define IO_H
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
#if SIZE_MAX == MPD_SIZE_MAX
|
||||
#define mpd_strtossize _mpd_strtossize
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/mpalloc.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/mpalloc.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
COSMOPOLITAN_C_START_
|
||||
/* clang-format off */
|
||||
|
||||
#define MPD_VERSION "2.4.2"
|
||||
#define MPD_MAJOR_VERSION 2
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/sixstep.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/transpose.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SIX_STEP_H
|
||||
#define SIX_STEP_H
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Internal header file: all symbols have local scope in the DSO */
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef TRANSPOSE_H
|
||||
#define TRANSPOSE_H
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Internal header file: all symbols have local scope in the DSO */
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define TYPEARITH_H
|
||||
#include "libc/assert.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
/* clang-format off */
|
||||
|
||||
#if defined(__GNUC__) && defined(__x86_64__) && !defined(__STRICT_ANSI__)
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
||||
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Bignum: Low level routines for unsigned modular arithmetic. These are
|
||||
used in the fast convolution functions for very large coefficients. */
|
||||
|
|
1
third_party/python/Modules/_elementtree.c
vendored
1
third_party/python/Modules/_elementtree.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/expat/expat.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_elementtree");
|
||||
PYTHON_PROVIDE("_elementtree.Element");
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_functools");
|
||||
PYTHON_PROVIDE("_functools._lru_cache_wrapper");
|
||||
|
|
1
third_party/python/Modules/_gdbmmodule.c
vendored
1
third_party/python/Modules/_gdbmmodule.c
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_gdbm");
|
||||
|
||||
|
|
1
third_party/python/Modules/_hashmbedtls.c
vendored
1
third_party/python/Modules/_hashmbedtls.c
vendored
|
@ -33,7 +33,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/hashlib.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_hashlib");
|
||||
PYTHON_PROVIDE("_hashlib.HASH");
|
||||
|
|
1
third_party/python/Modules/_heapqmodule.c
vendored
1
third_party/python/Modules/_heapqmodule.c
vendored
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_heapq");
|
||||
PYTHON_PROVIDE("_heapq._heapify_max");
|
||||
|
|
1
third_party/python/Modules/_io/_iomodule.c
vendored
1
third_party/python/Modules/_io/_iomodule.c
vendored
|
@ -21,7 +21,6 @@
|
|||
#include "third_party/python/Include/weakrefobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_io");
|
||||
PYTHON_PROVIDE("_io.BlockingIOError");
|
||||
|
|
3
third_party/python/Modules/_io/_iomodule.h
vendored
3
third_party/python/Modules/_io/_iomodule.h
vendored
|
@ -3,9 +3,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "third_party/python/Include/moduleobject.h"
|
||||
#include "third_party/python/Include/object.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* clang-format off */
|
||||
|
||||
/* ABCs */
|
||||
extern PyTypeObject PyIOBase_Type;
|
||||
|
@ -193,5 +191,4 @@ extern PyObject *_PyIO_zero;
|
|||
extern PyTypeObject _PyBytesIOBuffer_Type;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES__IO__IOMODULE_H_ */
|
||||
|
|
1
third_party/python/Modules/_io/bufferedio.c
vendored
1
third_party/python/Modules/_io/bufferedio.c
vendored
|
@ -23,7 +23,6 @@
|
|||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of Buffered I/O as defined by PEP 3116 - "New I/O"
|
||||
|
|
1
third_party/python/Modules/_io/bytesio.c
vendored
1
third_party/python/Modules/_io/bytesio.c
vendored
|
@ -23,7 +23,6 @@
|
|||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*[clinic input]
|
||||
module _io
|
||||
|
|
|
@ -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,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/Modules/_io/fileio.c
vendored
1
third_party/python/Modules/_io/fileio.c
vendored
|
@ -24,7 +24,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Author: Daniel Stutzbach
|
||||
|
|
1
third_party/python/Modules/_io/iobase.c
vendored
1
third_party/python/Modules/_io/iobase.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of the I/O abstract base classes hierarchy
|
||||
|
|
1
third_party/python/Modules/_io/stringio.c
vendored
1
third_party/python/Modules/_io/stringio.c
vendored
|
@ -19,7 +19,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Implementation note: the buffer is always at least one character longer
|
||||
than the enclosed string, for proper functioning of _PyIO_find_line_ending.
|
||||
|
|
1
third_party/python/Modules/_io/textio.c
vendored
1
third_party/python/Modules/_io/textio.c
vendored
|
@ -21,7 +21,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of Text I/O as defined by PEP 3116 - "New I/O"
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of Windows console I/O
|
||||
|
|
1
third_party/python/Modules/_json.c
vendored
1
third_party/python/Modules/_json.c
vendored
|
@ -24,7 +24,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 */
|
||||
|
||||
PYTHON_PROVIDE("_json");
|
||||
PYTHON_PROVIDE("_json.encode_basestring");
|
||||
|
|
1
third_party/python/Modules/_localemodule.c
vendored
1
third_party/python/Modules/_localemodule.c
vendored
|
@ -20,7 +20,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_locale");
|
||||
PYTHON_PROVIDE("_locale.CHAR_MAX");
|
||||
|
|
1
third_party/python/Modules/_lsprof.c
vendored
1
third_party/python/Modules/_lsprof.c
vendored
|
@ -23,7 +23,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/rotatingtree.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_lsprof");
|
||||
PYTHON_PROVIDE("_lsprof.Profiler");
|
||||
|
|
1
third_party/python/Modules/_lzmamodule.c
vendored
1
third_party/python/Modules/_lzmamodule.c
vendored
|
@ -7,7 +7,6 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_lzma");
|
||||
PYTHON_PROVIDE("_lzma.CHECK_CRC32");
|
||||
|
|
1
third_party/python/Modules/_math.c
vendored
1
third_party/python/Modules/_math.c
vendored
|
@ -8,7 +8,6 @@
|
|||
#include "third_party/python/Include/pymath.h"
|
||||
#include "third_party/python/Modules/_math.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Definitions of some C99 math library functions, for those platforms
|
||||
that don't implement these functions already. */
|
||||
|
|
2
third_party/python/Modules/_math.h
vendored
2
third_party/python/Modules/_math.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES__MATH_H_
|
||||
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES__MATH_H_
|
||||
#include "third_party/python/pyconfig.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
double _Py_acosh(double);
|
||||
|
@ -47,5 +46,4 @@ double _Py_log1p(double);
|
|||
#define m_log1p _Py_log1p
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES__MATH_H_ */
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Modules/_multiprocessing/multiprocessing.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_multiprocessing");
|
||||
PYTHON_PROVIDE("_multiprocessing.flags");
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Platform includes and definitions
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "libc/thread/semaphore.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#include "third_party/python/Modules/_multiprocessing/multiprocessing.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* A type which wraps a semaphore
|
||||
|
|
1
third_party/python/Modules/_opcode.c
vendored
1
third_party/python/Modules/_opcode.c
vendored
|
@ -13,7 +13,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_opcode");
|
||||
PYTHON_PROVIDE("_opcode.stack_effect");
|
||||
|
|
1
third_party/python/Modules/_operator.c
vendored
1
third_party/python/Modules/_operator.c
vendored
|
@ -15,7 +15,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_operator");
|
||||
PYTHON_PROVIDE("_operator.__doc__");
|
||||
|
|
1
third_party/python/Modules/_pickle.c
vendored
1
third_party/python/Modules/_pickle.c
vendored
|
@ -31,7 +31,6 @@
|
|||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/quickjs/internal.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_pickle");
|
||||
PYTHON_PROVIDE("_pickle.PickleError");
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_posixsubprocess");
|
||||
PYTHON_PROVIDE("_posixsubprocess.fork_exec");
|
||||
|
|
2
third_party/python/Modules/_randommodule.c
vendored
2
third_party/python/Modules/_randommodule.c
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/intrin/bits.h"
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
|
@ -22,7 +21,6 @@
|
|||
#include "third_party/python/Include/pytime.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_random");
|
||||
PYTHON_PROVIDE("_random.Random");
|
||||
|
|
1
third_party/python/Modules/_sqlite/cache.c
vendored
1
third_party/python/Modules/_sqlite/cache.c
vendored
|
@ -29,7 +29,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/* only used internally */
|
||||
pysqlite_Node* pysqlite_new_node(PyObject* key, PyObject* data)
|
||||
|
|
1
third_party/python/Modules/_sqlite/cache.h
vendored
1
third_party/python/Modules/_sqlite/cache.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_CACHE_H
|
||||
#define PYSQLITE_CACHE_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* The LRU cache is implemented as a combination of a doubly-linked with a
|
||||
* dictionary. The list items are of type 'Node' and the dictionary has the
|
||||
|
|
|
@ -40,7 +40,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
#define ACTION_FINALIZE 1
|
||||
#define ACTION_RESET 2
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "third_party/python/Modules/_sqlite/cache.h"
|
||||
#include "third_party/python/Modules/_sqlite/module.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/cursor.c
vendored
1
third_party/python/Modules/_sqlite/cursor.c
vendored
|
@ -31,7 +31,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
PyObject* pysqlite_cursor_iternext(pysqlite_Cursor* self);
|
||||
|
||||
|
|
1
third_party/python/Modules/_sqlite/cursor.h
vendored
1
third_party/python/Modules/_sqlite/cursor.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_CURSOR_H
|
||||
#define PYSQLITE_CURSOR_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
#include "third_party/python/Modules/_sqlite/statement.h"
|
||||
#include "third_party/python/Modules/_sqlite/connection.h"
|
||||
|
|
|
@ -31,7 +31,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/** the adapters registry **/
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define PSYCOPG_MICROPROTOCOLS_H 1
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Modules/_sqlite/cursor.h"
|
||||
/* clang-format off */
|
||||
|
||||
/** adapters registry **/
|
||||
|
||||
|
|
1
third_party/python/Modules/_sqlite/module.c
vendored
1
third_party/python/Modules/_sqlite/module.c
vendored
|
@ -38,7 +38,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/* #if SQLITE_VERSION_NUMBER >= 3003003 */
|
||||
/* #define HAVE_SHARED_CACHE */
|
||||
|
|
1
third_party/python/Modules/_sqlite/module.h
vendored
1
third_party/python/Modules/_sqlite/module.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_MODULE_H
|
||||
#define PYSQLITE_MODULE_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define PYSQLITE_VERSION "2.6.0"
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
int pysqlite_prepare_protocol_init(pysqlite_PrepareProtocol* self, PyObject* args, PyObject* kwargs)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_PREPARE_PROTOCOL_H
|
||||
#define PYSQLITE_PREPARE_PROTOCOL_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/row.c
vendored
1
third_party/python/Modules/_sqlite/row.c
vendored
|
@ -30,7 +30,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
void pysqlite_row_dealloc(pysqlite_Row* self)
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/row.h
vendored
1
third_party/python/Modules/_sqlite/row.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_ROW_H
|
||||
#define PYSQLITE_ROW_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct _Row
|
||||
{
|
||||
|
|
|
@ -34,7 +34,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/* prototypes */
|
||||
static int pysqlite_check_remaining_sql(const char* tail);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Modules/_sqlite/connection.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define PYSQLITE_TOO_MUCH_SQL (-100)
|
||||
#define PYSQLITE_SQL_WRONG_TYPE (-101)
|
||||
|
|
1
third_party/python/Modules/_sqlite/util.c
vendored
1
third_party/python/Modules/_sqlite/util.c
vendored
|
@ -30,7 +30,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
int pysqlite_step(sqlite3_stmt* statement, pysqlite_Connection* connection)
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/util.h
vendored
1
third_party/python/Modules/_sqlite/util.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef PYSQLITE_UTIL_H
|
||||
#define PYSQLITE_UTIL_H
|
||||
/* clang-format off */
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Modules/_sqlite/connection.h"
|
||||
|
|
2
third_party/python/Modules/_sre.c
vendored
2
third_party/python/Modules/_sre.c
vendored
|
@ -24,7 +24,6 @@
|
|||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/sre.h"
|
||||
#include "third_party/python/Modules/sre_constants.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_sre");
|
||||
PYTHON_PROVIDE("_sre.CODESIZE");
|
||||
|
@ -44,7 +43,6 @@ asm(".ident\t\"\\n\\n\
|
|||
SRE 2.2.2 (Python license)\\n\
|
||||
Copyright 1997-2002 Secret Labs AB\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Secret Labs' Regular Expression Engine
|
||||
|
|
1
third_party/python/Modules/_stat.c
vendored
1
third_party/python/Modules/_stat.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_stat");
|
||||
PYTHON_PROVIDE("_stat.SF_APPEND");
|
||||
|
|
1
third_party/python/Modules/_struct.c
vendored
1
third_party/python/Modules/_struct.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/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_struct");
|
||||
PYTHON_PROVIDE("_struct.Struct");
|
||||
|
|
1
third_party/python/Modules/_testbuffer.c
vendored
1
third_party/python/Modules/_testbuffer.c
vendored
|
@ -20,7 +20,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_testbuffer");
|
||||
PYTHON_PROVIDE("_testbuffer.ND_FORTRAN");
|
||||
|
|
1
third_party/python/Modules/_testcapimodule.c
vendored
1
third_party/python/Modules/_testcapimodule.c
vendored
|
@ -44,7 +44,6 @@
|
|||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_testcapi");
|
||||
PYTHON_PROVIDE("_testcapi.CHAR_MAX");
|
||||
|
|
1
third_party/python/Modules/_testmultiphase.c
vendored
1
third_party/python/Modules/_testmultiphase.c
vendored
|
@ -14,7 +14,6 @@
|
|||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/typeslots.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_testmultiphase");
|
||||
PYTHON_PROVIDE("_testmultiphase.Example");
|
||||
|
|
1
third_party/python/Modules/_threadmodule.c
vendored
1
third_party/python/Modules/_threadmodule.c
vendored
|
@ -89,7 +89,6 @@
|
|||
#include "third_party/python/Include/weakrefobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_thread");
|
||||
PYTHON_PROVIDE("_thread.LockType");
|
||||
|
|
1
third_party/python/Modules/_tracemalloc.c
vendored
1
third_party/python/Modules/_tracemalloc.c
vendored
|
@ -29,7 +29,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/hashtable.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_tracemalloc");
|
||||
PYTHON_PROVIDE("_tracemalloc._get_object_traceback");
|
||||
|
|
1
third_party/python/Modules/_weakref.c
vendored
1
third_party/python/Modules/_weakref.c
vendored
|
@ -14,7 +14,6 @@
|
|||
#include "third_party/python/Include/weakrefobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/clinic/_weakref.inc"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_weakref");
|
||||
PYTHON_PROVIDE("_weakref.CallableProxyType");
|
||||
|
|
1
third_party/python/Modules/_winapi.c
vendored
1
third_party/python/Modules/_winapi.c
vendored
|
@ -29,7 +29,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/winreparse.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define kNtIoReparseTagMountPoint 0xA0000003L
|
||||
|
||||
|
|
1
third_party/python/Modules/arraymodule.c
vendored
1
third_party/python/Modules/arraymodule.c
vendored
|
@ -22,7 +22,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("array");
|
||||
PYTHON_PROVIDE("array.ArrayType");
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue