mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 06:42:27 +00:00
Implement tree-shaking for Python sources
This commit is contained in:
parent
81287b7ec0
commit
44c87b83ff
110 changed files with 899 additions and 1922 deletions
3
third_party/python/Modules/_asynciomodule.c
vendored
3
third_party/python/Modules/_asynciomodule.c
vendored
|
@ -20,8 +20,11 @@
|
|||
#include "third_party/python/Include/setobject.h"
|
||||
#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");
|
||||
|
||||
/*[clinic input]
|
||||
module _asyncio
|
||||
[clinic start generated code]*/
|
||||
|
|
3
third_party/python/Modules/_bisectmodule.c
vendored
3
third_party/python/Modules/_bisectmodule.c
vendored
|
@ -11,8 +11,11 @@
|
|||
#include "third_party/python/Include/object.h"
|
||||
#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");
|
||||
|
||||
/* Bisection algorithms. Drop in replacement for bisect.py
|
||||
|
||||
Converted to C by Dmitry Vasiliev (dima at hlabs.spb.ru).
|
||||
|
|
3
third_party/python/Modules/_codecsmodule.c
vendored
3
third_party/python/Modules/_codecsmodule.c
vendored
|
@ -14,8 +14,11 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#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");
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
|
||||
_codecs -- Provides access to the codec registry and the builtin
|
||||
|
|
|
@ -13,8 +13,11 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#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");
|
||||
|
||||
/* collections module implementation of a deque() datatype
|
||||
Written and maintained by Raymond D. Hettinger <python@rcn.com>
|
||||
*/
|
||||
|
|
3
third_party/python/Modules/_cryptmodule.c
vendored
3
third_party/python/Modules/_cryptmodule.c
vendored
|
@ -7,8 +7,11 @@
|
|||
#include "third_party/python/Include/modsupport.h"
|
||||
#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");
|
||||
|
||||
/* cryptmodule.c - by Steve Majewski
|
||||
*/
|
||||
|
||||
|
|
4
third_party/python/Modules/_csv.c
vendored
4
third_party/python/Modules/_csv.c
vendored
|
@ -10,8 +10,10 @@
|
|||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
/* csv module */
|
||||
|
||||
PYTHON_PROVIDE("_csv");
|
||||
|
||||
/*
|
||||
|
||||
|
|
3
third_party/python/Modules/_curses_panel.c
vendored
3
third_party/python/Modules/_curses_panel.c
vendored
|
@ -4,8 +4,11 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_curses_panel");
|
||||
|
||||
/*
|
||||
* Interface to the ncurses panel library
|
||||
*
|
||||
|
|
3
third_party/python/Modules/_datetimemodule.c
vendored
3
third_party/python/Modules/_datetimemodule.c
vendored
|
@ -25,8 +25,11 @@
|
|||
#include "third_party/python/Include/pytime.h"
|
||||
#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");
|
||||
|
||||
/* C implementation for the date/time type documented at
|
||||
* http://www.zope.org/Members/fdrake/DateTimeWiki/FrontPage
|
||||
*/
|
||||
|
|
3
third_party/python/Modules/_dbmmodule.c
vendored
3
third_party/python/Modules/_dbmmodule.c
vendored
|
@ -1,6 +1,9 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_dbm");
|
||||
|
||||
/* DBM module using dictionary interface */
|
||||
|
||||
/* Some Linux systems install gdbm/ndbm.h, but not ndbm.h. This supports
|
||||
|
|
|
@ -45,10 +45,13 @@
|
|||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#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");
|
||||
|
||||
asm(".ident\t\"\\n\
|
||||
libmpdec (BSD-2)\\n\
|
||||
Copyright 2008-2016 Stefan Krah\"");
|
||||
|
|
3
third_party/python/Modules/_elementtree.c
vendored
3
third_party/python/Modules/_elementtree.c
vendored
|
@ -22,8 +22,11 @@
|
|||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_elementtree");
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
* Licensed to PSF under a Contributor Agreement.
|
||||
* See http://www.python.org/psf/license for licensing details.
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
||||
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "third_party/python/Include/abstract.h"
|
||||
#include "third_party/python/Include/ceval.h"
|
||||
|
@ -11,8 +17,11 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#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");
|
||||
|
||||
/* _functools module written and maintained
|
||||
by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
with adaptations by Raymond Hettinger <python@rcn.com>
|
||||
|
|
3
third_party/python/Modules/_gdbmmodule.c
vendored
3
third_party/python/Modules/_gdbmmodule.c
vendored
|
@ -4,8 +4,11 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_gdbm");
|
||||
|
||||
/* DBM module using dictionary interface */
|
||||
/* Author: Anthony Baxter, after dbmmodule.c */
|
||||
/* Doc strings: Mitch Chapman */
|
||||
|
|
18
third_party/python/Modules/_hashopenssl.c
vendored
18
third_party/python/Modules/_hashopenssl.c
vendored
|
@ -1,6 +1,14 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/hashlib.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
/* Module that wraps all OpenSSL hash algorithms */
|
||||
|
||||
PYTHON_PROVIDE("_hashlib");
|
||||
|
||||
/* Module that wraps all OpenSSL hash algorithms */
|
||||
/*
|
||||
* Copyright (C) 2005-2010 Gregory P. Smith (greg@krypto.org)
|
||||
* Licensed to PSF under a Contributor Agreement.
|
||||
|
@ -12,14 +20,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/hashlib.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
|
||||
|
||||
/* EVP is the preferred interface to hashing in OpenSSL */
|
||||
#include <openssl/evp.h>
|
||||
/* We use the object interface to discover what hashes OpenSSL supports. */
|
||||
|
|
3
third_party/python/Modules/_heapqmodule.c
vendored
3
third_party/python/Modules/_heapqmodule.c
vendored
|
@ -9,8 +9,11 @@
|
|||
#include "third_party/python/Include/modsupport.h"
|
||||
#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");
|
||||
|
||||
/* Drop in replacement for heapq.py
|
||||
|
||||
C implementation derived directly from heapq.py in Py2.3
|
||||
|
|
3
third_party/python/Modules/_io/_iomodule.c
vendored
3
third_party/python/Modules/_io/_iomodule.c
vendored
|
@ -19,9 +19,12 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#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");
|
||||
|
||||
/*
|
||||
An implementation of the new I/O lib as defined by PEP 3116 - "New I/O"
|
||||
|
||||
|
|
3
third_party/python/Modules/_json.c
vendored
3
third_party/python/Modules/_json.c
vendored
|
@ -17,8 +17,11 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#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");
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define UNUSED __attribute__((__unused__))
|
||||
#else
|
||||
|
|
3
third_party/python/Modules/_localemodule.c
vendored
3
third_party/python/Modules/_localemodule.c
vendored
|
@ -16,8 +16,11 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#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");
|
||||
|
||||
/***********************************************************
|
||||
Copyright (C) 1997, 2002, 2003, 2007, 2008 Martin von Loewis
|
||||
|
||||
|
|
3
third_party/python/Modules/_lsprof.c
vendored
3
third_party/python/Modules/_lsprof.c
vendored
|
@ -13,9 +13,12 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/structseq.h"
|
||||
#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");
|
||||
|
||||
/*** Selection of a high-precision timer ***/
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
|
|
3
third_party/python/Modules/_lzmamodule.c
vendored
3
third_party/python/Modules/_lzmamodule.c
vendored
|
@ -6,8 +6,11 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#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");
|
||||
|
||||
/* _lzma - Low-level Python interface to liblzma.
|
||||
|
||||
Initial implementation by Per Øyvind Karlsen.
|
||||
|
|
|
@ -4,9 +4,12 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/_multiprocessing/multiprocessing.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_multiprocessing");
|
||||
|
||||
/*
|
||||
* Extension module used by multiprocessing package
|
||||
*
|
||||
|
|
3
third_party/python/Modules/_opcode.c
vendored
3
third_party/python/Modules/_opcode.c
vendored
|
@ -11,8 +11,11 @@
|
|||
#include "third_party/python/Include/opcode.h"
|
||||
#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");
|
||||
|
||||
/*[clinic input]
|
||||
module _opcode
|
||||
[clinic start generated code]*/
|
||||
|
|
3
third_party/python/Modules/_operator.c
vendored
3
third_party/python/Modules/_operator.c
vendored
|
@ -14,8 +14,11 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#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");
|
||||
|
||||
PyDoc_STRVAR(operator_doc,
|
||||
"Operator interface.\n\
|
||||
\n\
|
||||
|
|
3
third_party/python/Modules/_pickle.c
vendored
3
third_party/python/Modules/_pickle.c
vendored
|
@ -29,9 +29,12 @@
|
|||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#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");
|
||||
|
||||
PyDoc_STRVAR(pickle_module_doc,
|
||||
"Optimized C implementation for the Python pickle module.");
|
||||
|
||||
|
|
|
@ -23,9 +23,12 @@
|
|||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#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");
|
||||
|
||||
/* Authors: Gregory P. Smith & Jeffrey Yasskin */
|
||||
|
||||
# define FD_DIR (IsBsd() ? "/dev/fd" : "/proc/self/fd")
|
||||
|
|
3
third_party/python/Modules/_randommodule.c
vendored
3
third_party/python/Modules/_randommodule.c
vendored
|
@ -15,8 +15,11 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#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");
|
||||
|
||||
/* ------------------------------------------------------------------
|
||||
The code in this module was based on a download from:
|
||||
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html
|
||||
|
|
3
third_party/python/Modules/_sqlite/module.c
vendored
3
third_party/python/Modules/_sqlite/module.c
vendored
|
@ -23,6 +23,7 @@
|
|||
│ 3. This notice may not be removed or altered from any source distribution. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/_sqlite/cache.h"
|
||||
#include "third_party/python/Modules/_sqlite/connection.h"
|
||||
#include "third_party/python/Modules/_sqlite/cursor.h"
|
||||
|
@ -31,6 +32,8 @@
|
|||
#include "third_party/python/Modules/_sqlite/row.h"
|
||||
#include "third_party/python/Modules/_sqlite/statement.h"
|
||||
|
||||
PYTHON_PROVIDE("_sqlite3");
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
|
|
3
third_party/python/Modules/_sre.c
vendored
3
third_party/python/Modules/_sre.c
vendored
|
@ -20,9 +20,12 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/sre.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_sre");
|
||||
|
||||
/*
|
||||
* Secret Labs' Regular Expression Engine
|
||||
*
|
||||
|
|
3
third_party/python/Modules/_ssl.c
vendored
3
third_party/python/Modules/_ssl.c
vendored
|
@ -5,9 +5,12 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/socketmodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_ssl");
|
||||
|
||||
/* SSL socket module
|
||||
|
||||
SSL support based on patches by Brian E Gallew and Laszlo Kovacs.
|
||||
|
|
3
third_party/python/Modules/_stat.c
vendored
3
third_party/python/Modules/_stat.c
vendored
|
@ -16,8 +16,11 @@
|
|||
#include "third_party/python/Include/object.h"
|
||||
#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");
|
||||
|
||||
/* stat.h interface
|
||||
*
|
||||
* The module defines all S_IF*, S_I*, UF_*, SF_* and ST_* constants to
|
||||
|
|
3
third_party/python/Modules/_struct.c
vendored
3
third_party/python/Modules/_struct.c
vendored
|
@ -21,8 +21,11 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#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");
|
||||
|
||||
/* struct module -- pack values into and (out of) bytes objects */
|
||||
|
||||
/* New version supporting byte order, alignment and size options,
|
||||
|
|
3
third_party/python/Modules/_testbuffer.c
vendored
3
third_party/python/Modules/_testbuffer.c
vendored
|
@ -19,8 +19,11 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#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");
|
||||
|
||||
/* C Extension module to test all aspects of PEP-3118.
|
||||
Written by Stefan Krah. */
|
||||
|
||||
|
|
3
third_party/python/Modules/_testcapimodule.c
vendored
3
third_party/python/Modules/_testcapimodule.c
vendored
|
@ -41,9 +41,12 @@
|
|||
#include "third_party/python/Include/pytime.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#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");
|
||||
|
||||
/*
|
||||
* C Extension module to test Python interpreter C APIs.
|
||||
*
|
||||
|
|
3
third_party/python/Modules/_testmultiphase.c
vendored
3
third_party/python/Modules/_testmultiphase.c
vendored
|
@ -13,8 +13,11 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#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");
|
||||
|
||||
/* Testing module for multi-phase initialization of extension modules (PEP 489)
|
||||
*/
|
||||
|
||||
|
|
3
third_party/python/Modules/_threadmodule.c
vendored
3
third_party/python/Modules/_threadmodule.c
vendored
|
@ -5,8 +5,11 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_thread");
|
||||
|
||||
/* Thread module */
|
||||
/* Interface to Sjoerd's portable C thread library */
|
||||
|
||||
|
|
3
third_party/python/Modules/_tracemalloc.c
vendored
3
third_party/python/Modules/_tracemalloc.c
vendored
|
@ -25,9 +25,12 @@
|
|||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#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");
|
||||
|
||||
/* Trace memory blocks allocated by PyMem_RawMalloc() */
|
||||
#define TRACE_RAW_MALLOC
|
||||
|
||||
|
|
3
third_party/python/Modules/_weakref.c
vendored
3
third_party/python/Modules/_weakref.c
vendored
|
@ -11,9 +11,12 @@
|
|||
#include "third_party/python/Include/object.h"
|
||||
#include "third_party/python/Include/objimpl.h"
|
||||
#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");
|
||||
|
||||
#define GET_WEAKREFS_LISTPTR(o) \
|
||||
((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o))
|
||||
|
||||
|
|
3
third_party/python/Modules/_winapi.c
vendored
3
third_party/python/Modules/_winapi.c
vendored
|
@ -6,9 +6,12 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/winreparse.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_winapi");
|
||||
|
||||
/*
|
||||
* Support routines from the Windows API
|
||||
*
|
||||
|
|
3
third_party/python/Modules/arraymodule.c
vendored
3
third_party/python/Modules/arraymodule.c
vendored
|
@ -21,8 +21,11 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#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");
|
||||
|
||||
/* Array object implementation */
|
||||
|
||||
/* An array is a uniform list -- all items have the same type.
|
||||
|
|
3
third_party/python/Modules/atexitmodule.c
vendored
3
third_party/python/Modules/atexitmodule.c
vendored
|
@ -17,8 +17,11 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("atexit");
|
||||
|
||||
/*
|
||||
* atexit - allow programmer to define multiple exit functions to be executed
|
||||
* upon normal program termination.
|
||||
|
|
3
third_party/python/Modules/audioop.c
vendored
3
third_party/python/Modules/audioop.c
vendored
|
@ -15,8 +15,11 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("audioop");
|
||||
|
||||
/* audioopmodule - Module to detect peak values in arrays */
|
||||
|
||||
#if defined(__CHAR_UNSIGNED__)
|
||||
|
|
3
third_party/python/Modules/binascii.c
vendored
3
third_party/python/Modules/binascii.c
vendored
|
@ -16,9 +16,12 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/zlib/zlib.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("binascii");
|
||||
|
||||
/*
|
||||
** Routines to represent binary data in ASCII and vice-versa
|
||||
**
|
||||
|
|
|
@ -4,14 +4,17 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/cjkcodecs.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/mappings_cn.inc"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_codecs_cn");
|
||||
|
||||
/*
|
||||
* _codecs_cn.c: Codecs collection for Mainland Chinese encodings
|
||||
*
|
||||
* Written by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
* Written by Hye-Shik "Bourne to Macro" Chang <perky@FreeBSD.org>
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,13 +5,17 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#define USING_IMPORTED_MAPS
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/cjkcodecs.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/mappings_hk.inc"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_codecs_hk");
|
||||
|
||||
/*
|
||||
* _codecs_hk.c: Codecs collection for encodings from Hong Kong
|
||||
*
|
||||
* Written by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
* Written by Hye-Shik "Bourne to Macro" Chang <perky@FreeBSD.org>
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* _codecs_iso2022.c: Codecs collection for ISO-2022 encodings.
|
||||
*
|
||||
* Written by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
* Written by Hye-Shik "Bourne to Macro" Chang <perky@FreeBSD.org>
|
||||
*/
|
||||
|
||||
#define USING_IMPORTED_MAPS
|
||||
|
@ -17,11 +18,14 @@
|
|||
#define EMULATE_JISX0213_2000_ENCODE_INVALID MAP_UNMAPPABLE
|
||||
#define EMULATE_JISX0213_2000_DECODE_INVALID MAP_UNMAPPABLE
|
||||
|
||||
#include "third_party/python/Modules/cjkcodecs/cjkcodecs.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/alg_jisx0201.inc"
|
||||
#include "third_party/python/Modules/cjkcodecs/emu_jisx0213_2000.inc"
|
||||
#include "third_party/python/Modules/cjkcodecs/cjkcodecs.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/mappings_jisx0213_pair.inc"
|
||||
|
||||
PYTHON_PROVIDE("_codecs_iso2022");
|
||||
|
||||
/* STATE
|
||||
|
||||
state->c[0-3]
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/*
|
||||
* _codecs_jp.c: Codecs collection for Japanese encodings
|
||||
*
|
||||
* Written by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
* Written by Hye-Shik "Bourne to Macro" Chang <perky@FreeBSD.org>
|
||||
*/
|
||||
|
||||
#define USING_BINARY_PAIR_SEARCH
|
||||
|
@ -18,8 +18,11 @@
|
|||
#include "third_party/python/Modules/cjkcodecs/mappings_jp.inc"
|
||||
#include "third_party/python/Modules/cjkcodecs/mappings_jisx0213_pair.inc"
|
||||
#include "third_party/python/Modules/cjkcodecs/alg_jisx0201.inc"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/emu_jisx0213_2000.inc"
|
||||
|
||||
PYTHON_PROVIDE("_codecs_jp");
|
||||
|
||||
/*
|
||||
* CP932 codec
|
||||
*/
|
||||
|
|
|
@ -9,12 +9,15 @@
|
|||
/*
|
||||
* _codecs_kr.c: Codecs collection for Korean encodings
|
||||
*
|
||||
* Written by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
* Written by Hye-Shik "Bourne to Macro" Chang <perky@FreeBSD.org>
|
||||
*/
|
||||
|
||||
#include "third_party/python/Modules/cjkcodecs/cjkcodecs.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/mappings_kr.inc"
|
||||
|
||||
PYTHON_PROVIDE("_codecs_kr");
|
||||
|
||||
/*
|
||||
* EUC-KR codec
|
||||
*/
|
||||
|
|
|
@ -2,12 +2,15 @@
|
|||
/*
|
||||
* _codecs_tw.c: Codecs collection for Taiwan's encodings
|
||||
*
|
||||
* Written by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
* Written by Hye-Shik "Bourne to Macro" Chang <perky@FreeBSD.org>
|
||||
*/
|
||||
|
||||
#include "third_party/python/Modules/cjkcodecs/cjkcodecs.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/mappings_tw.inc"
|
||||
|
||||
PYTHON_PROVIDE("_codecs_tw");
|
||||
|
||||
/*
|
||||
* BIG5 codec
|
||||
*/
|
||||
|
|
|
@ -17,9 +17,12 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/cjkcodecs/multibytecodec.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_multibytecodec");
|
||||
|
||||
#include "third_party/python/Modules/cjkcodecs/clinic/multibytecodec.inc"
|
||||
|
||||
/*
|
||||
|
|
3
third_party/python/Modules/cmathmodule.c
vendored
3
third_party/python/Modules/cmathmodule.c
vendored
|
@ -18,9 +18,12 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pymath.h"
|
||||
#include "third_party/python/Include/pyport.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/_math.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("cmath");
|
||||
|
||||
/* Complex math module */
|
||||
|
||||
/* much code borrowed from mathmodule.c */
|
||||
|
|
3
third_party/python/Modules/errnomodule.c
vendored
3
third_party/python/Modules/errnomodule.c
vendored
|
@ -15,8 +15,11 @@
|
|||
#include "third_party/python/Include/object.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("errno");
|
||||
|
||||
static PyMethodDef errno_methods[] = {
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
|
3
third_party/python/Modules/faulthandler.c
vendored
3
third_party/python/Modules/faulthandler.c
vendored
|
@ -28,9 +28,12 @@
|
|||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#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("faulthandler");
|
||||
|
||||
/* Allocate at maximum 100 MB of the stack to raise the stack overflow */
|
||||
#define STACK_OVERFLOW_MAX_SIZE (100*1024*1024)
|
||||
|
||||
|
|
3
third_party/python/Modules/fcntlmodule.c
vendored
3
third_party/python/Modules/fcntlmodule.c
vendored
|
@ -21,8 +21,11 @@
|
|||
#include "third_party/python/Include/object.h"
|
||||
#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("fcntl");
|
||||
|
||||
/* fcntl module */
|
||||
|
||||
/*[clinic input]
|
||||
|
|
3
third_party/python/Modules/gcmodule.c
vendored
3
third_party/python/Modules/gcmodule.c
vendored
|
@ -22,8 +22,11 @@
|
|||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/weakrefobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("gc");
|
||||
|
||||
/*
|
||||
|
||||
Reference Cycle Garbage Collection
|
||||
|
|
3
third_party/python/Modules/grpmodule.c
vendored
3
third_party/python/Modules/grpmodule.c
vendored
|
@ -16,10 +16,13 @@
|
|||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/clinic/grpmodule.inc"
|
||||
#include "third_party/python/Modules/posixmodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("grp");
|
||||
|
||||
/* UNIX group file access module */
|
||||
|
||||
/*[clinic input]
|
||||
|
|
3
third_party/python/Modules/itertoolsmodule.c
vendored
3
third_party/python/Modules/itertoolsmodule.c
vendored
|
@ -13,8 +13,11 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#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("itertools");
|
||||
|
||||
/* Itertools module written and maintained
|
||||
by Raymond D. Hettinger <python@rcn.com>
|
||||
*/
|
||||
|
|
26
third_party/python/Modules/main.c
vendored
26
third_party/python/Modules/main.c
vendored
|
@ -23,8 +23,34 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
STATIC_YOINK("PyInit__codecs"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__collections"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__functools"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__heapq"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__locale"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__operator"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__signal"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__sre"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit__stat"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit_errno"); // for pylifecycle.o
|
||||
STATIC_YOINK("PyInit_itertools"); // for pylifecycle.o
|
||||
|
||||
PYTHON_YOINK("encodings.aliases"); // for pylifecycle.o
|
||||
PYTHON_YOINK("encodings.latin_1"); // for pylifecycle.o
|
||||
PYTHON_YOINK("encodings.utf_8"); // for pylifecycle.o
|
||||
PYTHON_YOINK("io"); // for pylifecycle.o
|
||||
PYTHON_YOINK("site"); // for pylifecycle.o
|
||||
PYTHON_YOINK("struct"); // for memoryobject.o
|
||||
|
||||
PYTHON_YOINK("_bootlocale");
|
||||
PYTHON_YOINK("_locale");
|
||||
PYTHON_YOINK("locale");
|
||||
PYTHON_YOINK("_sysconfigdata_m_cosmo_x86_64-cosmo");
|
||||
PYTHON_YOINK("sysconfig");
|
||||
|
||||
/* Python interpreter main program */
|
||||
|
||||
#if defined(MS_WINDOWS)
|
||||
|
|
3
third_party/python/Modules/mathmodule.c
vendored
3
third_party/python/Modules/mathmodule.c
vendored
|
@ -19,10 +19,13 @@
|
|||
#include "third_party/python/Include/pymath.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pyport.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/_math.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("math");
|
||||
|
||||
/* Math module -- standard C math library functions, pi and e */
|
||||
|
||||
/* Here are some comments from Tim Peters, extracted from the
|
||||
|
|
3
third_party/python/Modules/md5module.c
vendored
3
third_party/python/Modules/md5module.c
vendored
|
@ -13,9 +13,12 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/hashlib.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_md5");
|
||||
|
||||
/* See below for information about the original code this module was
|
||||
based upon. Additional work performed by:
|
||||
|
||||
|
|
3
third_party/python/Modules/mmapmodule.c
vendored
3
third_party/python/Modules/mmapmodule.c
vendored
|
@ -26,8 +26,11 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/sliceobject.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("mmap");
|
||||
|
||||
/*
|
||||
/ Author: Sam Rushing <rushing@nightmare.com>
|
||||
/ Hacked for Unix by AMK
|
||||
|
|
3
third_party/python/Modules/ossaudiodev.c
vendored
3
third_party/python/Modules/ossaudiodev.c
vendored
|
@ -7,8 +7,11 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("ossaudiodev");
|
||||
|
||||
/*
|
||||
* ossaudiodev -- Python interface to the OSS (Open Sound System) API.
|
||||
* This is the standard audio API for Linux and some
|
||||
|
|
3
third_party/python/Modules/parsermodule.c
vendored
3
third_party/python/Modules/parsermodule.c
vendored
|
@ -24,8 +24,11 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/token.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("parser");
|
||||
|
||||
/* parsermodule.c
|
||||
*
|
||||
* Copyright 1995-1996 by Fred L. Drake, Jr. and Virginia Polytechnic
|
||||
|
|
3
third_party/python/Modules/posixmodule.c
vendored
3
third_party/python/Modules/posixmodule.c
vendored
|
@ -59,10 +59,13 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/posixmodule.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("posix");
|
||||
|
||||
/* POSIX module implementation */
|
||||
|
||||
/* This file is also used for Windows NT/MS-Win. In that case the
|
||||
|
|
3
third_party/python/Modules/pwdmodule.c
vendored
3
third_party/python/Modules/pwdmodule.c
vendored
|
@ -13,10 +13,13 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/clinic/pwdmodule.inc"
|
||||
#include "third_party/python/Modules/posixmodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("pwd");
|
||||
|
||||
/* UNIX password file access module */
|
||||
|
||||
/*[clinic input]
|
||||
|
|
3
third_party/python/Modules/pyexpat.c
vendored
3
third_party/python/Modules/pyexpat.c
vendored
|
@ -20,9 +20,12 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/expat/expat.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("pyexpat");
|
||||
|
||||
/* Do not emit Clinic output to a file as that wreaks havoc with conditionally
|
||||
included methods. */
|
||||
/*[clinic input]
|
||||
|
|
1433
third_party/python/Modules/readline.c
vendored
1433
third_party/python/Modules/readline.c
vendored
File diff suppressed because it is too large
Load diff
3
third_party/python/Modules/resource.c
vendored
3
third_party/python/Modules/resource.c
vendored
|
@ -19,9 +19,12 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("resource");
|
||||
|
||||
/* On some systems, these aren't in any header file.
|
||||
On others they are, with inconsistent prototypes.
|
||||
We declare the (default) return type, to shut up gcc -Wall;
|
||||
|
|
3
third_party/python/Modules/selectmodule.c
vendored
3
third_party/python/Modules/selectmodule.c
vendored
|
@ -29,9 +29,12 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pytime.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("select");
|
||||
|
||||
/* select - Module containing unix select(2) call.
|
||||
Under Unix, the file descriptors are small integers.
|
||||
Under Win32, select only exists for sockets, and sockets may
|
||||
|
|
3
third_party/python/Modules/sha1module.c
vendored
3
third_party/python/Modules/sha1module.c
vendored
|
@ -13,9 +13,12 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/hashlib.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_sha1");
|
||||
|
||||
/* SHA1 module */
|
||||
|
||||
/* This module provides an interface to the SHA1 algorithm */
|
||||
|
|
3
third_party/python/Modules/sha256module.c
vendored
3
third_party/python/Modules/sha256module.c
vendored
|
@ -15,9 +15,12 @@
|
|||
#include "third_party/python/Include/pystrhex.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/hashlib.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_sha256");
|
||||
|
||||
/* This module provides an interface to NIST's SHA-256 and SHA-224 Algorithms */
|
||||
|
||||
/* See below for information about the original code this module was
|
||||
|
|
3
third_party/python/Modules/sha512module.c
vendored
3
third_party/python/Modules/sha512module.c
vendored
|
@ -14,9 +14,12 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
#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("_sha512");
|
||||
|
||||
/* This module provides an interface to NIST's SHA-512 and SHA-384 Algorithms */
|
||||
|
||||
/* See below for information about the original code this module was
|
||||
|
|
3
third_party/python/Modules/signalmodule.c
vendored
3
third_party/python/Modules/signalmodule.c
vendored
|
@ -26,10 +26,13 @@
|
|||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/posixmodule.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_signal");
|
||||
|
||||
/* Signal module -- many thanks to Lance Ellinghaus */
|
||||
|
||||
/* XXX Signals should be recorded per thread, now we have thread state. */
|
||||
|
|
3
third_party/python/Modules/socketmodule.c
vendored
3
third_party/python/Modules/socketmodule.c
vendored
|
@ -50,10 +50,13 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/socketmodule.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_socket");
|
||||
|
||||
/*
|
||||
|
||||
This module provides an interface to Berkeley socket IPC.
|
||||
|
|
3
third_party/python/Modules/spwdmodule.c
vendored
3
third_party/python/Modules/spwdmodule.c
vendored
|
@ -8,9 +8,12 @@
|
|||
#include "third_party/python/Include/modsupport.h"
|
||||
#include "third_party/python/Include/moduleobject.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/clinic/spwdmodule.inc"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("spwd");
|
||||
|
||||
/* UNIX shadow password file access module */
|
||||
/* A lot of code has been taken from pwdmodule.c */
|
||||
/* For info also see http://www.unixpapa.com/incnote/passwd.html */
|
||||
|
|
3
third_party/python/Modules/symtablemodule.c
vendored
3
third_party/python/Modules/symtablemodule.c
vendored
|
@ -12,8 +12,11 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/symtable.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_symtable");
|
||||
|
||||
static PyObject *
|
||||
symtable_symtable(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
|
3
third_party/python/Modules/syslogmodule.c
vendored
3
third_party/python/Modules/syslogmodule.c
vendored
|
@ -16,8 +16,11 @@
|
|||
#include "third_party/python/Include/sysmodule.h"
|
||||
#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("syslog");
|
||||
|
||||
/***********************************************************
|
||||
Copyright 1994 by Lance Ellinghouse,
|
||||
Cathedral City, California Republic, United States of America.
|
||||
|
|
3
third_party/python/Modules/termios.c
vendored
3
third_party/python/Modules/termios.c
vendored
|
@ -22,8 +22,11 @@
|
|||
#include "third_party/python/Include/object.h"
|
||||
#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("termios");
|
||||
|
||||
/* termiosmodule.c -- POSIX terminal I/O module implementation. */
|
||||
|
||||
PyDoc_STRVAR(termios__doc__,
|
||||
|
|
3
third_party/python/Modules/timemodule.c
vendored
3
third_party/python/Modules/timemodule.c
vendored
|
@ -34,9 +34,12 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pytime.h"
|
||||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("time");
|
||||
|
||||
typedef int clockid_t;
|
||||
#undef HAVE_CLOCK_SETTIME
|
||||
|
||||
|
|
3
third_party/python/Modules/unicodedata.c
vendored
3
third_party/python/Modules/unicodedata.c
vendored
|
@ -16,8 +16,11 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/ucnhash.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("unicodedata");
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
|
||||
unicodedata -- Provides access to the Unicode database.
|
||||
|
|
3
third_party/python/Modules/xxlimited.c
vendored
3
third_party/python/Modules/xxlimited.c
vendored
|
@ -12,8 +12,11 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/typeslots.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("xxlimited");
|
||||
|
||||
/* Use this file as a template to start implementing a module that
|
||||
also declares object types. All occurrences of 'Xxo' should be changed
|
||||
to something reasonable for your objects. After that, all other
|
||||
|
|
3
third_party/python/Modules/xxmodule.c
vendored
3
third_party/python/Modules/xxmodule.c
vendored
|
@ -11,8 +11,11 @@
|
|||
#include "third_party/python/Include/modsupport.h"
|
||||
#include "third_party/python/Include/object.h"
|
||||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("xx");
|
||||
|
||||
/* Use this file as a template to start implementing a module that
|
||||
also declares object types. All occurrences of 'Xxo' should be changed
|
||||
to something reasonable for your objects. After that, all other
|
||||
|
|
3
third_party/python/Modules/xxsubtype.c
vendored
3
third_party/python/Modules/xxsubtype.c
vendored
|
@ -15,8 +15,11 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#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("xxsubtype");
|
||||
|
||||
PyDoc_STRVAR(xxsubtype__doc__,
|
||||
"xxsubtype is an example module showing how to subtype builtin types from C.\n"
|
||||
"test_descr.py in the standard test suite requires it in order to complete.\n"
|
||||
|
|
3
third_party/python/Modules/zipimport.c
vendored
3
third_party/python/Modules/zipimport.c
vendored
|
@ -32,8 +32,11 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("zipimport");
|
||||
|
||||
#define IS_SOURCE 0x0
|
||||
#define IS_BYTECODE 0x1
|
||||
#define IS_PACKAGE 0x2
|
||||
|
|
3
third_party/python/Modules/zlibmodule.c
vendored
3
third_party/python/Modules/zlibmodule.c
vendored
|
@ -13,9 +13,12 @@
|
|||
#include "third_party/python/Include/objimpl.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/zlib/zlib.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("zlib");
|
||||
|
||||
/* zlibmodule.c -- gzip-compatible data compression */
|
||||
/* See http://zlib.net/ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue