mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-43269: Remove redundant extern keywords (GH-24605)
This commit is contained in:
committed by
GitHub
parent
4cf7bb8e22
commit
38b6c2acd4
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user