mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02: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/tidy/README.cosmo
vendored
1
third_party/tidy/README.cosmo
vendored
|
@ -27,5 +27,4 @@ LOCAL CHANGES
|
|||
- Rename a few .h files to .inc
|
||||
- Normalize header includes for cosmopolitan repo
|
||||
- Delete ugly no-op macros, e.g. TIDY_CALL, TIDY_EXPORT, etc.
|
||||
- Add clang-format off directives
|
||||
- Delete trailing whitespace
|
||||
|
|
1
third_party/tidy/access.c
vendored
1
third_party/tidy/access.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* access.c -- carry out accessibility checks
|
||||
|
||||
Copyright University of Toronto
|
||||
|
|
1
third_party/tidy/access.h
vendored
1
third_party/tidy/access.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __ACCESS_H__
|
||||
#define __ACCESS_H__
|
||||
/* clang-format off */
|
||||
|
||||
/*********************************************************************
|
||||
* carry out accessibility checks
|
||||
|
|
2
third_party/tidy/alloc.c
vendored
2
third_party/tidy/alloc.c
vendored
|
@ -1,5 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* clang-format off */
|
||||
/* alloc.c -- Default memory allocation routines.
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/attrdict.c
vendored
1
third_party/tidy/attrdict.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* attrdict.c -- extended attribute information
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/attrdict.h
vendored
1
third_party/tidy/attrdict.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __ATTRDICT_H__
|
||||
#define __ATTRDICT_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* attrdict.h -- extended attribute information
|
||||
|
||||
|
|
1
third_party/tidy/attrs.c
vendored
1
third_party/tidy/attrs.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* attrs.c -- recognize HTML attributes
|
||||
|
||||
(c) 1998-2009 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/attrs.h
vendored
1
third_party/tidy/attrs.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __ATTRS_H__
|
||||
#define __ATTRS_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* attrs.h -- recognize HTML attributes
|
||||
|
||||
|
|
1
third_party/tidy/buffio.c
vendored
1
third_party/tidy/buffio.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* buffio.c -- Treat buffer as an I/O stream.
|
||||
|
||||
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/charsets.c
vendored
1
third_party/tidy/charsets.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* charsets.c -- character set information and mappings
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/charsets.h
vendored
1
third_party/tidy/charsets.h
vendored
|
@ -2,7 +2,6 @@
|
|||
#define __CHARSETS_H__
|
||||
#include "third_party/tidy/access.h"
|
||||
#include "third_party/tidy/tidyplatform.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* charsets.h -- character set information and mappings
|
||||
|
||||
|
|
1
third_party/tidy/clean.c
vendored
1
third_party/tidy/clean.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
clean.c -- clean up misuse of presentation markup
|
||||
|
||||
|
|
1
third_party/tidy/clean.h
vendored
1
third_party/tidy/clean.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef __CLEAN_H__
|
||||
#define __CLEAN_H__
|
||||
#include "third_party/tidy/forward.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* clean.h -- clean up misuse of presentation markup
|
||||
|
||||
|
|
1
third_party/tidy/config.c
vendored
1
third_party/tidy/config.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* config.c
|
||||
* Read configuration files and manage configuration properties.
|
||||
*
|
||||
|
|
1
third_party/tidy/config.h
vendored
1
third_party/tidy/config.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __CONFIG_H__
|
||||
#define __CONFIG_H__
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/entities.c
vendored
1
third_party/tidy/entities.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* entities.c -- recognize HTML ISO entities
|
||||
|
||||
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/entities.h
vendored
1
third_party/tidy/entities.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __ENTITIES_H__
|
||||
#define __ENTITIES_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* entities.h -- recognize character entities
|
||||
|
||||
|
|
1
third_party/tidy/fileio.c
vendored
1
third_party/tidy/fileio.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* fileio.c -- does standard I/O
|
||||
|
||||
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/fileio.h
vendored
1
third_party/tidy/fileio.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __FILEIO_H__
|
||||
#define __FILEIO_H__
|
||||
/* clang-format off */
|
||||
|
||||
/** @file fileio.h - does standard C I/O
|
||||
|
||||
|
|
1
third_party/tidy/forward.h
vendored
1
third_party/tidy/forward.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __FORWARD_H__
|
||||
#define __FORWARD_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* forward.h -- Forward declarations for major Tidy structures
|
||||
|
||||
|
|
1
third_party/tidy/gdoc.c
vendored
1
third_party/tidy/gdoc.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
clean.c -- clean up misuse of presentation markup
|
||||
|
||||
|
|
1
third_party/tidy/gdoc.h
vendored
1
third_party/tidy/gdoc.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef __GDOC_H__
|
||||
#define __GDOC_H__
|
||||
#include "third_party/tidy/forward.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* gdoc.h -- clean up html exported by Google Docs
|
||||
|
||||
|
|
1
third_party/tidy/istack.c
vendored
1
third_party/tidy/istack.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* istack.c -- inline stack for compatibility with Mosaic
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/language.c
vendored
1
third_party/tidy/language.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* language.c -- localization support for HTML Tidy.
|
||||
|
||||
Copyright 2015 HTACG
|
||||
|
|
1
third_party/tidy/language.h
vendored
1
third_party/tidy/language.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef language_h
|
||||
#define language_h
|
||||
/* clang-format off */
|
||||
|
||||
/*********************************************************************
|
||||
* Localization support for HTML Tidy.
|
||||
|
|
1
third_party/tidy/language_en.inc
vendored
1
third_party/tidy/language_en.inc
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
#ifndef language_en_h
|
||||
#define language_en_h
|
||||
/*
|
||||
|
|
1
third_party/tidy/lexer.c
vendored
1
third_party/tidy/lexer.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* lexer.c -- Lexer for html parser
|
||||
|
||||
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/lexer.h
vendored
1
third_party/tidy/lexer.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __LEXER_H__
|
||||
#define __LEXER_H__
|
||||
/* clang-format off */
|
||||
|
||||
|
||||
/**************************************************************************//**
|
||||
|
|
1
third_party/tidy/mappedio.c
vendored
1
third_party/tidy/mappedio.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* Interface to mmap style I/O
|
||||
|
||||
(c) 2006-2008 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/mappedio.h
vendored
1
third_party/tidy/mappedio.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __TIDY_MAPPED_IO_H__
|
||||
#define __TIDY_MAPPED_IO_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* Interface to mmap style I/O
|
||||
|
||||
|
|
1
third_party/tidy/message.c
vendored
1
third_party/tidy/message.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* message.c -- General Message Writing Routines
|
||||
|
||||
(c) 1998-2017 (W3C) MIT, ERCIM, Keio University, University of
|
||||
|
|
1
third_party/tidy/message.h
vendored
1
third_party/tidy/message.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __MESSAGE_H__
|
||||
#define __MESSAGE_H__
|
||||
/* clang-format off */
|
||||
|
||||
/******************************************************************************
|
||||
* @file
|
||||
|
|
1
third_party/tidy/messageobj.c
vendored
1
third_party/tidy/messageobj.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* messageobj.c
|
||||
* Provides an external, extensible API for message reporting.
|
||||
*
|
||||
|
|
1
third_party/tidy/messageobj.h
vendored
1
third_party/tidy/messageobj.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef messageobj_h
|
||||
#define messageobj_h
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/parser.c
vendored
1
third_party/tidy/parser.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* parser.c -- HTML Parser
|
||||
|
||||
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/parser.h
vendored
1
third_party/tidy/parser.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __PARSER_H__
|
||||
#define __PARSER_H__
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/pprint.c
vendored
1
third_party/tidy/pprint.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/*
|
||||
pprint.c -- pretty print parse tree
|
||||
|
||||
|
|
1
third_party/tidy/pprint.h
vendored
1
third_party/tidy/pprint.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __PPRINT_H__
|
||||
#define __PPRINT_H__
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/sprtf.c
vendored
1
third_party/tidy/sprtf.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* sprtf.c
|
||||
* SPRTF - Log output utility - part of the HTML Tidy project
|
||||
*
|
||||
|
|
1
third_party/tidy/sprtf.h
vendored
1
third_party/tidy/sprtf.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef _SPRTF_HXX_
|
||||
#define _SPRTF_HXX_
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/streamio.c
vendored
1
third_party/tidy/streamio.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* streamio.c -- handles character stream I/O
|
||||
|
||||
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/streamio.h
vendored
1
third_party/tidy/streamio.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __STREAMIO_H__
|
||||
#define __STREAMIO_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* streamio.h -- handles character stream I/O
|
||||
|
||||
|
|
1
third_party/tidy/tagask.c
vendored
1
third_party/tidy/tagask.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* tagask.c -- Interrogate node type
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/tags.c
vendored
1
third_party/tidy/tags.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* tags.c
|
||||
* Recognize HTML tags.
|
||||
*
|
||||
|
|
1
third_party/tidy/tags.h
vendored
1
third_party/tidy/tags.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __TAGS_H__
|
||||
#define __TAGS_H__
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/tidy-int.h
vendored
1
third_party/tidy/tidy-int.h
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
#ifndef __TIDY_INT_H__
|
||||
#define __TIDY_INT_H__
|
||||
|
||||
|
|
1
third_party/tidy/tidy.c
vendored
1
third_party/tidy/tidy.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/***************************************************************************//**
|
||||
* @file
|
||||
* HTML TidyLib command line driver.
|
||||
|
|
1
third_party/tidy/tidy.h
vendored
1
third_party/tidy/tidy.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __TIDY_H__
|
||||
#define __TIDY_H__
|
||||
/* clang-format off */
|
||||
|
||||
/***************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/tidybuffio.h
vendored
1
third_party/tidy/tidybuffio.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __TIDY_BUFFIO_H__
|
||||
#define __TIDY_BUFFIO_H__
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/tidyenum.h
vendored
1
third_party/tidy/tidyenum.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __TIDYENUM_H__
|
||||
#define __TIDYENUM_H__
|
||||
/* clang-format off */
|
||||
|
||||
/**************************************************************************//**
|
||||
* @file
|
||||
|
|
1
third_party/tidy/tidylib.c
vendored
1
third_party/tidy/tidylib.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* tidylib.c -- internal library definitions
|
||||
|
||||
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/tmbstr.c
vendored
1
third_party/tidy/tmbstr.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* tmbstr.c -- Tidy string utility functions
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/tmbstr.h
vendored
1
third_party/tidy/tmbstr.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __TMBSTR_H__
|
||||
#define __TMBSTR_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* tmbstr.h - Tidy string utility functions
|
||||
|
||||
|
|
1
third_party/tidy/utf8.c
vendored
1
third_party/tidy/utf8.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* utf8.c -- convert characters to/from UTF-8
|
||||
|
||||
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
1
third_party/tidy/utf8.h
vendored
1
third_party/tidy/utf8.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef __UTF8_H__
|
||||
#define __UTF8_H__
|
||||
/* clang-format off */
|
||||
|
||||
/* utf8.h -- convert characters to/from UTF-8
|
||||
|
||||
|
|
1
third_party/tidy/version.inc
vendored
1
third_party/tidy/version.inc
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* version information
|
||||
|
||||
(c) 2007-2015 (W3C) MIT, ERCIM, Keio University
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue