mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
Status lines for Emacs and Vim have been added to Python sources so they'll be easier to edit using Python's preferred coding style. Some DNS helper functions have been broken up into multiple files. It's nice to have one function per file whenever possible, since that way we don't need -ffunction-sections. Another reason it's good to have small source files, is because the build will be enforcing resource limits on compilation and testing soon.
194 lines
6.9 KiB
C
194 lines
6.9 KiB
C
/*-*- 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 │
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
|
/* clang-format off */
|
|
|
|
/* Generated automatically from ./Modules/config.c.in by makesetup. */
|
|
/* -*- C -*- ***********************************************
|
|
Copyright (c) 2000, BeOpen.com.
|
|
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
|
|
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
|
|
All rights reserved.
|
|
|
|
See the file "Misc/COPYRIGHT" for information on usage and
|
|
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|
******************************************************************/
|
|
|
|
/* Module configuration */
|
|
|
|
/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
|
|
|
|
/* This file contains the table of built-in modules.
|
|
See create_builtin() in import.c. */
|
|
|
|
#include "third_party/python/Include/Python.h"
|
|
|
|
extern PyObject* PyInit__decimal(void);
|
|
extern PyObject* PyInit_audioop(void);
|
|
extern PyObject* PyInit_posix(void);
|
|
extern PyObject* PyInit_errno(void);
|
|
extern PyObject* PyInit_pwd(void);
|
|
extern PyObject* PyInit__sre(void);
|
|
extern PyObject* PyInit__codecs(void);
|
|
extern PyObject* PyInit__functools(void);
|
|
extern PyObject* PyInit__operator(void);
|
|
extern PyObject* PyInit__collections(void);
|
|
extern PyObject* PyInit_itertools(void);
|
|
extern PyObject* PyInit_atexit(void);
|
|
extern PyObject* PyInit__signal(void);
|
|
extern PyObject* PyInit__stat(void);
|
|
extern PyObject* PyInit_time(void);
|
|
extern PyObject* PyInit__locale(void);
|
|
extern PyObject* PyInit__io(void);
|
|
extern PyObject* PyInit_zipimport(void);
|
|
extern PyObject* PyInit_faulthandler(void);
|
|
extern PyObject* PyInit__tracemalloc(void);
|
|
extern PyObject* PyInit__symtable(void);
|
|
extern PyObject* PyInit_array(void);
|
|
extern PyObject* PyInit_cmath(void);
|
|
extern PyObject* PyInit_math(void);
|
|
extern PyObject* PyInit__struct(void);
|
|
extern PyObject* PyInit__weakref(void);
|
|
extern PyObject* PyInit__testcapi(void);
|
|
extern PyObject* PyInit__random(void);
|
|
extern PyObject* PyInit__elementtree(void);
|
|
extern PyObject* PyInit__pickle(void);
|
|
extern PyObject* PyInit__datetime(void);
|
|
extern PyObject* PyInit__bisect(void);
|
|
extern PyObject* PyInit__heapq(void);
|
|
extern PyObject* PyInit_unicodedata(void);
|
|
extern PyObject* PyInit_fcntl(void);
|
|
extern PyObject* PyInit_grp(void);
|
|
extern PyObject* PyInit_select(void);
|
|
extern PyObject* PyInit_mmap(void);
|
|
extern PyObject* PyInit__csv(void);
|
|
extern PyObject* PyInit__socket(void);
|
|
extern PyObject* PyInit_resource(void);
|
|
extern PyObject* PyInit__posixsubprocess(void);
|
|
extern PyObject* PyInit__md5(void);
|
|
extern PyObject* PyInit__sha1(void);
|
|
extern PyObject* PyInit__sha256(void);
|
|
extern PyObject* PyInit__sha512(void);
|
|
extern PyObject* PyInit__sha3(void);
|
|
extern PyObject* PyInit_syslog(void);
|
|
extern PyObject* PyInit_binascii(void);
|
|
extern PyObject* PyInit_parser(void);
|
|
extern PyObject* PyInit_fpectl(void);
|
|
extern PyObject* PyInit_zlib(void);
|
|
extern PyObject* PyInit_pyexpat(void);
|
|
extern PyObject* PyInit__multibytecodec(void);
|
|
extern PyObject* PyInit__codecs_cn(void);
|
|
extern PyObject* PyInit__codecs_hk(void);
|
|
extern PyObject* PyInit__codecs_iso2022(void);
|
|
extern PyObject* PyInit__codecs_jp(void);
|
|
extern PyObject* PyInit__codecs_kr(void);
|
|
extern PyObject* PyInit__codecs_tw(void);
|
|
extern PyObject* PyInit__json(void);
|
|
extern PyObject* PyInit__lsprof(void);
|
|
extern PyObject* PyInit__opcode(void);
|
|
|
|
/* -- ADDMODULE MARKER 1 -- */
|
|
|
|
extern PyObject* PyMarshal_Init(void);
|
|
extern PyObject* PyInit_imp(void);
|
|
extern PyObject* PyInit_gc(void);
|
|
extern PyObject* PyInit__ast(void);
|
|
extern PyObject* _PyWarnings_Init(void);
|
|
extern PyObject* PyInit__string(void);
|
|
|
|
struct _inittab _PyImport_Inittab[] = {
|
|
|
|
{"_decimal", PyInit__decimal},
|
|
{"posix", PyInit_posix},
|
|
{"audioop", PyInit_audioop},
|
|
{"errno", PyInit_errno},
|
|
{"pwd", PyInit_pwd},
|
|
{"_sre", PyInit__sre},
|
|
{"_codecs", PyInit__codecs},
|
|
{"_functools", PyInit__functools},
|
|
{"_operator", PyInit__operator},
|
|
{"_collections", PyInit__collections},
|
|
{"itertools", PyInit_itertools},
|
|
{"atexit", PyInit_atexit},
|
|
{"_signal", PyInit__signal},
|
|
{"_stat", PyInit__stat},
|
|
{"time", PyInit_time},
|
|
{"_locale", PyInit__locale},
|
|
{"_io", PyInit__io},
|
|
{"zipimport", PyInit_zipimport},
|
|
{"faulthandler", PyInit_faulthandler},
|
|
{"_tracemalloc", PyInit__tracemalloc},
|
|
{"_symtable", PyInit__symtable},
|
|
{"array", PyInit_array},
|
|
{"cmath", PyInit_cmath},
|
|
{"math", PyInit_math},
|
|
{"_struct", PyInit__struct},
|
|
{"_weakref", PyInit__weakref},
|
|
{"_testcapi", PyInit__testcapi},
|
|
{"_random", PyInit__random},
|
|
{"_elementtree", PyInit__elementtree},
|
|
{"_pickle", PyInit__pickle},
|
|
{"_datetime", PyInit__datetime},
|
|
{"_bisect", PyInit__bisect},
|
|
{"_heapq", PyInit__heapq},
|
|
{"unicodedata", PyInit_unicodedata},
|
|
{"fcntl", PyInit_fcntl},
|
|
{"grp", PyInit_grp},
|
|
{"select", PyInit_select},
|
|
{"mmap", PyInit_mmap},
|
|
{"_csv", PyInit__csv},
|
|
{"_socket", PyInit__socket},
|
|
{"resource", PyInit_resource},
|
|
{"_posixsubprocess", PyInit__posixsubprocess},
|
|
{"_md5", PyInit__md5},
|
|
{"_sha1", PyInit__sha1},
|
|
{"_sha256", PyInit__sha256},
|
|
{"_sha512", PyInit__sha512},
|
|
{"_sha3", PyInit__sha3},
|
|
{"syslog", PyInit_syslog},
|
|
{"binascii", PyInit_binascii},
|
|
{"parser", PyInit_parser},
|
|
{"fpectl", PyInit_fpectl},
|
|
{"zlib", PyInit_zlib},
|
|
{"pyexpat", PyInit_pyexpat},
|
|
{"_multibytecodec", PyInit__multibytecodec},
|
|
{"_codecs_cn", PyInit__codecs_cn},
|
|
{"_codecs_hk", PyInit__codecs_hk},
|
|
{"_codecs_iso2022", PyInit__codecs_iso2022},
|
|
{"_codecs_jp", PyInit__codecs_jp},
|
|
{"_codecs_kr", PyInit__codecs_kr},
|
|
{"_codecs_tw", PyInit__codecs_tw},
|
|
{"_json", PyInit__json},
|
|
{"_lsprof", PyInit__lsprof},
|
|
{"_opcode", PyInit__opcode},
|
|
|
|
/* -- ADDMODULE MARKER 2 -- */
|
|
|
|
/* This module lives in marshal.c */
|
|
{"marshal", PyMarshal_Init},
|
|
|
|
/* This lives in import.c */
|
|
{"_imp", PyInit_imp},
|
|
|
|
/* This lives in Python/Python-ast.c */
|
|
{"_ast", PyInit__ast},
|
|
|
|
/* These entries are here for sys.builtin_module_names */
|
|
{"builtins", NULL},
|
|
{"sys", NULL},
|
|
|
|
/* This lives in gcmodule.c */
|
|
{"gc", PyInit_gc},
|
|
|
|
/* This lives in _warnings.c */
|
|
{"_warnings", _PyWarnings_Init},
|
|
|
|
/* This lives in Objects/unicodeobject.c */
|
|
{"_string", PyInit__string},
|
|
|
|
/* Sentinel */
|
|
{0, 0}
|
|
};
|