path stringlengths 14 112 | content stringlengths 0 6.32M | size int64 0 6.32M | max_lines int64 1 100k | repo_name stringclasses 2
values | autogenerated bool 1
class |
|---|---|---|---|---|---|
cosmopolitan/third_party/python/Include/moduleobject.h | #ifndef Py_MODULEOBJECT_H
#define Py_MODULEOBJECT_H
#include "third_party/python/Include/methodobject.h"
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
/* clang-format off */
extern PyTypeObject PyModule_Type;
#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
#define PyModule_Che... | 2,197 | 86 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/compile.h | #ifndef Py_COMPILE_H
#define Py_COMPILE_H
#include "third_party/python/Include/code.h"
#include "third_party/python/Include/object.h"
#include "third_party/python/Include/pythonrun.h"
COSMOPOLITAN_C_START_
#define Py_single_input 256
#define Py_file_input 257
#define Py_eval_input 258
#ifndef Py_LIMITED_API
/* cl... | 2,062 | 68 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/pyexpat.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_INCLUDE_PYEXPAT_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_INCLUDE_PYEXPAT_H_
#include "third_party/python/Modules/expat/expat.h"
#include "third_party/python/Modules/expat/expat_external.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/* clang-format off */
#defi... | 2,714 | 63 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/pyarena.h | #ifndef Py_LIMITED_API
#ifndef Py_PYARENA_H
#define Py_PYARENA_H
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
/* clang-format off */
typedef struct _arena PyArena;
/* PyArena_New() and PyArena_Free() create a new arena and free it,
respectively. Once an arena has been created, it can be us... | 2,598 | 58 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/pytime.h | #ifndef Py_LIMITED_API
#ifndef Py_PYTIME_H
#define Py_PYTIME_H
#include "libc/calls/struct/timespec.h"
#include "libc/calls/struct/timeval.h"
#include "libc/calls/weirdtypes.h"
#include "libc/time/struct/tm.h"
#include "third_party/python/Include/object.h"
#include "third_party/python/pyconfig.h"
COSMOPOLITAN_C_START_
... | 2,487 | 69 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/objimpl.h | #ifndef Py_OBJIMPL_H
#define Py_OBJIMPL_H
#include "libc/assert.h"
#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/pymem.h"
#include "third_party/python/Include/tupleobject.h"
COSMOPOLITA... | 10,549 | 295 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/ucnhash.h | #ifndef Py_UCNHASH_H
#define Py_UCNHASH_H
#ifndef Py_LIMITED_API
#include "third_party/python/Include/object.h"
#include "third_party/python/Include/unicodeobject.h"
COSMOPOLITAN_C_START_
/* clang-format off */
/* revised ucnhash CAPI interface (exported through a "wrapper") */
#define PyUnicodeData_CAPSULE_NAME "uni... | 1,117 | 35 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/dtoa.h | #ifndef Py_LIMITED_API
#ifndef PY_NO_SHORT_FLOAT_REPR
COSMOPOLITAN_C_START_
/* clang-format off */
double _Py_dg_strtod(const char *str, char **ptr);
char * _Py_dg_dtoa(double d, int mode, int ndigits,
int *decpt, int *sign, char **rve);
void _Py_dg_freedtoa(char *s);
double _Py_dg_stdnan(int s... | 395 | 16 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/pydebug.h | #ifndef Py_LIMITED_API
#ifndef Py_PYDEBUG_H
#define Py_PYDEBUG_H
COSMOPOLITAN_C_START_
/* clang-format off */
#include "libc/runtime/runtime.h"
/* These global variable are defined in pylifecycle.c */
/* XXX (ncoghlan): move these declarations to pylifecycle.h? */
extern int Py_DebugFlag;
extern int Py_VerboseFlag;
ex... | 1,156 | 39 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/listobject.h | #ifndef Py_LISTOBJECT_H
#define Py_LISTOBJECT_H
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
/* clang-format off */
/* List object interface
Another generally useful object type is a list of object pointers.
This is a mutable type: the list items can be changed, and items can be
added or remov... | 2,751 | 79 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/fileutils.h | #ifndef Py_FILEUTILS_H
#define Py_FILEUTILS_H
#include "libc/calls/struct/stat.h"
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
wchar_t * Py_DecodeLocale(
const char *arg,
size_t *size);
char* Py_Encod... | 3,291 | 157 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/boolobject.h | #ifndef Py_BOOLOBJECT_H
#define Py_BOOLOBJECT_H
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
/* clang-format off */
extern PyTypeObject PyBool_Type;
#define PyBool_Check(x) (Py_TYPE(x) == &PyBool_Type)
/* Py_False and Py_True are the only two bools in existence.
Don't forget to apply Py_INCRE... | 876 | 30 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/pyport.h | #ifndef Py_PYPORT_H
#define Py_PYPORT_H
#include "libc/limits.h"
#include "third_party/python/Include/pymath.h"
#include "third_party/python/pyconfig.h"
/* clang-format off */
#define HAVE_LONG_LONG 1
#define PY_LONG_LONG long long
#define PY_LLONG_MIN LLONG_MIN
#define PY_LLONG_MAX LLONG_MAX
#define PY_ULLONG_MAX U... | 10,868 | 310 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/token.h | #ifndef Py_LIMITED_API
#ifndef Py_TOKEN_H
#define Py_TOKEN_H
COSMOPOLITAN_C_START_
/* clang-format off */
#undef TILDE /* Prevent clash of our definition with system macro. Ex AIX, ioctl.h */
#define ENDMARKER 0
#define NAME 1
#define NUMBER 2
#define STRING 3
#define NEWLINE 4
#define INDENT 5
#define DEDENT ... | 1,881 | 86 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/metagrammar.h | #ifndef Py_METAGRAMMAR_H
#define Py_METAGRAMMAR_H
COSMOPOLITAN_C_START_
/* clang-format off */
#define MSTART 256
#define RULE 257
#define RHS 258
#define ALT 259
#define ITEM 260
#define ATOM 261
COSMOPOLITAN_C_END_
#endif /* !Py_METAGRAMMAR_H */
| 250 | 15 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/longintrepr.h | #ifndef Py_LIMITED_API
#ifndef Py_LONGINTREPR_H
#define Py_LONGINTREPR_H
#include "third_party/python/Include/longobject.h"
#include "third_party/python/Include/object.h"
#include "third_party/python/Include/pyport.h"
COSMOPOLITAN_C_START_
/* clang-format off */
/* This is published for the benefit of "friends" marsha... | 3,880 | 100 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/pgenheaders.h | #ifndef Py_PGENHEADERS_H
#define Py_PGENHEADERS_H
#include "third_party/python/Include/pyport.h"
COSMOPOLITAN_C_START_
/* clang-format off */
void PySys_WriteStdout(const char *format, ...)
Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
void PySys_WriteStderr(const char *format, ...)
Py_GCC_ATTRIBUTE((format(printf, ... | 1,106 | 37 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Include/pylifecycle.h | #ifndef Py_PYLIFECYCLE_H
#define Py_PYLIFECYCLE_H
#include "third_party/python/Include/object.h"
#include "third_party/python/Include/pystate.h"
COSMOPOLITAN_C_START_
/* clang-format off */
void Py_SetProgramName(wchar_t *);
wchar_t * Py_GetProgramName(void);
void Py_SetPythonHome(wchar_t *);
wchar_t * Py_GetPythonHo... | 4,143 | 152 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/cmathmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 45,713 | 1,465 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/sre_constants.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_SRE_CONSTANTS_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_SRE_CONSTANTS_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/* clang-format off */
#define SRE_MAGIC 20140917
#define SRE_OP_FAILURE 0
#define SRE_OP_SUCCESS 1
#define SRE_OP_ANY 2
#define ... | 2,565 | 87 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_nfcfirst.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const _PyUnicode_Reindex _PyUnicode_NfcFirst[] = {
{0x0003c, 2, 0},
{0x00041, 15, 3},
{0x00052, 8, 19},
... | 5,528 | 221 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_namedsequences.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const _PyUnicode_NamedSequence _PyUnicode_NamedSequences[442] = {
{3, {0x0023, 0xFE0F, 0x20E3}},
{3, {0x002A, 0xFE0F, 0x20... | 12,593 | 450 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/fpectlmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 11,325 | 284 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/binascii.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 46,870 | 1,483 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_hashmbedtls.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 18,777 | 589 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/timemodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 48,690 | 1,604 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_tracemalloc.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 48,729 | 1,620 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_findnfcindex.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 1,309 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/fspath.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,531 | 60 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/overlapped.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 37,955 | 1,353 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/hashtable.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 15,457 | 538 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_heapqmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 23,695 | 685 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_decompprefix.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const char *const _PyUnicode_DecompPrefix[17] = {
"",
"<noBreak>",
"<compat>",
"<super>",
"<fraction>",
"<... | 505 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/rotatingtree.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,333 | 129 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/parsermodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 42,752 | 1,247 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_phrasebook.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const unsigned char _PyUnicode_Phrasebook[188803] = {
0, 202, 160, 233, 204, 77, 208, 142, 77, 31, 57, 236, 127, 57, 210, 133,... | 1,150,716 | 15,165 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_dbmmodule.c | #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
* whichever configure was able to locate.
*/
#if defined(HAVE_NDBM_H)
#include ... | 13,861 | 511 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_islinebreak.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
/* Returns 1 for Unicode characters having the line break
* property 'BK', 'CR', 'LF' or 'NL' or having bidirectional
* type 'B'... | 608 | 27 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_getcode.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 10,216 | 289 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_lexicon.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const unsigned char _PyUnicode_Lexicon[121990] = {
76, 69, 84, 84, 69, 210, 83, 77, 65, 76, 204, 83, 73, 71, 206, 87, 73,
... | 647,405 | 8,401 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_winapi.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 49,295 | 1,581 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/audioop.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 51,770 | 1,720 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_records.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const _PyUnicode_Record _PyUnicode_Records[] = {
{ 0, 0, 0, 0, 0, 0},
{ 13, 0, 15, 0, 5, 0},
{ 13,... | 104,254 | 5,696 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/itertoolsmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 150,373 | 4,713 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_aliases.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const unsigned int _PyUnicode_NameAliases[468] = {
0x0000,
0x0000,
0x0001,
0x0001,
0x0002,
0x0002,
0x0... | 6,108 | 476 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_operator.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 42,883 | 1,312 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_testcapimodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 157,413 | 5,225 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/socketmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 223,076 | 7,207 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_unidata.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_UNICODEDATA_UNIDATA_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_UNICODEDATA_UNIDATA_H_
#include "third_party/python/Modules/unicodedata.h"
COSMOPOLITAN_C_START_
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
#define UNIDATA_VERSION "13.0... | 2,934 | 60 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_lol3.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 258,211 | 7,987 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/mmapmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 46,690 | 1,501 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_json.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 63,881 | 1,985 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/zlibmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 43,850 | 1,460 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/README | Source files for standard library extension modules,
and former extension modules that are now builtin modules.
| 112 | 3 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/main.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 28,758 | 898 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_struct.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 67,529 | 2,418 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_isnormalized.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,202 | 44 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sre.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 83,819 | 3,004 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/gcmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 60,692 | 1,842 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_getdecomprecord.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 1,927 | 39 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_math.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES__MATH_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES__MATH_H_
#include "third_party/python/pyconfig.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
double _Py_acosh(double);
double _Py_asinh(double);
double _Py_atanh(double);
double _Py_expm1(double);
... | 1,331 | 52 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_pickle.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 218,872 | 7,506 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/atexitmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 10,774 | 380 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/sre_lib.inc | /*-*- 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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 47,858 | 1,378 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_math.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 8,128 | 266 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/hashtable.h | #ifndef Py_HASHTABLE_H
#define Py_HASHTABLE_H
#include "libc/assert.h"
#include "libc/str/str.h"
#include "third_party/python/Include/pyport.h"
/* clang-format off */
#ifndef Py_LIMITED_API
/* Single linked list */
typedef struct _Py_slist_item_s {
struct _Py_slist_item_s *next;
} _Py_slist_item_t;
typedef struc... | 6,296 | 214 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_stat.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 18,600 | 635 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_localemodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 21,304 | 784 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_weakref.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,200 | 198 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/hashlib.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_HASHLIB_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_HASHLIB_H_
/* clang-format off */
/* Common code for use by all hashlib related modules. */
/*
* Given a PyObject* obj, fill in the Py_buffer* viewp with the result
* of PyObject_GetBuffer. Sets an exception a... | 2,519 | 69 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_getrecord.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 1,325 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_collectionsmodule.c | #include "libc/assert.h"
#include "third_party/python/Include/abstract.h"
#include "third_party/python/Include/boolobject.h"
#include "third_party/python/Include/ceval.h"
#include "third_party/python/Include/descrobject.h"
#include "third_party/python/Include/dictobject.h"
#include "third_party/python/Include/import.h"... | 76,171 | 2,462 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/posixmodule.h | #ifndef Py_POSIXMODULE_H
#define Py_POSIXMODULE_H
#include "libc/calls/weirdtypes.h"
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
#ifndef Py_LIMITED_API
#ifndef MS_WINDOWS
PyObject *_PyLong_FromUid(uid_t);
PyObject *_PyLong_FromGid(gid_t);
int _Py_Uid_Converter(PyObject *, void *);
int _Py_Gid_... | 434 | 18 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/getbuildinfo.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 1,472 | 42 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_typerecords.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[503] = {
{ 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0}... | 114,914 | 5,802 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_decomp.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const unsigned int _PyUnicode_Decomp[8032] = {
67371008, 2155872768, 536879104, 1074802700, 33685528, 809500800,
83887737... | 159,830 | 2,284 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_tonumeric.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
static const double kNumeric[] = {
-1/2.,
0.,
1.,
1/10.,
1/12.,
1/16.,
1/160.,
1/2.,
1/20.,
1/3.,
1/32.,
1... | 34,038 | 3,930 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_posixsubprocess.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 25,848 | 736 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_iswhitespace.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
/* Returns 1 for Unicode characters having the bidirectional
* type 'WS', 'B' or 'S' or the category 'Zs', 0 otherwise.
*/
int _... | 908 | 45 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_randommodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 18,858 | 572 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/socketmodule.h | #ifndef Py__SOCKET_H
#define Py__SOCKET_H
#include "libc/sock/sock.h"
#include "libc/sock/struct/sockaddr.h"
#include "third_party/python/Include/object.h"
#include "third_party/python/Include/pytime.h"
COSMOPOLITAN_C_START_
/* clang-format off */
/* Python module and C API name */
#define PySocket_MODULE_NAME "_so... | 4,255 | 133 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/xxmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 13,608 | 417 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_cryptmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,488 | 75 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_opcode.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 3,205 | 101 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/config.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 1,876 | 41 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/fpetestmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,040 | 214 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_datetimemodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 205,284 | 6,246 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_ucd.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 1,224 | 18 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_codehash.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const unsigned int _PyUnicode_CodeHash[40960] = {
791749104, 1, 0, 4177526784, 30, 0, 2952790016, 7995, 856323344,
494179... | 365,791 | 4,914 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/fcntlmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 22,642 | 699 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/spwdmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,286 | 238 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/xxsubtype.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,466 | 337 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_categorynames.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const char _PyUnicode_CategoryNames[31][3] = {
"Cn",
"Lu",
"Ll",
"Lt",
"Mn",
"Mc",
"Me",
"Nd",
... | 550 | 39 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_isunifiedideograph.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 1,487 | 22 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_functoolsmodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 41,210 | 1,356 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 20,907 | 653 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_bz2module.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 26,411 | 811 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/symtablemodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,830 | 142 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_lzmamodule.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 50,209 | 1,568 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_bidirectionalnames.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const char _PyUnicode_BidirectionalNames[24][4] = {
"",
"L",
"LRE",
"LRO",
"R",
"AL",
"RLE",
"RLO"... | 489 | 32 | jart/cosmopolitan | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.