path stringlengths 14 112 | content stringlengths 0 6.32M | size int64 0 6.32M | max_lines int64 1 100k | repo_name stringclasses 2
values | autogenerated bool 1
class |
|---|---|---|---|---|---|
cosmopolitan/third_party/awk/awkgram.tab.h | #ifndef COSMOPOLITAN_THIRD_PARTY_AWK_AWKGRAM_TAB_H_
#define COSMOPOLITAN_THIRD_PARTY_AWK_AWKGRAM_TAB_H_
#include "third_party/awk/awk.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define FIRSTTOKEN 257
#define PROGRAM 258
#define PASTAT 259
#define PASTAT2 260
#define XBEGIN 261
#define... | 2,678 | 116 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/crypt.h | // clang-format off
/*
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp:... | 4,751 | 171 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/ziperr.h | /* clang-format off */
/*
ziperr.h - Zip 3
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also... | 4,918 | 117 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/LICENSE | This is version 2007-Mar-4 of the Info-ZIP license.
The definitive version of this document should be available at
ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely and
a copy at http://www.info-zip.org/pub/infozip/license.html.
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
For the purposes of t... | 3,412 | 61 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/util.c | // clang-format off
/*
util.c
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found... | 41,818 | 1,452 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/unix_.c | #define UTIL
#include "third_party/zip/unix.c"
| 47 | 3 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/ttyio.h | /* clang-format off */
/*
ttyio.h - Zip 3
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2005-Feb-10 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also... | 2,757 | 116 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zip.mk | #-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-â
#âââvi: set et ft=make ts=8 tw=8 fenc=utf-8 :viââââââââââââââââââââââââ
PKGS += THIRD_PARTY_ZIP
THIRD_PARTY_ZIP_FILES := $(wildcard third_party/zip/*)
THIRD_PARTY_ZIP_SRCS = $(filter %.c,$(T... | 4,800 | 169 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/deflate.c | /* clang-format off */
/*
deflate.c - Zip 3
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2005-Feb-10 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
al... | 34,916 | 931 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/fileio.c | // clang-format off
/*
fileio.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also ma... | 140,011 | 4,830 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zipup.h | // clang-format off
/*
unix/zipup.h - Zip 3
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2005-Feb-10 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, both of these files are missing, the Info-ZIP license
... | 699 | 26 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zipfile.c | // clang-format off
/*
zipfile.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also m... | 223,729 | 6,858 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/tailor.h | // clang-format off
/*
tailor.h - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also ma... | 22,243 | 945 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/README.cosmo | DESCRIPTION
zip utility from Info-ZIP
ORIGIN
source code obtained as zip30.tar.gz
http://infozip.sourceforge.net/Zip.html
https://sourceforge.net/projects/infozip/files/
LOCAL CHANGES
- Use Cosmopolitan's PCLMUL optimized CRC32
- Improve find_next_signature() performance using unlocked stdio
| 310 | 15 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zipsplit.c | // clang-format off
/*
zipsplit.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also ... | 27,518 | 985 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/globals.c | /* clang-format off */
/*
globals.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
als... | 11,942 | 255 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zip.h | // clang-format off
/*
zip.h - Zip 3
/---------------------------------------------------------------------/
Info-ZIP Licence
This is version 2007-Mar-4 of the Info-ZIP license.
The definitive version of this document should be available at
ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely and
a copy at... | 42,222 | 1,083 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/fileio_.c | #define UTIL
#include "third_party/zip/fileio.c"
| 49 | 3 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zip.c | // clang-format off
/*
zip.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may b... | 194,925 | 6,060 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/crypt.c | // clang-format off
/*
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp:... | 22,992 | 699 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zipcloak.c | // clang-format off
/*
zipcloak.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also ... | 23,847 | 794 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zbz2err.c | // clang-format off
/*
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp:... | 2,200 | 63 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/timezone.c | /* clang-format off */
/*
timezone.c - Zip 3
Copyright (c) 1990-2004 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2003-May-08 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
a... | 25,891 | 817 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/crypt_.c | #define UTIL
#include "third_party/zip/crypt.c"
| 48 | 3 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/timezone.h | /* clang-format off */
/*
timezone.h - Zip 3
Copyright (c) 1990-2004 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2003-May-08 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
a... | 2,854 | 85 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zipnote.c | // clang-format off
/*
zipnote.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also m... | 19,327 | 703 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/api.h | // clang-format off
/*
api.h - Zip 3
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may b... | 7,648 | 204 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/unix.c | // clang-format off
/*
unix/unix.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also... | 28,801 | 1,027 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zipfile_.c | #define UTIL
#include "third_party/zip/zipfile.c"
| 50 | 3 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/zipup.c | // clang-format off
/*
zipup.c - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may... | 57,097 | 1,942 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/util_.c | #define UTIL
#include "third_party/zip/util.c"
| 47 | 3 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/crc32.c | /* clang-format off */
/*
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: f... | 38,726 | 735 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/trees.c | /* clang-format off */
/*
trees.h - Zip 3
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2005-Feb-10 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also... | 54,483 | 1,476 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/crc32.h | // clang-format off
/*
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2000-Apr-09 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp... | 1,797 | 62 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/revision.h | /* clang-format off */
/*
revision.h - Zip 3
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
al... | 6,015 | 141 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/ttyio.c | // clang-format off
/*
ttyio.c - Zip 3
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2005-Feb-10 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also ma... | 21,863 | 731 | jart/cosmopolitan | false |
cosmopolitan/third_party/zip/osdep.h | // clang-format off
/*
unix/osdep.h - Zip 3
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2005-Feb-10 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, both of these files are missing, the Info-ZIP license
... | 2,510 | 96 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/LICENSE | Argon2 reference source code package - reference C implementations
Copyright 2015
Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, and Samuel Neves
You may use this work under the terms of a Creative Commons CC0 1.0
License/Waiver or the Apache Public License 2.0, at your option. The terms of
these licenses... | 17,881 | 315 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/blamka-round-ref.h | #ifndef BLAKE_ROUND_MKA_H
#define BLAKE_ROUND_MKA_H
#include "third_party/argon2/blake2-impl.h"
#include "third_party/argon2/blake2.h"
/* clang-format off */
/* designed by the Lyra PHC team */
static inline uint64_t fBlaMka(uint64_t x, uint64_t y) {
const uint64_t m = UINT64_C(0xFFFFFFFF);
const uint64_t xy =... | 2,154 | 40 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/ref.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 9,577 | 224 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/encoding.h | #ifndef COSMOPOLITAN_THIRD_PARTY_ARGON2_ENCODING_H_
#define COSMOPOLITAN_THIRD_PARTY_ARGON2_ENCODING_H_
#include "third_party/argon2/argon2.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define ARGON2_MAX_DECODED_LANES UINT32_C(255)
#define ARGON2_MIN_DECODED_SALT_LEN UINT32_C(8)
#define ARGON2_MIN... | 657 | 19 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/blake2.h | #ifndef COSMOPOLITAN_THIRD_PARTY_ARGON2_BLAKE2_H_
#define COSMOPOLITAN_THIRD_PARTY_ARGON2_BLAKE2_H_
#include "third_party/argon2/argon2.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
enum blake2b_constant {
BLAKE2B_BLOCKBYTES = 128,
BLAKE2B_OUTBYTES = 64,
BLAKE2B_KEYBYTES = 64,
BLAKE2B_SALTBYTE... | 1,752 | 53 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/core.h | #ifndef COSMOPOLITAN_THIRD_PARTY_ARGON2_CORE_H_
#define COSMOPOLITAN_THIRD_PARTY_ARGON2_CORE_H_
#include "third_party/argon2/argon2.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
enum argon2_core_constants {
/* Memory block size in bytes */
ARGON2_BLOCK_SIZE = 1024,
ARGON2_QWORDS_IN_BLOCK = ARGON... | 3,083 | 88 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/blake2-impl.h | #ifndef PORTABLE_BLAKE2_IMPL_H
#define PORTABLE_BLAKE2_IMPL_H
#include "libc/str/str.h"
/* clang-format off */
static inline uint64_t load64(const void *src) {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
uint64_t w;
memcpy(&w, src, sizeof w);
return w;
#else
const uint8_t *p = (const uint8_t *)src;
... | 2,174 | 98 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/encoding.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 18,589 | 489 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/argon2.h | #ifndef COSMOPOLITAN_THIRD_PARTY_ARGON2_ARGON2_H_
#define COSMOPOLITAN_THIRD_PARTY_ARGON2_ARGON2_H_
#include "libc/literal.h"
#define ARGON2_NO_THREADS
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/*
* Argon2 input parameter restrictions
*/
/* Minimum and maximum number of lanes (degree of parallel... | 8,904 | 214 | jart/cosmopolitan | false |
cosmopolitan/third_party/argon2/README.md | # Argon2
[](https://travis-ci.org/P-H-C/phc-winner-argon2)
[](https://ci.appveyor.com/project/P-H-C/phc-winner-argon2)
[ 1998-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Filters from other formats such as Microsoft Word
often make excessive use of presentation markup such
as font tags, B, I, and the align attribut... | 5,337 | 182 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/attrs.c | /* clang-format off */
/* attrs.c -- recognize HTML attributes
(c) 1998-2009 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/tidy-int.h"
#include "third_party/tidy/attrs.h"
#include "third_party/tidy/message.h"
#include "third_party/tidy/tmbstr.h"
#include "li... | 99,173 | 2,784 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/attrs.h | #ifndef __ATTRS_H__
#define __ATTRS_H__
/* clang-format off */
/* attrs.h -- recognize HTML attributes
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/forward.h"
/* declaration for methods that check attribute values */
typedef void (AttrCheck)... | 27,580 | 488 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/charsets.h | #ifndef __CHARSETS_H__
#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
(c) 1998-2021 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
uint TY_(GetEncodin... | 619 | 23 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/access.h | #ifndef __ACCESS_H__
#define __ACCESS_H__
/* clang-format off */
/*********************************************************************
* carry out accessibility checks
*
* This module carries out processes for all accessibility checks. It
* traverses through all the content within the tree and evaluates the
* ta... | 2,489 | 92 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/gdoc.h | #ifndef __GDOC_H__
#define __GDOC_H__
#include "third_party/tidy/forward.h"
/* clang-format off */
/* gdoc.h -- clean up html exported by Google Docs
(c) 2012 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
- strip the script element, as the style sheet is a mess
- strip class attribut... | 542 | 22 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/lexer.h | #ifndef __LEXER_H__
#define __LEXER_H__
/* clang-format off */
/**************************************************************************//**
* @file
* Lexer for HTML and XML Parsers.
*
* Given an input source, it returns a sequence of tokens.
*
* GetToken(source) gets the next token
* UngetToken(... | 20,381 | 751 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/tmbstr.h | #ifndef __TMBSTR_H__
#define __TMBSTR_H__
/* clang-format off */
/* tmbstr.h - Tidy string utility functions
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/tidy.h"
#include "third_party/tidy/access.h"
#include "third_party/tidy/tidyplatform.h"
... | 2,390 | 93 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/fileio.c | /* clang-format off */
/* fileio.c -- does standard I/O
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Default implementations of Tidy input sources
and output sinks based on standard C FILE*.
*/
#include "third_party/tidy/forward.h"
#include "third_party/tidy/fileio.h... | 2,547 | 115 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/attrdict.h | #ifndef __ATTRDICT_H__
#define __ATTRDICT_H__
/* clang-format off */
/* attrdict.h -- extended attribute information
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/access.h"
#include "third_party/tidy/tidy.h"
typedef struct _AttrVersion
{
... | 7,369 | 161 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/attrdict.c | /* clang-format off */
/* attrdict.c -- extended attribute information
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/forward.h"
#include "third_party/tidy/attrdict.h"
#include "third_party/tidy/lexer.h"
/* These items are added to elements t... | 324,897 | 3,670 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/entities.h | #ifndef __ENTITIES_H__
#define __ENTITIES_H__
/* clang-format off */
/* entities.h -- recognize character entities
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/forward.h"
/* entity starting with "&" returns zero on error */
/* uint Entity... | 527 | 20 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/language.h | #ifndef language_h
#define language_h
/* clang-format off */
/*********************************************************************
* Localization support for HTML Tidy.
*
* This header provides the public (within libtidy) interface to
* basic localization support. To add your own localization, create
* a new `la... | 6,657 | 224 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/messageobj.h | #ifndef messageobj_h
#define messageobj_h
/* clang-format off */
/**************************************************************************//**
* @file
* Provides an external, extensible API for message reporting.
*
* This module implements the `_TidyMessageImpl` structure (declared in
* `tidy-int.h`) in order t... | 6,256 | 183 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/mappedio.h | #ifndef __TIDY_MAPPED_IO_H__
#define __TIDY_MAPPED_IO_H__
/* clang-format off */
/* Interface to mmap style I/O
(c) 2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#if defined(_WIN32)
int TY_(DocParseFileWithMappedFile)( TidyDocImpl* doc, ctmbstr filnam );
#endif
#endif /* __TI... | 340 | 17 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/mappedio.c | /* clang-format off */
/* Interface to mmap style I/O
(c) 2006-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Originally contributed by Cory Nelson and Nuno Lopes
*/
/* keep these here to keep file non-empty */
#include "third_party/tidy/forward.h"
#include "libc/assert.h"
#inc... | 8,388 | 335 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/README.cosmo | 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>... | 987 | 32 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/tidy.c | /* clang-format off */
/***************************************************************************//**
* @file
* HTML TidyLib command line driver.
*
* This console application utilizing LibTidy in order to offer a complete
* console application offering all of the features of LibTidy.
*
* @author HTACG, et al ... | 85,617 | 2,598 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/tags.h | #ifndef __TAGS_H__
#define __TAGS_H__
/* clang-format off */
/**************************************************************************//**
* @file
* Recognize HTML Tags.
*
* The HTML tags are stored as 8 bit ASCII strings.
* Use lookupw() to find a tag given a wide char string.
*
* @author HTACG, et al (cons... | 17,794 | 483 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/access.c | /* clang-format off */
/* access.c -- carry out accessibility checks
Copyright University of Toronto
Portions (c) 1998-2009 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/tidy-int.h"
#include "third_party/tidy/access.h"
#include "third_party/tidy/message.h... | 98,229 | 3,543 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/pprint.c | /* clang-format off */
/*
pprint.c -- pretty print parse tree
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/pprint.h"
#include "third_party/tidy/tidy-int.h"
#include "third_party/tidy/parser.h"
#include "third_party/tidy/entities.h"
#include... | 82,404 | 2,714 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/tidy-int.h | /* clang-format off */
#ifndef __TIDY_INT_H__
#define __TIDY_INT_H__
/* tidy-int.h -- internal library declarations
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/tidy.h"
#include "third_party/tidy/config.h"
#include "third_party/tidy/lexer.h"
... | 7,340 | 189 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/clean.h | #ifndef __CLEAN_H__
#define __CLEAN_H__
#include "third_party/tidy/forward.h"
/* clang-format off */
/* clean.h -- clean up misuse of presentation markup
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
void TY_(FixNodeLinks)(Node *node);
void TY_(FreeStyles)( TidyDocImpl... | 2,699 | 84 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/forward.h | #ifndef __FORWARD_H__
#define __FORWARD_H__
/* clang-format off */
/* forward.h -- Forward declarations for major Tidy structures
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Avoids many include file circular dependencies.
Try to keep this file down to the minimum to ... | 2,030 | 76 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/alloc.c | /* clang-format off */
/* clang-format off */
/* alloc.c -- Default memory allocation routines.
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
/* #define DEBUG_MEMORY very NOISY extra DEBUG of memory allocation, reallocation and free */
#include "third_party/tidy/tidy.h"... | 2,942 | 132 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/utf8.c | /* clang-format off */
/* utf8.c -- convert characters to/from UTF-8
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Uses public interfaces to abstract input source and output
sink, which may be user supplied or either FILE* or memory
based Tidy implementations. Encodin... | 14,818 | 525 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/sprtf.h | #ifndef _SPRTF_HXX_
#define _SPRTF_HXX_
/* clang-format off */
/**************************************************************************//**
* @file
* Log output utility - part of the HTML Tidy project
*
* @author Geoff R. McLane [reports _at_ geoffair _dot_ info]
*
* @copyright
* Copyright (c) 1998-2017... | 2,793 | 102 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/parser.h | #ifndef __PARSER_H__
#define __PARSER_H__
/* clang-format off */
/**************************************************************************//**
* @file
* HTML and XML Parsers.
*
* Tidy's HTML parser corrects many conditions and enforces certain user
* preferences during the parsing process. The XML parser produc... | 8,498 | 290 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/pprint.h | #ifndef __PPRINT_H__
#define __PPRINT_H__
/* clang-format off */
/**************************************************************************//**
* @file
* Pretty Print the parse tree.
*
* Pretty printer for HTML and XML documents.
* - Block-level and unknown elements are printed on new lines and
* their co... | 4,447 | 145 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/istack.c | /* clang-format off */
/* istack.c -- inline stack for compatibility with Mosaic
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/tidy-int.h"
#include "third_party/tidy/lexer.h"
#include "third_party/tidy/attrs.h"
#include "third_party/tidy/stream... | 9,736 | 378 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/.tidyrc | # http://tidy.sourceforge.net/docs/quickref.html#clean
accessibility-check: 0
add-meta-charset: yes
add-xml-decl: no
add-xml-space: no
alt-text:
anchor-as-name: yes
ascii-chars: no
assume-xml-procins: no
bare: no
break-before-br: no
char-encoding: utf8
clean: yes
coerce-endtags: yes
css-prefix: c
custom-tags: no
decora... | 1,840 | 102 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/streamio.c | /* clang-format off */
/* streamio.c -- handles character stream I/O
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Wrapper around Tidy input source and output sink
that calls appropriate interfaces, and applies
necessary char encoding transformations: to/from
ISO-106... | 29,747 | 1,149 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/charsets.c | /* clang-format off */
/* charsets.c -- character set information and mappings
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/forward.h"
#include "third_party/tidy/tidy.h"
#include "third_party/tidy/tmbstr.h"
#include "third_party/tidy/charsets.... | 79,786 | 1,032 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/version.inc | /* clang-format off */
/* version information
(c) 2007-2015 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#ifdef RELEASE_DATE
static const char TY_(release_date)[] = RELEASE_DATE;
#else
static const char TY_(release_date)[] = "2015/01/22";
#endif
#ifdef LIBTIDY_VERSION
#ifdef RC_NUMBE... | 545 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/fileio.h | #ifndef __FILEIO_H__
#define __FILEIO_H__
/* clang-format off */
/** @file fileio.h - does standard C I/O
Implementation of a FILE* based TidyInputSource and
TidyOutputSink.
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/access.h"
#include... | 1,198 | 45 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/config.c | /* clang-format off */
/* config.c
* Read configuration files and manage configuration properties.
*
* Copyright (c) 1998-2017 World Wide Web Consortium (Massachusetts
* Institute of Technology, European Research Consortium for Informatics
* and Mathematics, Keio University) and HTACG.
*
* See tidy.h for the cop... | 68,434 | 2,011 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/language.c | /* clang-format off */
/* language.c -- localization support for HTML Tidy.
Copyright 2015 HTACG
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/language.h"
#include "third_party/tidy/tmbstr.h"
#include "libc/assert.h"
#include "third_party/tidy/language_en.inc"
/**
* This structure type... | 19,726 | 667 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/clean.c | /* clang-format off */
/*
clean.c -- clean up misuse of presentation markup
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Filters from other formats such as Microsoft Word
often make excessive use of presentation markup such
as font tags, B, I, and the align attribut... | 77,780 | 2,861 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/message.h | #ifndef __MESSAGE_H__
#define __MESSAGE_H__
/* clang-format off */
/******************************************************************************
* @file
* Provides General Message Writing Routines
*
* This module handles LibTidy's high level output routines, as well as
* provides lookup functions and management... | 10,579 | 319 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/buffio.c | /* clang-format off */
/* buffio.c -- Treat buffer as an I/O stream.
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Requires buffer to automatically grow as bytes are added.
Must keep track of current read and write points.
*/
#include "third_party/tidy/tidy.h"
#include... | 5,249 | 230 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/utf8.h | #ifndef __UTF8_H__
#define __UTF8_H__
/* clang-format off */
/* utf8.h -- convert characters to/from UTF-8
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
#include "third_party/tidy/tidyplatform.h"
#include "third_party/tidy/access.h"
#include "third_party/tidy/tidybuffio... | 1,415 | 49 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/streamio.h | #ifndef __STREAMIO_H__
#define __STREAMIO_H__
/* clang-format off */
/* streamio.h -- handles character stream I/O
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Wrapper around Tidy input source and output sink
that calls appropriate interfaces, and applies
necessary c... | 4,127 | 176 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/lexer.c | /* clang-format off */
/* lexer.c -- Lexer for html parser
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
*/
/*
Given a file stream fp it returns a sequence of tokens.
GetToken(fp) gets the next token
UngetToken(fp) provides one level undo
The tags include an... | 136,934 | 4,552 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/tidy.mk | #-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-â
#âââvi: set et ft=make ts=8 tw=8 fenc=utf-8 :viââââââââââââââââââââââââ
PKGS += THIRD_PARTY_TIDY
THIRD_PARTY_TIDY_SRCS = $(THIRD_PARTY_TIDY_A_SRCS)
THIRD_PARTY_TIDY_HDRS = $(THIRD_PARTY_TIDY... | 2,814 | 80 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/messageobj.c | /* clang-format off */
/* messageobj.c
* Provides an external, extensible API for message reporting.
*
* (c) 2017 HTACG
* See tidy.h for the copyright notice.
*/
#include "third_party/tidy/messageobj.h"
#include "third_party/tidy/message.h"
#include "third_party/tidy/tidy-int.h"
#include "libc/assert.h"
#include ... | 21,572 | 686 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/entities.c | /* clang-format off */
/* entities.c -- recognize HTML ISO entities
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Entity handling can be static because there are no config or
document-specific values. Lookup table is 100% defined at
compile time.
*/
#include "third_... | 78,486 | 2,197 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/language_en.inc | /* clang-format off */
#ifndef language_en_h
#define language_en_h
/*
* language_en.h
* Localization support for HTML Tidy.
*
* This file consists of the strings for Tidy's base language and is a
* required localization for Tidy to compile and work. Unlike the other
* localization files this file is NOT machine-g... | 150,050 | 2,508 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/tidylib.c | /* clang-format off */
/* tidylib.c -- internal library definitions
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Defines HTML Tidy API implemented by tidy library.
Very rough initial cut for discussion purposes.
Public interface is const-correct and doesn't explicit... | 78,924 | 2,765 | jart/cosmopolitan | false |
cosmopolitan/third_party/tidy/sprtf.c | /* clang-format off */
/* sprtf.c
* SPRTF - Log output utility - part of the HTML Tidy project
*
* Copyright (c) 1998-2017 Geoff R. McLane and HTACG
*
* See tidy.h for the copyright notice.
*/
#ifdef _MSC_VER
# pragma warning( disable : 4995 )
#endif
#ifdef _MSC_VER
# if (defined(UNICODE) || defined(_UNICODE... | 9,031 | 415 | jart/cosmopolitan | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.