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/Python/Python-ast.c
generated
vendored
1
third_party/python/Python/Python-ast.c
generated
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_ast");
|
||||
|
||||
|
|
1
third_party/python/Python/_warnings.c
vendored
1
third_party/python/Python/_warnings.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("_warnings");
|
||||
|
||||
|
|
1
third_party/python/Python/asdl.c
vendored
1
third_party/python/Python/asdl.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/asdl.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
/* clang-format off */
|
||||
|
||||
asdl_seq *
|
||||
_Py_asdl_seq_new(Py_ssize_t size, PyArena *arena)
|
||||
|
|
1
third_party/python/Python/ast.c
vendored
1
third_party/python/Python/ast.c
vendored
|
@ -30,7 +30,6 @@
|
|||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Modules/unicodedata.h"
|
||||
/* clang-format off */
|
||||
|
||||
static int validate_stmts(asdl_seq *);
|
||||
static int validate_exprs(asdl_seq *, expr_context_ty, int);
|
||||
|
|
1
third_party/python/Python/atexit.c
vendored
1
third_party/python/Python/atexit.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define NEXITFUNCS 32
|
||||
|
||||
|
|
1
third_party/python/Python/bltinmodule.c
vendored
1
third_party/python/Python/bltinmodule.c
vendored
|
@ -46,7 +46,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("builtins.ArithmeticError");
|
||||
PYTHON_PROVIDE("builtins.AssertionError");
|
||||
|
|
1
third_party/python/Python/ceval.c
vendored
1
third_party/python/Python/ceval.c
vendored
|
@ -36,7 +36,6 @@
|
|||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Execute compiled code */
|
||||
|
||||
|
|
1
third_party/python/Python/ceval_gil.inc
vendored
1
third_party/python/Python/ceval_gil.inc
vendored
|
@ -9,7 +9,6 @@
|
|||
#include "libc/thread/thread2.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Python/condvar.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Implementation of the Global Interpreter Lock (GIL).
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
1
third_party/python/Python/clinic/import.inc
vendored
1
third_party/python/Python/clinic/import.inc
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
1
third_party/python/Python/codecs.c
vendored
1
third_party/python/Python/codecs.c
vendored
|
@ -22,7 +22,6 @@
|
|||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/ucnhash.h"
|
||||
#include "third_party/python/Modules/unicodedata.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* ------------------------------------------------------------------------
|
||||
|
||||
|
|
1
third_party/python/Python/compile.c
vendored
1
third_party/python/Python/compile.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Python/wordcode_helpers.inc"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* This file compiles an abstract syntax tree (AST) into Python bytecode.
|
||||
|
|
1
third_party/python/Python/condvar.h
vendored
1
third_party/python/Python/condvar.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef _CONDVAR_H_
|
||||
#define _CONDVAR_H_
|
||||
#include "libc/time/time.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Portable condition variable support for windows and pthreads.
|
||||
|
|
1
third_party/python/Python/cosmomodule.c
vendored
1
third_party/python/Python/cosmomodule.c
vendored
|
@ -44,7 +44,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/xed/x86.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("cosmo");
|
||||
PYTHON_PROVIDE("cosmo.exit1");
|
||||
|
|
1
third_party/python/Python/dtoa.c
vendored
1
third_party/python/Python/dtoa.c
vendored
|
@ -10,7 +10,6 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pyport.h"
|
||||
/* clang-format off */
|
||||
|
||||
/****************************************************************
|
||||
*
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/dynamic_annotations.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Copyright (c) 2008-2009, Google Inc.
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/python/Python/dynload_dl.c
vendored
1
third_party/python/Python/dynload_dl.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Python/importdl.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Support for dynamic loading of extension modules */
|
||||
|
||||
|
|
1
third_party/python/Python/dynload_shlib.c
vendored
1
third_party/python/Python/dynload_shlib.c
vendored
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Python/importdl.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define SOABI "cpython36m-x86_64-cosmo"
|
||||
|
||||
|
|
1
third_party/python/Python/dynload_stub.c
vendored
1
third_party/python/Python/dynload_stub.c
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Python/importdl.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* This module provides the necessary stubs for when dynamic loading is
|
||||
not present. */
|
||||
|
|
1
third_party/python/Python/dynload_win.c
vendored
1
third_party/python/Python/dynload_win.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/patchlevel.h"
|
||||
#include "third_party/python/Python/importdl.h"
|
||||
/* clang-format off */
|
||||
|
||||
// "activation context" magic - see dl_nt.c...
|
||||
#if HAVE_SXS
|
||||
|
|
1
third_party/python/Python/errors.c
vendored
1
third_party/python/Python/errors.c
vendored
|
@ -27,7 +27,6 @@
|
|||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
_Py_IDENTIFIER(builtins);
|
||||
_Py_IDENTIFIER(stderr);
|
||||
|
|
1
third_party/python/Python/fatality.c
vendored
1
third_party/python/Python/fatality.c
vendored
|
@ -14,7 +14,6 @@
|
|||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
/* clang-format off */
|
||||
|
||||
_Py_IDENTIFIER(flush);
|
||||
_Py_IDENTIFIER(stderr);
|
||||
|
|
1
third_party/python/Python/fdisinteractive.c
vendored
1
third_party/python/Python/fdisinteractive.c
vendored
|
@ -7,7 +7,6 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "third_party/python/Include/pydebug.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* The file descriptor fd is considered ``interactive'' if either
|
||||
|
|
1
third_party/python/Python/fileutils.c
vendored
1
third_party/python/Python/fileutils.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pyport.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
wchar_t* _Py_DecodeUTF8_surrogateescape(const char *, Py_ssize_t);
|
||||
|
||||
|
|
1
third_party/python/Python/finalize.c
vendored
1
third_party/python/Python/finalize.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Undo the effect of Py_Initialize().
|
||||
|
||||
|
|
1
third_party/python/Python/flags.c
vendored
1
third_party/python/Python/flags.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/pydebug.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Global configuration variable declarations are in pydebug.h */
|
||||
/* XXX (ncoghlan): move those declarations to pylifecycle.h? */
|
||||
|
|
1
third_party/python/Python/flushstdfiles.c
vendored
1
third_party/python/Python/flushstdfiles.c
vendored
|
@ -9,7 +9,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
_Py_IDENTIFIER(flush);
|
||||
_Py_IDENTIFIER(stdout);
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include "third_party/python/Include/pyport.h"
|
||||
#include "third_party/python/Include/pystrtod.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* implements the unicode (as opposed to string) version of the
|
||||
built-in formatters for string, int, float. that is, the versions
|
||||
|
|
1
third_party/python/Python/frozen.c
vendored
1
third_party/python/Python/frozen.c
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/import.h"
|
||||
/* clang-format off */
|
||||
|
||||
#include "o//third_party/python/Python/importlib.inc"
|
||||
#include "o//third_party/python/Python/importlib_external.inc"
|
||||
|
|
1
third_party/python/Python/frozenmain.c
vendored
1
third_party/python/Python/frozenmain.c
vendored
|
@ -15,7 +15,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
extern void PyWinFreeze_ExeInit(void);
|
||||
|
|
1
third_party/python/Python/future.c
vendored
1
third_party/python/Python/future.c
vendored
|
@ -13,7 +13,6 @@
|
|||
#include "third_party/python/Include/symtable.h"
|
||||
#include "third_party/python/Include/token.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined"
|
||||
#define ERR_LATE_FUTURE \
|
||||
|
|
1
third_party/python/Python/getargs.c
vendored
1
third_party/python/Python/getargs.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/pymem.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define FLAG_COMPAT 1
|
||||
#define FLAG_SIZE_T 2
|
||||
|
|
1
third_party/python/Python/getcompiler.c
vendored
1
third_party/python/Python/getcompiler.c
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
#ifndef COMPILER
|
||||
#ifdef __llvm__
|
||||
|
|
1
third_party/python/Python/getcopyright.c
vendored
1
third_party/python/Python/getcopyright.c
vendored
|
@ -9,7 +9,6 @@
|
|||
#include "libc/stdio/append.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
Python 3.6 (https://docs.python.org/3/license.html)\\n\
|
||||
|
|
2
third_party/python/Python/getopt.c
vendored
2
third_party/python/Python/getopt.c
vendored
|
@ -7,12 +7,10 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/python/Include/pygetopt.h"
|
||||
/* clang-format off */
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
python getopt (isc license)\\n\
|
||||
Copyright 1992-1994 David Gottner\"");
|
||||
/* clang-format off */
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
* <RCS keywords>
|
||||
|
|
1
third_party/python/Python/getplatform.c
vendored
1
third_party/python/Python/getplatform.c
vendored
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
const char *
|
||||
Py_GetPlatform(void)
|
||||
|
|
1
third_party/python/Python/getsig.c
vendored
1
third_party/python/Python/getsig.c
vendored
|
@ -9,7 +9,6 @@
|
|||
#include "third_party/python/Include/pydebug.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PyOS_sighandler_t
|
||||
PyOS_getsig(int sig)
|
||||
|
|
1
third_party/python/Python/getversion.c
vendored
1
third_party/python/Python/getversion.c
vendored
|
@ -7,7 +7,6 @@
|
|||
#include "third_party/python/Include/patchlevel.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Return the full version string. */
|
||||
|
||||
|
|
1
third_party/python/Python/graminit.c
vendored
1
third_party/python/Python/graminit.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/grammar.h"
|
||||
#include "third_party/python/Include/pgenheaders.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Generated by Parser/pgen */
|
||||
|
||||
|
|
3
third_party/python/Python/import.c
vendored
3
third_party/python/Python/import.c
vendored
|
@ -10,7 +10,6 @@
|
|||
#include "libc/calls/struct/stat.macros.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/fmt/libgen.h"
|
||||
#include "libc/intrin/bits.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/mem/gc.h"
|
||||
|
@ -51,8 +50,8 @@
|
|||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/weakrefobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "libc/serialize.h"
|
||||
#include "third_party/python/Python/importdl.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_imp");
|
||||
PYTHON_PROVIDE("_imp.__doc__");
|
||||
|
|
1
third_party/python/Python/importdl.c
vendored
1
third_party/python/Python/importdl.c
vendored
|
@ -12,7 +12,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Python/importdl.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Support for dynamic loading of extension modules */
|
||||
|
||||
|
|
1
third_party/python/Python/initfsencoding.c
vendored
1
third_party/python/Python/initfsencoding.c
vendored
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
_Py_IDENTIFIER(name);
|
||||
|
||||
|
|
1
third_party/python/Python/initimport.c
vendored
1
third_party/python/Python/initimport.c
vendored
|
@ -20,7 +20,6 @@
|
|||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_frozen_importlib");
|
||||
PYTHON_PROVIDE("_frozen_importlib_external");
|
||||
|
|
1
third_party/python/Python/initmain.c
vendored
1
third_party/python/Python/initmain.c
vendored
|
@ -10,7 +10,6 @@
|
|||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/pystate.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("__main__");
|
||||
|
||||
|
|
1
third_party/python/Python/initsigs.c
vendored
1
third_party/python/Python/initsigs.c
vendored
|
@ -9,7 +9,6 @@
|
|||
#include "third_party/python/Include/intrcheck.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
void
|
||||
_Py_InitSigs(void)
|
||||
|
|
1
third_party/python/Python/initsite.c
vendored
1
third_party/python/Python/initsite.c
vendored
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* PYTHON_YOINK("site"); */
|
||||
/* PYTHON_YOINK("_sysconfigdata_m_cosmo_x86_64_cosmo"); */
|
||||
|
|
1
third_party/python/Python/initstdio.c
vendored
1
third_party/python/Python/initstdio.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* PYTHON_YOINK("io"); */
|
||||
/* PYTHON_YOINK("encodings.aliases"); */
|
||||
|
|
1
third_party/python/Python/marshal.c
vendored
1
third_party/python/Python/marshal.c
vendored
|
@ -32,7 +32,6 @@
|
|||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/hashtable.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("marshal");
|
||||
|
||||
|
|
1
third_party/python/Python/modsupport.c
vendored
1
third_party/python/Python/modsupport.c
vendored
|
@ -15,7 +15,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define FLAG_SIZE_T 1
|
||||
typedef double va_double;
|
||||
|
|
1
third_party/python/Python/mysnprintf.c
vendored
1
third_party/python/Python/mysnprintf.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* snprintf() wrappers. If the platform has vsnprintf, we use it, else we
|
||||
emulate it in a half-hearted way. Even if the platform has it, we wrap
|
||||
|
|
1
third_party/python/Python/mystrtoul.c
vendored
1
third_party/python/Python/mystrtoul.c
vendored
|
@ -10,7 +10,6 @@
|
|||
#include "third_party/python/Include/pyctype.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Static overflow check values for bases 2 through 36.
|
||||
* smallmax[base] is the largest unsigned long i such that
|
||||
|
|
1
third_party/python/Python/opcode_targets.inc
vendored
1
third_party/python/Python/opcode_targets.inc
vendored
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
|
||||
static void *const opcode_targets[256] = {
|
||||
&&_unknown_opcode,
|
||||
|
|
1
third_party/python/Python/peephole.c
vendored
1
third_party/python/Python/peephole.c
vendored
|
@ -21,7 +21,6 @@
|
|||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Python/wordcode_helpers.inc"
|
||||
#include "third_party/quickjs/internal.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Peephole optimizations for bytecode compiler. */
|
||||
|
||||
|
|
1
third_party/python/Python/progname.c
vendored
1
third_party/python/Python/progname.c
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
static wchar_t *progname = L"python";
|
||||
|
|
1
third_party/python/Python/pyarena.c
vendored
1
third_party/python/Python/pyarena.c
vendored
|
@ -12,7 +12,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* A simple arena block structure.
|
||||
|
||||
|
|
1
third_party/python/Python/pyfpe.c
vendored
1
third_party/python/Python/pyfpe.c
vendored
|
@ -4,7 +4,6 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
/* clang-format off */
|
||||
#include "third_party/python/pyconfig.h"
|
||||
#include "third_party/python/Include/pyfpe.h"
|
||||
/*
|
||||
|
|
1
third_party/python/Python/pyhash.c
vendored
1
third_party/python/Python/pyhash.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "third_party/python/Include/pyhash.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Set of hash utility functions to help maintaining the invariant that
|
||||
if a==b then hash(a)==hash(b)
|
||||
|
|
1
third_party/python/Python/pylifecycle.c
vendored
1
third_party/python/Python/pylifecycle.c
vendored
|
@ -49,7 +49,6 @@
|
|||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Python interpreter top-level routines, including init/exit */
|
||||
|
||||
|
|
1
third_party/python/Python/pymath.c
vendored
1
third_party/python/Python/pymath.c
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
#ifdef X87_DOUBLE_ROUNDING
|
||||
/* On x86 platforms using an x87 FPU, this function is called from the
|
||||
|
|
1
third_party/python/Python/pystate.c
vendored
1
third_party/python/Python/pystate.c
vendored
|
@ -16,7 +16,6 @@
|
|||
#include "third_party/python/Include/pydebug.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
/* clang-format off */
|
||||
|
||||
#if defined(__SANITIZE_ADDRESS__) || defined(__SANITIZE_UNDEFINED__)
|
||||
__static_yoink("__die"); /* to guarantee backtraces */
|
||||
|
|
1
third_party/python/Python/pystrcmp.c
vendored
1
third_party/python/Python/pystrcmp.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/object.h"
|
||||
#include "third_party/python/Include/pyctype.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Cross platform case insensitive string compare functions
|
||||
*/
|
||||
|
|
1
third_party/python/Python/pystrhex.c
vendored
1
third_party/python/Python/pystrhex.c
vendored
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* bytes to hex implementation */
|
||||
|
||||
|
|
1
third_party/python/Python/pystrtod.c
vendored
1
third_party/python/Python/pystrtod.c
vendored
|
@ -15,7 +15,6 @@
|
|||
#include "third_party/python/Include/pymem.h"
|
||||
#include "third_party/python/Include/pyport.h"
|
||||
#include "third_party/python/Include/pystrtod.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Case-insensitive string match used for nan and inf detection; t should be
|
||||
lower-case. Returns 1 for a successful match, 0 otherwise. */
|
||||
|
|
1
third_party/python/Python/pythonhome.c
vendored
1
third_party/python/Python/pythonhome.c
vendored
|
@ -9,7 +9,6 @@
|
|||
#include "third_party/python/Include/pydebug.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
/* clang-format off */
|
||||
|
||||
static wchar_t *default_home = NULL;
|
||||
static wchar_t env_home[MAXPATHLEN+1];
|
||||
|
|
1
third_party/python/Python/pythonrun.c
vendored
1
third_party/python/Python/pythonrun.c
vendored
|
@ -34,7 +34,6 @@
|
|||
#include "third_party/python/Include/token.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Python interpreter top-level routines, including init/exit */
|
||||
|
||||
|
|
1
third_party/python/Python/pytime.c
vendored
1
third_party/python/Python/pytime.c
vendored
|
@ -16,7 +16,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pymath.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define _PyTime_check_mul_overflow(a, b) \
|
||||
(assert(b > 0), \
|
||||
|
|
1
third_party/python/Python/random.c
vendored
1
third_party/python/Python/random.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "third_party/python/Include/pyhash.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
#ifdef Py_DEBUG
|
||||
int _Py_HashSecret_Initialized = 0;
|
||||
|
|
1
third_party/python/Python/recursive.c
vendored
1
third_party/python/Python/recursive.c
vendored
|
@ -17,7 +17,6 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/ceval.h"
|
||||
/* clang-format off */
|
||||
|
||||
int
|
||||
(Py_EnterRecursiveCall)(const char *where)
|
||||
|
|
1
third_party/python/Python/restoresigs.c
vendored
1
third_party/python/Python/restoresigs.c
vendored
|
@ -7,7 +7,6 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/sysv/consts/sig.h"
|
||||
#include "third_party/python/Include/pylifecycle.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL.
|
||||
*
|
||||
|
|
1
third_party/python/Python/sigcheck.c
vendored
1
third_party/python/Python/sigcheck.c
vendored
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/intrcheck.h"
|
||||
#include "third_party/python/Include/pyerrors.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Sigcheck is similar to intrcheck() but sets an exception when an
|
||||
interrupt occurs. It can't be in the intrcheck.c file since that
|
||||
|
|
1
third_party/python/Python/structmember.c
vendored
1
third_party/python/Python/structmember.c
vendored
|
@ -11,7 +11,6 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Map C struct members to Python object attributes */
|
||||
|
||||
|
|
1
third_party/python/Python/symtable.c
vendored
1
third_party/python/Python/symtable.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "third_party/python/Include/setobject.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/symtable.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* error strings used for warnings */
|
||||
#define GLOBAL_AFTER_ASSIGN \
|
||||
|
|
1
third_party/python/Python/sysmodule.c
vendored
1
third_party/python/Python/sysmodule.c
vendored
|
@ -49,7 +49,6 @@
|
|||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("sys");
|
||||
PYTHON_PROVIDE("sys.__displayhook__");
|
||||
|
|
1
third_party/python/Python/thread.c
vendored
1
third_party/python/Python/thread.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/structseq.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Thread package.
|
||||
This is intended to be usable independently from Python.
|
||||
|
|
1
third_party/python/Python/thread_pthread.inc
vendored
1
third_party/python/Python/thread_pthread.inc
vendored
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/thread/semaphore.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Posix threads interface */
|
||||
|
||||
|
|
1
third_party/python/Python/traceback.c
vendored
1
third_party/python/Python/traceback.c
vendored
|
@ -24,7 +24,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/traceback.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define OFF(x) offsetof(PyTracebackObject, x)
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Include/code.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* This file contains code shared by the compiler and the peephole
|
||||
optimizer.
|
||||
|
|
1
third_party/python/Python/xedmodule.c
vendored
1
third_party/python/Python/xedmodule.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/xed/x86.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("xed");
|
||||
PYTHON_PROVIDE("xed.ild");
|
||||
|
|
1
third_party/python/Python/xtermmodule.c
vendored
1
third_party/python/Python/xtermmodule.c
vendored
|
@ -24,7 +24,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("xterm");
|
||||
PYTHON_PROVIDE("xterm.rgb2xterm256");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue