mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
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:
parent
96f979dfc5
commit
fa20edc44d
3057 changed files with 410 additions and 4398 deletions
2
third_party/sqlite3/.clang-format
vendored
2
third_party/sqlite3/.clang-format
vendored
|
@ -1,2 +0,0 @@
|
|||
DisableFormat: true
|
||||
SortIncludes: Never
|
1
third_party/sqlite3/appendvfs.c
vendored
1
third_party/sqlite3/appendvfs.c
vendored
|
@ -49,7 +49,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/btree.c
vendored
1
third_party/sqlite3/btree.c
vendored
|
@ -19,7 +19,6 @@
|
|||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
** The header string that appears at the beginning of every
|
||||
|
|
1
third_party/sqlite3/build.c
vendored
1
third_party/sqlite3/build.c
vendored
|
@ -28,7 +28,6 @@
|
|||
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
|
||||
#endif
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
#ifndef SQLITE_OMIT_SHARED_CACHE
|
||||
/*
|
||||
|
|
1
third_party/sqlite3/completion.c
vendored
1
third_party/sqlite3/completion.c
vendored
|
@ -36,7 +36,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/ctime.c
vendored
1
third_party/sqlite3/ctime.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/* DO NOT EDIT!
|
||||
** This file is automatically generated by the script in the canonical
|
||||
** SQLite source tree at tool/mkctimec.tcl.
|
||||
|
|
1
third_party/sqlite3/dbdata.c
vendored
1
third_party/sqlite3/dbdata.c
vendored
|
@ -74,7 +74,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/decimal.c
vendored
1
third_party/sqlite3/decimal.c
vendored
|
@ -18,7 +18,6 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
2
third_party/sqlite3/extensions.h
vendored
2
third_party/sqlite3/extensions.h
vendored
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_THIRD_PARTY_SQLITE3_EXTENSIONS_H_
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sqlite3MemTraceActivate(FILE *);
|
||||
|
@ -21,5 +20,4 @@ int sqlite3_uint_init(sqlite3 *, char **, const sqlite3_api_routines *);
|
|||
int sqlite3_zipfile_init(sqlite3 *, char **, const sqlite3_api_routines *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_SQLITE3_EXTENSIONS_H_ */
|
||||
|
|
1
third_party/sqlite3/fileio.c
vendored
1
third_party/sqlite3/fileio.c
vendored
|
@ -87,7 +87,6 @@
|
|||
#include "libc/sysv/consts/s.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/fts5.c
vendored
1
third_party/sqlite3/fts5.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
|
||||
#if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS5)
|
||||
|
||||
|
|
1
third_party/sqlite3/func.c
vendored
1
third_party/sqlite3/func.c
vendored
|
@ -20,7 +20,6 @@
|
|||
#include "libc/math.h"
|
||||
#endif
|
||||
#include "third_party/sqlite3/vdbeInt.inc"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
** Return the collating function associated with a function.
|
||||
|
|
1
third_party/sqlite3/geopoly.inc
vendored
1
third_party/sqlite3/geopoly.inc
vendored
|
@ -17,7 +17,6 @@
|
|||
** access to all of the R-Tree internals.
|
||||
*/
|
||||
#include "libc/fmt/conv.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Enable -DGEOPOLY_ENABLE_DEBUG for debugging facilities */
|
||||
#ifdef GEOPOLY_ENABLE_DEBUG
|
||||
|
|
1
third_party/sqlite3/ieee754.c
vendored
1
third_party/sqlite3/ieee754.c
vendored
|
@ -88,7 +88,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/json.c
vendored
1
third_party/sqlite3/json.c
vendored
|
@ -24,7 +24,6 @@
|
|||
#ifndef SQLITE_OMIT_JSON
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "third_party/sqlite3/sqliteInt.h"
|
||||
// clang-format off
|
||||
|
||||
/*
|
||||
** Growing our own isspace() routine this way is twice as fast as
|
||||
|
|
1
third_party/sqlite3/main.c
vendored
1
third_party/sqlite3/main.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2001 September 15
|
||||
**
|
||||
|
|
1
third_party/sqlite3/memtrace.c
vendored
1
third_party/sqlite3/memtrace.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
// clang-format off
|
||||
|
||||
/* The original memory allocation routines */
|
||||
static sqlite3_mem_methods memtraceBase;
|
||||
|
|
2
third_party/sqlite3/mutex.internal.h
vendored
2
third_party/sqlite3/mutex.internal.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_THIRD_PARTY_SQLITE3_MUTEX_INTERNAL_H_
|
||||
#define COSMOPOLITAN_THIRD_PARTY_SQLITE3_MUTEX_INTERNAL_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#if !SQLITE_THREADSAFE
|
||||
|
@ -37,5 +36,4 @@ int sqlite3_mutex_held(sqlite3_mutex*);
|
|||
#endif /* defined(SQLITE_MUTEX_OMIT) */
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_SQLITE3_MUTEX_INTERNAL_H_ */
|
||||
|
|
1
third_party/sqlite3/os_unix.c
vendored
1
third_party/sqlite3/os_unix.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2004 May 22
|
||||
**
|
||||
|
|
1
third_party/sqlite3/pcache1.c
vendored
1
third_party/sqlite3/pcache1.c
vendored
|
@ -84,7 +84,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
#include "third_party/sqlite3/sqliteInt.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct PCache1 PCache1;
|
||||
typedef struct PgHdr1 PgHdr1;
|
||||
|
|
1
third_party/sqlite3/rtree.c
vendored
1
third_party/sqlite3/rtree.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2001 September 15
|
||||
**
|
||||
|
|
1
third_party/sqlite3/series.c
vendored
1
third_party/sqlite3/series.c
vendored
|
@ -71,7 +71,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/shathree.c
vendored
1
third_party/sqlite3/shathree.c
vendored
|
@ -29,7 +29,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/shell.c
vendored
1
third_party/sqlite3/shell.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
/* DO NOT EDIT!
|
||||
** This file is automatically generated by the script in the canonical
|
||||
** SQLite source tree at tool/mkshellc.tcl. That script combines source
|
||||
|
|
1
third_party/sqlite3/sqlar.c
vendored
1
third_party/sqlite3/sqlar.c
vendored
|
@ -17,7 +17,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
#include "third_party/zlib/zlib.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/sqlite3expert.c
vendored
1
third_party/sqlite3/sqlite3expert.c
vendored
|
@ -15,7 +15,6 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3expert.h"
|
||||
// clang-format off
|
||||
|
||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
|
||||
|
|
2
third_party/sqlite3/sqlite3expert.h
vendored
2
third_party/sqlite3/sqlite3expert.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_THIRD_PARTY_SQLITE3_SQLITE3EXPERT_H_
|
||||
#define COSMOPOLITAN_THIRD_PARTY_SQLITE3_SQLITE3EXPERT_H_
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
typedef struct sqlite3expert sqlite3expert;
|
||||
|
@ -155,5 +154,4 @@ const char *sqlite3_expert_report(sqlite3expert *, int iStmt, int eReport);
|
|||
void sqlite3_expert_destroy(sqlite3expert *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_SQLITE3_SQLITE3EXPERT_H_ */
|
||||
|
|
1
third_party/sqlite3/sqlite3rbu.c
vendored
1
third_party/sqlite3/sqlite3rbu.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2014 August 30
|
||||
**
|
||||
|
|
1
third_party/sqlite3/sqlite3session.c
vendored
1
third_party/sqlite3/sqlite3session.c
vendored
|
@ -1,4 +1,3 @@
|
|||
/* clang-format off */
|
||||
|
||||
#if defined(SQLITE_ENABLE_SESSION) && defined(SQLITE_ENABLE_PREUPDATE_HOOK)
|
||||
#include "third_party/sqlite3/sqlite3session.h"
|
||||
|
|
1
third_party/sqlite3/sqliteInt.h
vendored
1
third_party/sqlite3/sqliteInt.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2001 September 15
|
||||
**
|
||||
|
|
1
third_party/sqlite3/uint.c
vendored
1
third_party/sqlite3/uint.c
vendored
|
@ -30,7 +30,6 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
// clang-format off
|
||||
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
|
|
1
third_party/sqlite3/zipfile.c
vendored
1
third_party/sqlite3/zipfile.c
vendored
|
@ -32,7 +32,6 @@
|
|||
#include "third_party/sqlite3/sqlite3.h"
|
||||
#include "third_party/sqlite3/sqlite3ext.h"
|
||||
#include "third_party/zlib/zlib.h"
|
||||
// clang-format off
|
||||
|
||||
typedef sqlite3_int64 i64;
|
||||
typedef sqlite3_uint64 u64;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue