cosmopolitan/third_party/tidy
Justine Tunney 0d748ad58e
Fix warnings
This change fixes Cosmopolitan so it has fewer opinions about compiler
warnings. The whole repository had to be cleaned up to be buildable in
-Werror -Wall mode. This lets us benefit from things like strict const
checking. Some actual bugs might have been caught too.
2023-09-01 20:50:18 -07:00
..
.tidyrc Add w3c html tidy 2022-06-09 06:51:08 -07:00
access.c Get repository to build with GCC 11 2022-09-13 04:14:55 -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 Get repository to build with GCC 11 2022-09-13 04:14:55 -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 Pay off more technical debt 2022-09-12 23:36:56 -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 Fix warnings 2023-09-01 20:50:18 -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 Fix warnings 2023-09-01 20:50:18 -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 Clean up more code 2023-06-18 01:00:05 -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 Fix warnings 2023-09-01 20:50:18 -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