/* --------------------------------------------------------------------- */
-#include <stddef.h> /* for offsetof() */
#include <Python.h>
+#include <stddef.h> /* for offsetof() */
#include <db.h>
/* --------------------------------------------------------------------- */
#endif
#define PY_BSDDB_VERSION "4.2.4"
-static char *rcs_id = "$Id: _rpmdb.c,v 1.11 2003/12/16 03:41:35 jbj Exp $";
+static char *rcs_id = "$Id: _rpmdb.c,v 1.12 2004/01/01 16:34:10 jbj Exp $";
#ifdef WITH_THREAD
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include "rpmio_internal.h"
#include "rpmcli.h" /* XXX for rpmCheckSig */
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmlib.h>
#include "rpmal-py.h"
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmlib.h>
#include "rpmdb-py.h"
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmlib.h>
#include "header-py.h"
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <glob.h> /* XXX rpmio.h */
#include <dirent.h> /* XXX rpmio.h */
#include <rpmio_internal.h>
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmlib.h>
#include "header-py.h"
#include "system.h"
-#include "Python.h"
#include "structmember.h"
#ifdef __LCLINT__
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmlib.h>
#include <rpmdb.h>
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmio_internal.h>
#include <rpmcli.h> /* XXX for rpmCheckSig */
#include <rpmdb.h>
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include "structmember.h"
#include "rpmdebug-py.c"
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmlib.h>
#include "header-py.h" /* XXX tagNumFromPyObject */
#include "system.h"
-#include "Python.h"
-#ifdef __LCLINT__
-#undef PyObject_HEAD
-#define PyObject_HEAD int _PyObjectHead;
-#endif
-
#include <rpmcli.h>
#include <rpmpgp.h>
#include <rpmdb.h>
--- /dev/null
+/** \ingroup py_c
+ * \file python/system.h
+ */
+
+#ifndef H_SYSTEM_PYTHON
+#define H_SYSTEM_PYTHON
+
+#include "Python.h"
+
+#ifdef __LCLINT__
+#undef PyObject_HEAD
+#define PyObject_HEAD int _PyObjectHead;
+#endif
+
+#include "../system.h"
+
+#endif /* H_SYSTEM_PYTHON */