mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 14:52: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/expat/ascii.inc
vendored
1
third_party/python/Modules/expat/ascii.inc
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
|
||||
#define ASCII_A 0x41
|
||||
#define ASCII_B 0x42
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* internal.h
|
||||
|
||||
Note: Use of these macros is based on judgement, not hard rules,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
1
third_party/python/Modules/expat/nametab.inc
vendored
1
third_party/python/Modules/expat/nametab.inc
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
1
third_party/python/Modules/expat/pyexpatns.h
vendored
1
third_party/python/Modules/expat/pyexpatns.h
vendored
|
@ -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
|
||||
|
|
2
third_party/python/Modules/expat/siphash.inc
vendored
2
third_party/python/Modules/expat/siphash.inc
vendored
|
@ -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, },
|
||||
|
|
1
third_party/python/Modules/expat/utf8tab.inc
vendored
1
third_party/python/Modules/expat/utf8tab.inc
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
1
third_party/python/Modules/expat/xmlparse.c
vendored
1
third_party/python/Modules/expat/xmlparse.c
vendored
|
@ -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+)
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
1
third_party/python/Modules/expat/xmlrole.c
vendored
1
third_party/python/Modules/expat/xmlrole.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
1
third_party/python/Modules/expat/xmlrole.h
vendored
1
third_party/python/Modules/expat/xmlrole.h
vendored
|
@ -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,
|
||||
|
|
1
third_party/python/Modules/expat/xmltok.c
vendored
1
third_party/python/Modules/expat/xmltok.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
1
third_party/python/Modules/expat/xmltok.h
vendored
1
third_party/python/Modules/expat/xmltok.h
vendored
|
@ -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 \
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* This file is included!
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* This file is included!
|
||||
__ __ _
|
||||
___\ \/ /_ __ __ _| |_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue