cosmopolitan/third_party/tidy
Justine Tunney 73845be1f0 Restore zip.com and .symtab files
This change restores the .symtab symbol table files in our flagship
programs (e.g. redbean.com, python.com) needed to show backtraces. This
also rolls back earlier changes to zip.com w.r.t. temp directories since
the right way to do it turned out to be the -b DIR flag.

This change also improves the performance of zip.com. It turned out
mmap() wasn't being used, because zip.com was assuming a 4096-byte
granularity, but cosmo requires 65536. There was also a chance to speed
up stdio scanning using the unlocked functions.
2022-08-21 00:17:20 -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 the build 2022-08-11 00:15:29 -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 the build 2022-08-11 00:15:29 -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 the build 2022-08-11 00:15:29 -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 Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
tidy.h Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidy.mk Restore zip.com and .symtab files 2022-08-21 00:17:20 -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