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

@ -53,7 +53,6 @@ void m(const char *s, void *p, size_t n) {
q = Deflate(p, n, &m);
f = fopen(xstrcat("third_party/python/Modules/cjkcodecs/", s, ".c"), "wb");
fprintf(f, "#include \"libc/x/x.h\"\n");
fprintf(f, "/* clang-format off */\n");
fprintf(f, "\n");
fprintf(f, "static _Atomic(void *) %s_ptr;\n", s);
fprintf(f, "static const unsigned char %s_rodata[] = {", s);
@ -94,7 +93,6 @@ void dzd(const char *s, void *p, size_t n, size_t z) {
q = Deflate(r, appendz(r).i, &m);
f = fopen(xstrcat("third_party/python/Modules/cjkcodecs/", s, ".c"), "wb");
fprintf(f, "#include \"libc/x/x.h\"\n");
fprintf(f, "/* clang-format off */\n");
fprintf(f, "\n");
fprintf(f, "static _Atomic(void *) %s_ptr;\n", s);
fprintf(f, "static const unsigned char %s_rodata[%zu] = {", s, m);

View file

@ -147,7 +147,6 @@ COSMOPOLITAN_C_END_
def startfile(fp):
print('#include "libc/nexgen32e/kompressor.h"', file=fp)
print('#include "third_party/python/Modules/unicodedata.h"', file=fp)
print("/* clang-format off */", file=fp)
print("/* GENERATED BY %s %s */" % (SCRIPT, VERSION), file=fp)
print(file=fp)