]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42064: Remove stale extern declarations in `sqlite3` headers (GH-26840)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Wed, 23 Jun 2021 12:06:53 +0000 (14:06 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 12:06:53 +0000 (21:06 +0900)
Modules/_sqlite/connection.h
Modules/_sqlite/cursor.h
Modules/_sqlite/prepare_protocol.h
Modules/_sqlite/row.h
Modules/_sqlite/statement.h
Tools/c-analyzer/cpython/ignored.tsv

index 88c58b385ba8443eb1b50ad348d207b1427eb3df..5e7e7e5abe066879a2819765bf7aba25731579ba 100644 (file)
@@ -98,8 +98,6 @@ typedef struct
     PyObject* NotSupportedError;
 } pysqlite_Connection;
 
-extern PyTypeObject *pysqlite_ConnectionType;
-
 int pysqlite_connection_register_cursor(pysqlite_Connection* connection, PyObject* cursor);
 int pysqlite_check_thread(pysqlite_Connection* self);
 int pysqlite_check_connection(pysqlite_Connection* con);
index b26b2886746c29175f572964c732428432ed0f7f..9a5e9eede23025d3cad950c732635c6954033127 100644 (file)
@@ -52,8 +52,6 @@ typedef struct
     PyObject* in_weakreflist; /* List of weak references */
 } pysqlite_Cursor;
 
-extern PyTypeObject *pysqlite_CursorType;
-
 int pysqlite_cursor_setup_types(PyObject *module);
 
 #define UNKNOWN (-1)
index 593961331c90da1013b993f9e3882e388d36d0d3..f24cef5497139f19e4be9c6c21045900532bbe76 100644 (file)
@@ -30,8 +30,6 @@ typedef struct
     PyObject_HEAD
 } pysqlite_PrepareProtocol;
 
-extern PyTypeObject *pysqlite_PrepareProtocolType;
-
 int pysqlite_prepare_protocol_setup_types(PyObject *module);
 
 #define UNKNOWN (-1)
index 2dac41e89e12d838bb0b6aaf4cbc5988c102c057..b51909817584ba9fc48b6e5a1c536503f691b90c 100644 (file)
@@ -33,8 +33,6 @@ typedef struct _Row
     PyObject* description;
 } pysqlite_Row;
 
-extern PyTypeObject *pysqlite_RowType;
-
 int pysqlite_row_setup_types(PyObject *module);
 
 #endif
index b06f6155e15c2f9a60c698770f0bc130ffe43e10..70801cc5ce9fdb0c2f8633abcb7de56d6071b0a1 100644 (file)
@@ -38,8 +38,6 @@ typedef struct
     PyObject* in_weakreflist; /* List of weak references */
 } pysqlite_Statement;
 
-extern PyTypeObject *pysqlite_StatementType;
-
 pysqlite_Statement *pysqlite_statement_create(pysqlite_Connection *connection, PyObject *sql);
 
 int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObject* parameter);
index e5d93782076c3d938efdf9c11da588230d5bab03..d8407ed3745fafa2b41f555e1c3130eb82538f1c 100644 (file)
@@ -49,13 +49,6 @@ Modules/_io/_iomodule.h      -       _PyIO_str_write -
 Modules/_io/_iomodule.h        -       _PyIO_empty_str -
 Modules/_io/_iomodule.h        -       _PyIO_empty_bytes       -
 Modules/_multiprocessing/multiprocessing.h     -       _PyMp_SemLockType       -
-Modules/_sqlite/cache.h        -       pysqlite_NodeType       -
-Modules/_sqlite/cache.h        -       pysqlite_CacheType      -
-Modules/_sqlite/cursor.h       -       pysqlite_CursorType     -
-Modules/_sqlite/row.h  -       pysqlite_RowType        -
-Modules/_sqlite/prepare_protocol.h     -       pysqlite_PrepareProtocolType    -
-Modules/_sqlite/statement.h    -       pysqlite_StatementType  -
-Modules/_sqlite/connection.h   -       pysqlite_ConnectionType -
 Modules/_sqlite/module.c       -       pysqlite_Error  -
 Modules/_sqlite/module.c       -       pysqlite_Warning        -
 Modules/_sqlite/module.c       -       pysqlite_InterfaceError -
@@ -2372,13 +2365,6 @@ Modules/_tkinter.c       -       Tktt_Type       -
 Modules/xxlimited.c    -       Xxo_Type        -
 Modules/_decimal/_decimal.c    -       DecimalTuple    -
 Modules/_decimal/_decimal.c    -       PyDecSignalDict_Type    -
-Modules/_sqlite/connection.c   -       pysqlite_ConnectionType -
-Modules/_sqlite/statement.c    -       pysqlite_StatementType  -
-Modules/_sqlite/cache.c        -       pysqlite_NodeType       -
-Modules/_sqlite/cache.c        -       pysqlite_CacheType      -
-Modules/_sqlite/row.c  -       pysqlite_RowType        -
-Modules/_sqlite/prepare_protocol.c     -       pysqlite_PrepareProtocolType    -
-Modules/_sqlite/cursor.c       -       pysqlite_CursorType     -
 
 # exception types  []
 Modules/_ctypes/_ctypes.c      -       PyExc_ArgError  -