cosmopolitan/third_party/tidy
Justine Tunney ae5d06dc53 Unbloat build config
- 10.5% reduction of o//depend dependency graph
- 8.8% reduction in latency of make command
- Fix issue with temporary file cleanup

There's a new -w option in compile.com that turns off the recent
Landlock output path workaround for "good commands" which do not
unlink() the output file like GNU tooling does.

Our new GNU Make unveil sandboxing appears to have zero overhead
in the grand scheme of things. Full builds are pretty fast since
the only thing that's actually slowed us down is probably libcxx

    make -j16 MODE=rel
    RL: took 85,732,063µs wall time
    RL: ballooned to 323,612kb in size
    RL: needed 828,560,521µs cpu (11% kernel)
    RL: caused 39,080,670 page faults (99% memcpy)
    RL: 350,073 context switches (72% consensual)
    RL: performed 0 reads and 11,494,960 write i/o operations

pledge() and unveil() no longer consider ENOSYS to be an error.
These functions have also been added to Python's cosmo module.

This change also removes some WIN32 APIs and System Five magnums
which we're not using and it's doubtful anyone else would be too
2022-08-10 04:43:09 -07:00
..
.tidyrc Add w3c html tidy 2022-06-09 06:51:08 -07:00
access.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
access.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
alloc.c Unbloat build config 2022-08-10 04:43:09 -07:00
attrdict.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
attrdict.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
attrs.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
attrs.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
buffio.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
charsets.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
charsets.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
clean.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
clean.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
config.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
config.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
entities.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
entities.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
fileio.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
fileio.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
forward.h Unbloat build config 2022-08-10 04:43:09 -07:00
gdoc.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
gdoc.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
istack.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
language.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
language.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
language_en.inc Add w3c html tidy 2022-06-09 06:51:08 -07:00
lexer.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
lexer.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
LICENSE.md Add w3c html tidy 2022-06-09 06:51:08 -07:00
mappedio.c Unbloat build config 2022-08-10 04:43:09 -07:00
mappedio.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
message.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
message.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
messageobj.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
messageobj.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
parser.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
parser.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
pprint.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
pprint.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
README.cosmo Add w3c html tidy 2022-06-09 06:51:08 -07:00
sprtf.c Refactor gettimeofday() 2022-08-05 02:13:41 -07:00
sprtf.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
streamio.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
streamio.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tagask.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tags.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tags.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tidy-int.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tidy.c Unbloat build config 2022-08-10 04:43:09 -07:00
tidy.h Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidy.mk Unbloat build config 2022-08-10 04:43:09 -07:00
tidybuffio.h Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidyenum.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tidylib.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidyplatform.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tmbstr.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tmbstr.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
utf8.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
utf8.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
version.inc Add w3c html tidy 2022-06-09 06:51:08 -07:00

DESCRIPTION

  HTML Tidy is a tool for spotting errors in HTML code. It's also able
  to reformat source code in a configurable manner. It has outstanding
  support for HTML5.

PROVENANCE

  https://github.com/htacg/tidy-html5/
  Commit: d08ddc2860aa95ba8e301343a30837f157977cba
  Author: Jim Derry <balthisar@gmail.com>
  Date:   Tue Jan 25 10:17:15 2022 -0500

LICENSE

  W3C License
  This is a permissive license that only requires notice preservation in
  sources. https://en.wikipedia.org/wiki/W3C_Software_Notice_and_License
  Similar to the Apache 2.0 license any local changes must be documented

LOCAL CHANGES

  No changes to tidy program. Only platform normalization.

  - Obtain .tidyrc from /zip/.tidyrc rather than /etc/tidrc
  - Configure tidyplatform.h
  - 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