Skip to content

Commit 38b6c2a

Browse files
author
Erlend Egeberg Aasland
authored
bpo-43269: Remove redundant extern keywords (GH-24605)
1 parent 4cf7bb8 commit 38b6c2a

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

Modules/_sqlite/cache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ static PyType_Spec cache_spec = {
296296
};
297297
PyTypeObject *pysqlite_CacheType = NULL;
298298

299-
extern int pysqlite_cache_setup_types(PyObject *mod)
299+
int
300+
pysqlite_cache_setup_types(PyObject *mod)
300301
{
301302
pysqlite_NodeType = (PyTypeObject *)PyType_FromModuleAndSpec(mod, &node_spec, NULL);
302303
if (pysqlite_NodeType == NULL) {

Modules/_sqlite/connection.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,8 @@ static PyType_Spec connection_spec = {
19271927

19281928
PyTypeObject *pysqlite_ConnectionType = NULL;
19291929

1930-
extern int pysqlite_connection_setup_types(PyObject *module)
1930+
int
1931+
pysqlite_connection_setup_types(PyObject *module)
19311932
{
19321933
pysqlite_ConnectionType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &connection_spec, NULL);
19331934
if (pysqlite_ConnectionType == NULL) {

Modules/_sqlite/cursor.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,8 @@ static PyType_Spec cursor_spec = {
10171017

10181018
PyTypeObject *pysqlite_CursorType = NULL;
10191019

1020-
extern int pysqlite_cursor_setup_types(PyObject *module)
1020+
int
1021+
pysqlite_cursor_setup_types(PyObject *module)
10211022
{
10221023
pysqlite_CursorType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &cursor_spec, NULL);
10231024
if (pysqlite_CursorType == NULL) {

Modules/_sqlite/prepare_protocol.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ static PyType_Spec type_spec = {
5555

5656
PyTypeObject *pysqlite_PrepareProtocolType = NULL;
5757

58-
extern int pysqlite_prepare_protocol_setup_types(PyObject *module)
58+
int
59+
pysqlite_prepare_protocol_setup_types(PyObject *module)
5960
{
6061
pysqlite_PrepareProtocolType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &type_spec, NULL);
6162
if (pysqlite_PrepareProtocolType == NULL) {

Modules/_sqlite/row.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ static PyType_Spec row_spec = {
243243

244244
PyTypeObject *pysqlite_RowType = NULL;
245245

246-
extern int pysqlite_row_setup_types(PyObject *module)
246+
int
247+
pysqlite_row_setup_types(PyObject *module)
247248
{
248249
pysqlite_RowType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &row_spec, NULL);
249250
if (pysqlite_RowType == NULL) {

Modules/_sqlite/statement.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,8 @@ static PyType_Spec stmt_spec = {
480480
};
481481
PyTypeObject *pysqlite_StatementType = NULL;
482482

483-
extern int pysqlite_statement_setup_types(PyObject *module)
483+
int
484+
pysqlite_statement_setup_types(PyObject *module)
484485
{
485486
pysqlite_StatementType = (PyTypeObject *)PyType_FromModuleAndSpec(module, &stmt_spec, NULL);
486487
if (pysqlite_StatementType == NULL) {

0 commit comments

Comments
 (0)