mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22: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/Modules/_io/_iomodule.c
vendored
1
third_party/python/Modules/_io/_iomodule.c
vendored
|
@ -21,7 +21,6 @@
|
|||
#include "third_party/python/Include/weakrefobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_io");
|
||||
PYTHON_PROVIDE("_io.BlockingIOError");
|
||||
|
|
3
third_party/python/Modules/_io/_iomodule.h
vendored
3
third_party/python/Modules/_io/_iomodule.h
vendored
|
@ -3,9 +3,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "third_party/python/Include/moduleobject.h"
|
||||
#include "third_party/python/Include/object.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* clang-format off */
|
||||
|
||||
/* ABCs */
|
||||
extern PyTypeObject PyIOBase_Type;
|
||||
|
@ -193,5 +191,4 @@ extern PyObject *_PyIO_zero;
|
|||
extern PyTypeObject _PyBytesIOBuffer_Type;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES__IO__IOMODULE_H_ */
|
||||
|
|
1
third_party/python/Modules/_io/bufferedio.c
vendored
1
third_party/python/Modules/_io/bufferedio.c
vendored
|
@ -23,7 +23,6 @@
|
|||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of Buffered I/O as defined by PEP 3116 - "New I/O"
|
||||
|
|
1
third_party/python/Modules/_io/bytesio.c
vendored
1
third_party/python/Modules/_io/bytesio.c
vendored
|
@ -23,7 +23,6 @@
|
|||
#include "third_party/python/Include/sysmodule.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*[clinic input]
|
||||
module _io
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
|
1
third_party/python/Modules/_io/fileio.c
vendored
1
third_party/python/Modules/_io/fileio.c
vendored
|
@ -24,7 +24,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/warnings.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
* Author: Daniel Stutzbach
|
||||
|
|
1
third_party/python/Modules/_io/iobase.c
vendored
1
third_party/python/Modules/_io/iobase.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of the I/O abstract base classes hierarchy
|
||||
|
|
1
third_party/python/Modules/_io/stringio.c
vendored
1
third_party/python/Modules/_io/stringio.c
vendored
|
@ -19,7 +19,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/unicodeobject.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Implementation note: the buffer is always at least one character longer
|
||||
than the enclosed string, for proper functioning of _PyIO_find_line_ending.
|
||||
|
|
1
third_party/python/Modules/_io/textio.c
vendored
1
third_party/python/Modules/_io/textio.c
vendored
|
@ -21,7 +21,6 @@
|
|||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of Text I/O as defined by PEP 3116 - "New I/O"
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Modules/_io/_iomodule.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
An implementation of Windows console I/O
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue