8000 bpo-41861: Clean up sqlite3 header files wrt. PEP 384 by erlend-aasland · Pull Request #22419 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-41861: Clean up sqlite3 header files wrt. PEP 384 #22419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix PyMemberDef in statement.c
- Fix incomplete type (PyMemberDef => struct PyMemberDef)
- Include structmember.h bco. PyMemberDef
  • Loading branch information
Erlend E. Aasland committed Oct 5, 2020
commit b98761c865a729849e13dbd134d0b4380ce0af94
4 changes: 3 additions & 1 deletion Modules/_sqlite/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include "prepare_protocol.h"
#include "util.h"

#include "structmember.h" // PyMemberDef

/* prototypes */
static int pysqlite_check_remaining_sql(const char* tail);

Expand Down Expand Up @@ -461,7 +463,7 @@ static int pysqlite_check_remaining_sql(const char* tail)
return 0;
}

static PyMemberDef stmt_members[] = {
static struct PyMemberDef stmt_members[] = {
{"__weaklistoffset__", T_PYSSIZET, offsetof(pysqlite_Statement, in_weakreflist), READONLY},
{NULL},
};
Expand Down
0