diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-14 20:43:56 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-14 20:43:56 +0200 |
| commit | 8430dbf041ce70dcba81101678beee0492252fd2 (patch) | |
| tree | 847a3e2de1f485c685d9b627c4be1869aa514b4f /python/apt_pkgmodule.h | |
| parent | e3745827634d8334f796a1506e575ab6f5efdaee (diff) | |
| download | python-apt-8430dbf041ce70dcba81101678beee0492252fd2.tar.gz | |
python/configuration.cc: Unify all Configuration,ConfigurationPtr,ConfigurationSub into one type.
This makes the whole API easier. The disadvantage is that we require 8 bytes (??) more per
object for the owner object pointer, which is NULL for most cases (the only exception being
objects created by Configuration.sub_tree).
Diffstat (limited to 'python/apt_pkgmodule.h')
| -rw-r--r-- | python/apt_pkgmodule.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/python/apt_pkgmodule.h b/python/apt_pkgmodule.h index 7b835ca8..f77c5e73 100644 --- a/python/apt_pkgmodule.h +++ b/python/apt_pkgmodule.h @@ -14,12 +14,8 @@ #include <apt-pkg/hashes.h> // Configuration Stuff -#define Configuration_Check(op) ((op)->ob_type == &PyConfiguration_Type || \ - (op)->ob_type == &PyConfigurationPtr_Type || \ - (op)->ob_type == &PyConfigurationSub_Type) +#define Configuration_Check(op) ((op)->ob_type == &PyConfiguration_Type) extern PyTypeObject PyConfiguration_Type; -extern PyTypeObject PyConfigurationPtr_Type; -extern PyTypeObject PyConfigurationSub_Type; extern PyTypeObject PyVersion_Type; extern char *doc_LoadConfig; |
