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:
Justine Tunney 2023-11-28 14:24:28 -08:00
parent 96f979dfc5
commit fa20edc44d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3057 changed files with 410 additions and 4398 deletions

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -1,6 +1,5 @@
#define PY_SSIZE_T_CLEAN
#include "third_party/python/Include/yoink.h"
/* clang-format off */
PYTHON_PROVIDE("_dbm");

View file

@ -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");

View file

@ -1,6 +1,5 @@
#ifndef DOCSTRINGS_H
#define DOCSTRINGS_H
/* clang-format off */
#include "third_party/python/Include/pymacro.h"

View file

@ -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\

View file

@ -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 */

View file

@ -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.

View file

@ -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\

View file

@ -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)

View file

@ -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\

View file

@ -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\

View file

@ -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\

View file

@ -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 */

View file

@ -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\

View file

@ -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\

View file

@ -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\

View file

@ -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"

View file

@ -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

View file

@ -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\

View file

@ -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\

View file

@ -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

View file

@ -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\

View file

@ -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\

View file

@ -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 */

View file

@ -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\

View file

@ -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 */

View file

@ -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__)

View file

@ -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. */

View file

@ -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");

View file

@ -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");

View file

@ -5,7 +5,6 @@
https://docs.python.org/3/license.html │
*/
#include "third_party/python/Include/yoink.h"
/* clang-format off */
PYTHON_PROVIDE("_gdbm");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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_ */

View file

@ -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"

View file

@ -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

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*[clinic input]
preserve
[clinic start generated code]*/

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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"

View file

@ -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

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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. */

View file

@ -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_ */

View file

@ -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");

View file

@ -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

View file

@ -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

View file

@ -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");

View file

@ -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__");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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
{

View file

@ -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);

View file

@ -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"

View file

@ -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 **/

View file

@ -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 **/

View file

@ -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 */

View file

@ -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"

View file

@ -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)
{

View file

@ -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
{

View file

@ -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)
{

View file

@ -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
{

View file

@ -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);

View file

@ -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)

View file

@ -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)
{

View file

@ -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"

View file

@ -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

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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

View file

@ -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