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

@ -1,4 +1,3 @@
/* clang-format off */
/*-------------------------------------------------------------*/
/*--- Block sorting machinery ---*/

View file

@ -15,7 +15,6 @@
#include "libc/time/struct/utimbuf.h"
#include "libc/time/time.h"
#include "third_party/bzip2/bzlib.h"
/* clang-format off */
/*-----------------------------------------------------------*/
/*--- A block-sorting, lossless compressor bzip2.c ---*/

View file

@ -5,7 +5,6 @@
#include "libc/runtime/runtime.h"
#include "libc/stdio/stdio.h"
#include "libc/str/str.h"
/* clang-format off */
/*-----------------------------------------------------------*/
/*--- Block recoverer program for bzip2 ---*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*-------------------------------------------------------------*/
/*--- Library top-level functions. ---*/

View file

@ -23,7 +23,6 @@
#define BZ_MAX_UNUSED 5000
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
typedef struct {
@ -87,5 +86,4 @@ void BZ2_bzclose(BZFILE *);
const char *BZ2_bzerror(BZFILE *, int *);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* _BZLIB_H */

View file

@ -2,7 +2,6 @@
#define BZ_NO_STDIO
/* clang-format off */
/*-------------------------------------------------------------*/
/*--- Private header file for the library. ---*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*-------------------------------------------------------------*/
/*--- Compression machinery (not incl block sorting) ---*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*-------------------------------------------------------------*/
/*--- Decompression machinery ---*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*-------------------------------------------------------------*/
/*--- Huffman coding low-level stuff ---*/

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*-------------------------------------------------------------*/
/*--- Table for randomising repetitive blocks ---*/

View file

@ -1,6 +1,5 @@
#include "libc/stdio/rand.h"
#include "libc/stdio/stdio.h"
/* clang-format off */
/* spew out a thoroughly gigantic file designed so that bzip2
can compress it reasonably rapidly. This is to help test