Import structmember/stringobject headers from python.h.

stringobject is not to be imported with Python 3.
This commit is contained in:
Daniele Varrazzo 2010-12-13 02:24:33 +00:00
parent 9b30147341
commit 4635c2aa4f
18 changed files with 3 additions and 33 deletions

View File

@ -29,8 +29,6 @@
#include "psycopg/adapter_asis.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <stringobject.h>
#include <string.h>

View File

@ -30,8 +30,6 @@
#include "psycopg/microprotocols_proto.h"
#include "psycopg/connection.h"
#include <structmember.h>
#include <stringobject.h>
#include <string.h>

View File

@ -29,8 +29,6 @@
#include "psycopg/adapter_datetime.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <stringobject.h>
#include <datetime.h>
#include <time.h>

View File

@ -30,9 +30,6 @@
#include "psycopg/microprotocols.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <stringobject.h>
/* list_str, list_getquoted - return result of quoting */

View File

@ -30,8 +30,6 @@
#include "psycopg/adapter_mxdatetime.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <stringobject.h>
#include <mxDateTime.h>
#include <string.h>

View File

@ -29,8 +29,6 @@
#include "psycopg/adapter_pboolean.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <stringobject.h>
#include <string.h>

View File

@ -29,7 +29,6 @@
#include "psycopg/adapter_pdecimal.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <floatobject.h>
#include <math.h>

View File

@ -29,7 +29,6 @@
#include "psycopg/adapter_pfloat.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <floatobject.h>
#include <math.h>

View File

@ -30,8 +30,6 @@
#include "psycopg/adapter_qstring.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <stringobject.h>
#include <string.h>

View File

@ -33,9 +33,6 @@
#include "psycopg/green.h"
#include "psycopg/xid.h"
#include <structmember.h>
#include <stringobject.h>
#include <string.h>
#include <ctype.h>

View File

@ -34,7 +34,6 @@
#include "psycopg/microprotocols.h"
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <string.h>
#include <stdlib.h>

View File

@ -32,7 +32,6 @@
#include "psycopg/microprotocols_proto.h"
#include "psycopg/pqpath.h"
#include <structmember.h>
#include <string.h>

View File

@ -31,8 +31,6 @@
#include "psycopg/cursor.h"
#include "psycopg/connection.h"
#include <structmember.h>
/** the adapters registry **/

View File

@ -28,9 +28,6 @@
#include "psycopg/microprotocols_proto.h"
#include <structmember.h>
#include <stringobject.h>
#include <string.h>

View File

@ -28,8 +28,6 @@
#include "psycopg/notify.h"
#include <structmember.h>
static const char notify_doc[] =
"A notification received from the backend.\n\n"

View File

@ -27,6 +27,9 @@
#define PSYCOPG_PYTHON_H 1
#include <structmember.h>
#if PY_MAJOR_VERSION < 3
#include <stringobject.h>
#endif
#if PY_VERSION_HEX < 0x02040000
# error "psycopg requires Python >= 2.4"

View File

@ -26,8 +26,6 @@
#define PSYCOPG_MODULE
#include "psycopg/psycopg.h"
#include <structmember.h>
#include "psycopg/typecast.h"
#include "psycopg/cursor.h"

View File

@ -29,8 +29,6 @@
#include "psycopg/xid.h"
#include <structmember.h>
static const char xid_doc[] =
"A transaction identifier used for two-phase commit.\n\n"