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:
Justine Tunney 2023-11-28 14:24:28 -08:00
parent 96f979dfc5
commit fa20edc44d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3057 changed files with 410 additions and 4398 deletions

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* this is sort of a hack. there's at least one place (formatting
floats) where some stringlib code takes a different path if it's

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* stringlib: codec implementations */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* stringlib: count implementation */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
#if STRINGLIB_IS_UNICODE
# error "ctype.h only compatible with byte-wise strings"

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* Fast unicode equal function optimized for dictobject.c and setobject.c */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* stringlib: fastsearch implementation */

View file

@ -5,7 +5,6 @@
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
#include "third_party/python/Include/modsupport.h"
/* clang-format off */
/* stringlib: find/index implementation */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* Finding the optimal width of unicode characters in a buffer */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* stringlib: bytes joining implementation */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* _PyUnicode_InsertThousandsGrouping() helper functions */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* stringlib: partition implementation */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* stringlib: replace implementation */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* stringlib: split implementation */

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
#ifndef STRINGLIB_STRINGDEFS_H
#define STRINGLIB_STRINGDEFS_H

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
#if STRINGLIB_IS_UNICODE
# error "transmogrify.h only compatible with byte-wise strings"

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* this is sort of a hack. there's at least one place (formatting
floats) where some stringlib code takes a different path if it's

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* this is sort of a hack. there's at least one place (formatting
floats) where some stringlib code takes a different path if it's

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/* this is sort of a hack. there's at least one place (formatting
floats) where some stringlib code takes a different path if it's

View file

@ -4,7 +4,6 @@
Python 3
https://docs.python.org/3/license.html
╚─────────────────────────────────────────────────────────────────────────────*/
/* clang-format off */
/*
unicode_format.h -- implementation of str.format().