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

@ -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

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* access.c -- carry out accessibility checks
Copyright University of Toronto

View file

@ -1,6 +1,5 @@
#ifndef __ACCESS_H__
#define __ACCESS_H__
/* clang-format off */
/*********************************************************************
* carry out accessibility checks

View file

@ -1,5 +1,3 @@
/* clang-format off */
/* clang-format off */
/* alloc.c -- Default memory allocation routines.
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* attrdict.c -- extended attribute information
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __ATTRDICT_H__
#define __ATTRDICT_H__
/* clang-format off */
/* attrdict.h -- extended attribute information

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* attrs.c -- recognize HTML attributes
(c) 1998-2009 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __ATTRS_H__
#define __ATTRS_H__
/* clang-format off */
/* attrs.h -- recognize HTML attributes

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* buffio.c -- Treat buffer as an I/O stream.
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* charsets.c -- character set information and mappings
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University

View file

@ -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

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
clean.c -- clean up misuse of presentation markup

View file

@ -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

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* config.c
* Read configuration files and manage configuration properties.
*

View file

@ -1,6 +1,5 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* entities.c -- recognize HTML ISO entities
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __ENTITIES_H__
#define __ENTITIES_H__
/* clang-format off */
/* entities.h -- recognize character entities

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* fileio.c -- does standard I/O
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __FILEIO_H__
#define __FILEIO_H__
/* clang-format off */
/** @file fileio.h - does standard C I/O

View file

@ -1,6 +1,5 @@
#ifndef __FORWARD_H__
#define __FORWARD_H__
/* clang-format off */
/* forward.h -- Forward declarations for major Tidy structures

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
clean.c -- clean up misuse of presentation markup

View file

@ -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

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* istack.c -- inline stack for compatibility with Mosaic
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* language.c -- localization support for HTML Tidy.
Copyright 2015 HTACG

View file

@ -1,6 +1,5 @@
#ifndef language_h
#define language_h
/* clang-format off */
/*********************************************************************
* Localization support for HTML Tidy.

View file

@ -1,4 +1,3 @@
/* clang-format off */
#ifndef language_en_h
#define language_en_h
/*

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* lexer.c -- Lexer for html parser
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __LEXER_H__
#define __LEXER_H__
/* clang-format off */
/**************************************************************************//**

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* Interface to mmap style I/O
(c) 2006-2008 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __TIDY_MAPPED_IO_H__
#define __TIDY_MAPPED_IO_H__
/* clang-format off */
/* Interface to mmap style I/O

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* message.c -- General Message Writing Routines
(c) 1998-2017 (W3C) MIT, ERCIM, Keio University, University of

View file

@ -1,6 +1,5 @@
#ifndef __MESSAGE_H__
#define __MESSAGE_H__
/* clang-format off */
/******************************************************************************
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* messageobj.c
* Provides an external, extensible API for message reporting.
*

View file

@ -1,6 +1,5 @@
#ifndef messageobj_h
#define messageobj_h
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* parser.c -- HTML Parser
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __PARSER_H__
#define __PARSER_H__
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*
pprint.c -- pretty print parse tree

View file

@ -1,6 +1,5 @@
#ifndef __PPRINT_H__
#define __PPRINT_H__
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* sprtf.c
* SPRTF - Log output utility - part of the HTML Tidy project
*

View file

@ -1,6 +1,5 @@
#ifndef _SPRTF_HXX_
#define _SPRTF_HXX_
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* streamio.c -- handles character stream I/O
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __STREAMIO_H__
#define __STREAMIO_H__
/* clang-format off */
/* streamio.h -- handles character stream I/O

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* tagask.c -- Interrogate node type
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* tags.c
* Recognize HTML tags.
*

View file

@ -1,6 +1,5 @@
#ifndef __TAGS_H__
#define __TAGS_H__
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
#ifndef __TIDY_INT_H__
#define __TIDY_INT_H__

View file

@ -1,4 +1,3 @@
/* clang-format off */
/***************************************************************************//**
* @file
* HTML TidyLib command line driver.

View file

@ -1,6 +1,5 @@
#ifndef __TIDY_H__
#define __TIDY_H__
/* clang-format off */
/***************************************************************************//**
* @file

View file

@ -1,6 +1,5 @@
#ifndef __TIDY_BUFFIO_H__
#define __TIDY_BUFFIO_H__
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,6 +1,5 @@
#ifndef __TIDYENUM_H__
#define __TIDYENUM_H__
/* clang-format off */
/**************************************************************************//**
* @file

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* tidylib.c -- internal library definitions
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* tmbstr.c -- Tidy string utility functions
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __TMBSTR_H__
#define __TMBSTR_H__
/* clang-format off */
/* tmbstr.h - Tidy string utility functions

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* utf8.c -- convert characters to/from UTF-8
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University

View file

@ -1,6 +1,5 @@
#ifndef __UTF8_H__
#define __UTF8_H__
/* clang-format off */
/* utf8.h -- convert characters to/from UTF-8

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* version information
(c) 2007-2015 (W3C) MIT, ERCIM, Keio University