summaryrefslogtreecommitdiff
path: root/psycopg/adapter_pdecimal.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-12 10:55:19 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-12 13:39:32 +0000
commit6d7916cfe12657408103ed20100436b64fb2b163 (patch)
tree673f3a608dd2ae55f34df902119d4baa9b258162 /psycopg/adapter_pdecimal.c
parent9fa1eac2b49a799eda0e4d00c903e5e9a683931a (diff)
downloadpsycopg2-6d7916cfe12657408103ed20100436b64fb2b163.tar.gz
Internal imports simplified.
.c files only need to import psycopg.h: it will in turn import dependencies from Python and libpq and configure.h. psycopg.h should be the first to be imported, so the basic imports are not required in the .h's As a guideline I'm trying to import from the most specific to the most generic to detect missing imports in the .h's.
Diffstat (limited to 'psycopg/adapter_pdecimal.c')
-rw-r--r--psycopg/adapter_pdecimal.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/psycopg/adapter_pdecimal.c b/psycopg/adapter_pdecimal.c
index 347461a..b9850b4 100644
--- a/psycopg/adapter_pdecimal.c
+++ b/psycopg/adapter_pdecimal.c
@@ -23,19 +23,16 @@
* License for more details.
*/
-#define PY_SSIZE_T_CLEAN
-#include <Python.h>
-#include <structmember.h>
-#include <floatobject.h>
-#include <math.h>
-
#define PSYCOPG_MODULE
-#include "psycopg/config.h"
-#include "psycopg/python.h"
#include "psycopg/psycopg.h"
+
#include "psycopg/adapter_pdecimal.h"
#include "psycopg/microprotocols_proto.h"
+#include <structmember.h>
+#include <floatobject.h>
+#include <math.h>
+
/** the Decimal object **/