mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +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
1
third_party/python/Modules/_sqlite/cache.c
vendored
1
third_party/python/Modules/_sqlite/cache.c
vendored
|
@ -29,7 +29,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/* only used internally */
|
||||
pysqlite_Node* pysqlite_new_node(PyObject* key, PyObject* data)
|
||||
|
|
1
third_party/python/Modules/_sqlite/cache.h
vendored
1
third_party/python/Modules/_sqlite/cache.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_CACHE_H
|
||||
#define PYSQLITE_CACHE_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* The LRU cache is implemented as a combination of a doubly-linked with a
|
||||
* dictionary. The list items are of type 'Node' and the dictionary has the
|
||||
|
|
|
@ -40,7 +40,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
#define ACTION_FINALIZE 1
|
||||
#define ACTION_RESET 2
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "third_party/python/Modules/_sqlite/cache.h"
|
||||
#include "third_party/python/Modules/_sqlite/module.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/cursor.c
vendored
1
third_party/python/Modules/_sqlite/cursor.c
vendored
|
@ -31,7 +31,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
PyObject* pysqlite_cursor_iternext(pysqlite_Cursor* self);
|
||||
|
||||
|
|
1
third_party/python/Modules/_sqlite/cursor.h
vendored
1
third_party/python/Modules/_sqlite/cursor.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_CURSOR_H
|
||||
#define PYSQLITE_CURSOR_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
#include "third_party/python/Modules/_sqlite/statement.h"
|
||||
#include "third_party/python/Modules/_sqlite/connection.h"
|
||||
|
|
|
@ -31,7 +31,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/** the adapters registry **/
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define PSYCOPG_MICROPROTOCOLS_H 1
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Modules/_sqlite/cursor.h"
|
||||
/* clang-format off */
|
||||
|
||||
/** adapters registry **/
|
||||
|
||||
|
|
1
third_party/python/Modules/_sqlite/module.c
vendored
1
third_party/python/Modules/_sqlite/module.c
vendored
|
@ -38,7 +38,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/* #if SQLITE_VERSION_NUMBER >= 3003003 */
|
||||
/* #define HAVE_SHARED_CACHE */
|
||||
|
|
1
third_party/python/Modules/_sqlite/module.h
vendored
1
third_party/python/Modules/_sqlite/module.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_MODULE_H
|
||||
#define PYSQLITE_MODULE_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define PYSQLITE_VERSION "2.6.0"
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
int pysqlite_prepare_protocol_init(pysqlite_PrepareProtocol* self, PyObject* args, PyObject* kwargs)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_PREPARE_PROTOCOL_H
|
||||
#define PYSQLITE_PREPARE_PROTOCOL_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/row.c
vendored
1
third_party/python/Modules/_sqlite/row.c
vendored
|
@ -30,7 +30,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
void pysqlite_row_dealloc(pysqlite_Row* self)
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/row.h
vendored
1
third_party/python/Modules/_sqlite/row.h
vendored
|
@ -1,7 +1,6 @@
|
|||
#ifndef PYSQLITE_ROW_H
|
||||
#define PYSQLITE_ROW_H
|
||||
#include "third_party/python/Include/Python.h"
|
||||
/* clang-format off */
|
||||
|
||||
typedef struct _Row
|
||||
{
|
||||
|
|
|
@ -34,7 +34,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
/* prototypes */
|
||||
static int pysqlite_check_remaining_sql(const char* tail);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Modules/_sqlite/connection.h"
|
||||
#include "third_party/sqlite3/sqlite3.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define PYSQLITE_TOO_MUCH_SQL (-100)
|
||||
#define PYSQLITE_SQL_WRONG_TYPE (-101)
|
||||
|
|
1
third_party/python/Modules/_sqlite/util.c
vendored
1
third_party/python/Modules/_sqlite/util.c
vendored
|
@ -30,7 +30,6 @@ asm(".ident\t\"\\n\\n\
|
|||
pysqlite (zlib license)\\n\
|
||||
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
int pysqlite_step(sqlite3_stmt* statement, pysqlite_Connection* connection)
|
||||
{
|
||||
|
|
1
third_party/python/Modules/_sqlite/util.h
vendored
1
third_party/python/Modules/_sqlite/util.h
vendored
|
@ -1,6 +1,5 @@
|
|||
#ifndef PYSQLITE_UTIL_H
|
||||
#define PYSQLITE_UTIL_H
|
||||
/* clang-format off */
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Modules/_sqlite/connection.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue