File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424#ifndef PYSQLITE_CONNECTION_H
2525#define PYSQLITE_CONNECTION_H
26- #define PY_SSIZE_T_CLEAN
27- #include "Python.h"
28- #include "pythread.h"
29- #include "structmember.h"
3026
3127#include "module.h"
3228
29+ #include "pythread.h"
30+ #include "structmember.h"
31+
3332#include "sqlite3.h"
3433
3534typedef struct _callback_context
Original file line number Diff line number Diff line change 2222 */
2323
2424#include "cursor.h"
25- #include "module.h"
2625#include "util.h"
2726
2827#define clinic_state () (pysqlite_get_state_by_type(Py_TYPE(self)))
Original file line number Diff line number Diff line change 2323
2424#ifndef PYSQLITE_CURSOR_H
2525#define PYSQLITE_CURSOR_H
26- #define PY_SSIZE_T_CLEAN
27- #include "Python.h"
2826
27+ #include "module.h"
2928#include "statement.h"
3029#include "connection.h"
31- #include "module.h"
3230
3331typedef struct
3432{
Original file line number Diff line number Diff line change 2323 * 3. This notice may not be removed or altered from any source distribution.
2424 */
2525
26- #include <Python.h>
27-
28- #include "cursor.h"
2926#include "microprotocols.h"
27+ #include "cursor.h"
3028#include "prepare_protocol.h"
3129
3230
Original file line number Diff line number Diff line change 2626#ifndef PSYCOPG_MICROPROTOCOLS_H
2727#define PSYCOPG_MICROPROTOCOLS_H 1
2828
29- #define PY_SSIZE_T_CLEAN
30- #include <Python.h>
29+ #include "module.h"
3130
3231/** exported functions **/
3332
Original file line number Diff line number Diff line change 2121 * 3. This notice may not be removed or altered from any source distribution.
2222 */
2323
24+ #include "module.h"
2425#include "connection.h"
2526#include "statement.h"
2627#include "cursor.h"
Original file line number Diff line number Diff line change 2323
2424#ifndef PYSQLITE_PREPARE_PROTOCOL_H
2525#define PYSQLITE_PREPARE_PROTOCOL_H
26+
2627#include "module.h"
2728
2829typedef struct
Original file line number Diff line number Diff line change 2323
2424#ifndef PYSQLITE_ROW_H
2525#define PYSQLITE_ROW_H
26- #define PY_SSIZE_T_CLEAN
27- #include "Python .h"
26+
27+ #include "module .h"
2828
2929typedef struct _Row
3030{
Original file line number Diff line number Diff line change 2323
2424#ifndef PYSQLITE_STATEMENT_H
2525#define PYSQLITE_STATEMENT_H
26- #define PY_SSIZE_T_CLEAN
27- #include "Python.h"
2826
27+ #include "module.h"
2928#include "connection.h"
3029#include "sqlite3.h"
3130
Original file line number Diff line number Diff line change 2121 * 3. This notice may not be removed or altered from any source distribution.
2222 */
2323
24- #include "module .h"
24+ #include "util .h"
2525#include "connection.h"
2626
2727int
You can’t perform that action at this time.
0 commit comments