Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion 3 Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@

#include "cache.h"
#include "module.h"
#include "structmember.h" // PyMemberDef
Comment thread
erlend-aasland marked this conversation as resolved.
Outdated
#include "connection.h"
#include "statement.h"
#include "cursor.h"
#include "prepare_protocol.h"
#include "util.h"

#include "structmember.h" // PyMemberDef

#define ACTION_FINALIZE 1
#define ACTION_RESET 2

Expand Down
2 changes: 0 additions & 2 deletions 2 Modules/_sqlite/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#define PYSQLITE_CONNECTION_H
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "pythread.h"
#include "structmember.h"

#include "cache.h"
#include "module.h"
Expand Down
2 changes: 2 additions & 0 deletions 2 Modules/_sqlite/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "module.h"
#include "util.h"

#include "structmember.h" // PyMemberDef

PyObject* pysqlite_cursor_iternext(pysqlite_Cursor* self);

static const char errmsg_fetch_across_rollback[] = "Cursor needed to be reset because of commit/rollback and can no longer be fetched from.";
Expand Down
2 changes: 0 additions & 2 deletions 2 Modules/_sqlite/microprotocols.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
* 3. This notice may not be removed or altered from any source distribution.
*/

#include <Python.h>

#include "cursor.h"
#include "microprotocols.h"
#include "prepare_protocol.h"
Expand Down
4 changes: 3 additions & 1 deletion 4 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
2 changes: 1 addition & 1 deletion 2 Modules/_sqlite/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define PYSQLITE_UTIL_H
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "pythread.h"

#include "sqlite3.h"
#include "connection.h"

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.