]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43269: Remove redundant extern keywords (GH-24605)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Sun, 21 Feb 2021 10:07:49 +0000 (11:07 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 10:07:49 +0000 (12:07 +0200)
Modules/_sqlite/cache.c
Modules/_sqlite/connection.c
Modules/_sqlite/cursor.c
Modules/_sqlite/prepare_protocol.c
Modules/_sqlite/row.c
Modules/_sqlite/statement.c

index ec4a22fb7a2d808a89fbdbadf7d8eda8cb60926a..8da0a64a3f90a4808d84f8772c350d926aacc124 100644 (file)
@@ -296,7 +296,8 @@ static PyType_Spec cache_spec = {
 };
 PyTypeObject *pysqlite_CacheType = NULL;
 
-extern int pysqlite_cache_setup_types(PyObject *mod)
+int
+pysqlite_cache_setup_types(PyObject *mod)
 {
     pysqlite_NodeType = (PyTypeObject *)PyType_FromModuleAndSpec(mod, &node_spec, NULL);
     if (pysqlite_NodeType == NULL) {
index 34ba29be3497f05d6989e3cffe8af8a681cab6ed..f6a6ef69e179c12a4b3072d063ff5ee92a0e8b55 100644 (file)
@@ -1927,7 +1927,8 @@ static PyType_Spec connection_spec = {
 
 PyTypeObject *pysqlite_ConnectionType = NULL;
 
-extern int pysqlite_connection_setup_types(PyObject *module)
+int
+pysqlite_connection_setup_types(PyObject *module)
 {
     pysqlite_ConnectionType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &connection_spec, NULL);
     if (pysqlite_ConnectionType == NULL) {
index 9058aabb5fc0674adac1a65c592807693ecd7937..74860731d1c7bdb2edf958f3f31d96ae9286ffc6 100644 (file)
@@ -1017,7 +1017,8 @@ static PyType_Spec cursor_spec = {
 
 PyTypeObject *pysqlite_CursorType = NULL;
 
-extern int pysqlite_cursor_setup_types(PyObject *module)
+int
+pysqlite_cursor_setup_types(PyObject *module)
 {
     pysqlite_CursorType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &cursor_spec, NULL);
     if (pysqlite_CursorType == NULL) {
index ad793324b94b5be7735dfeb59b55f045070d5d68..7d2d7ade591467b23967078b48cb398480f65b0e 100644 (file)
@@ -55,7 +55,8 @@ static PyType_Spec type_spec = {
 
 PyTypeObject *pysqlite_PrepareProtocolType = NULL;
 
-extern int pysqlite_prepare_protocol_setup_types(PyObject *module)
+int
+pysqlite_prepare_protocol_setup_types(PyObject *module)
 {
     pysqlite_PrepareProtocolType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &type_spec, NULL);
     if (pysqlite_PrepareProtocolType == NULL) {
index 97a5a17ada9d0bde7ab4e90c78e53766dba6fe3c..f9dfcbd5d615e5a2ab9a01c704585a01d4b8b919 100644 (file)
@@ -243,7 +243,8 @@ static PyType_Spec row_spec = {
 
 PyTypeObject *pysqlite_RowType = NULL;
 
-extern int pysqlite_row_setup_types(PyObject *module)
+int
+pysqlite_row_setup_types(PyObject *module)
 {
     pysqlite_RowType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &row_spec, NULL);
     if (pysqlite_RowType == NULL) {
index f179eee16f4d40efff57acb04b587aceb2eab62c..57026270e1eeb5d3544f95a2e06c626c4f92a7a0 100644 (file)
@@ -480,7 +480,8 @@ static PyType_Spec stmt_spec = {
 };
 PyTypeObject *pysqlite_StatementType = NULL;
 
-extern int pysqlite_statement_setup_types(PyObject *module)
+int
+pysqlite_statement_setup_types(PyObject *module)
 {
     pysqlite_StatementType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &stmt_spec, NULL);
     if (pysqlite_StatementType == NULL) {