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

@ -1,4 +1,3 @@
/* clang-format off */
#define ASCII_A 0x41
#define ASCII_B 0x42

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -2,7 +2,6 @@
#define Expat_External_INCLUDED 1
#include "third_party/python/Modules/expat/pyexpatns.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#if defined(__GNUC__) \
&& (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* internal.h
Note: Use of these macros is based on judgement, not hard rules,

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -1,6 +1,5 @@
#ifndef PYEXPATNS_H
#define PYEXPATNS_H
/* clang-format off */
#define XML_DefaultCurrent PyExpat_XML_DefaultCurrent
#define XML_ErrorString PyExpat_XML_ErrorString

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ==========================================================================
* siphash.h - SipHash-2-4 in a single header file
* --------------------------------------------------------------------------
@ -281,7 +280,6 @@ siphash24(const void *src, size_t len, const struct sipkey *key) {
*/
static int
sip24_valid(void) {
/* clang-format off */
static const unsigned char vectors[64][8] = {
{ 0x31, 0x0e, 0x0e, 0xdd, 0x47, 0xdb, 0x6f, 0x72, },
{ 0xfd, 0x67, 0xdc, 0x93, 0xc5, 0x39, 0xf8, 0x74, },

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -14,7 +14,6 @@
#include "libc/time/time.h"
#include "third_party/python/Modules/expat/expat.h"
#include "third_party/python/Modules/expat/expat_config.h"
/* clang-format off */
/* f2d0ab6d1d4422a08cf1cf3bbdfba96b49dea42fb5ff4615e03a2a25c306e769 (2.2.8+)
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -2,7 +2,6 @@
#define XmlRole_INCLUDED 1
#include "third_party/python/Modules/expat/xmltok.h"
COSMOPOLITAN_C_START_
/* clang-format off */
enum {
XML_ROLE_ERROR = -1,

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -2,7 +2,6 @@
#define XmlTok_INCLUDED 1
#include "third_party/python/Modules/expat/expat_external.h"
COSMOPOLITAN_C_START_
/* clang-format off */
/* The following token may be returned by XmlContentTok */
#define XML_TOK_TRAILING_RSQB \

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* This file is included!
__ __ _
___\ \/ /_ __ __ _| |_

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* This file is included!
__ __ _
___\ \/ /_ __ __ _| |_