Removed all the rpm 3.0 support logic #if/#endif blocks. rpm 3.0 is no longer
authorrjray <devnull@localhost>
Thu, 11 Apr 2002 22:42:08 +0000 (22:42 +0000)
committerrjray <devnull@localhost>
Thu, 11 Apr 2002 22:42:08 +0000 (22:42 +0000)
supported.

CVS patchset: 5395
CVS date: 2002/04/11 22:42:08

Perl-RPM/RPM.h

index 8e629b5cf2d17f0f639b1fb2a29abcd0cccfcaf8..2061e2e1b12cb0cd25d414de08da5cc14b16029f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: RPM.h,v 1.17 2002/01/23 00:58:48 jbj Exp $
+ * $Id: RPM.h,v 1.18 2002/04/11 22:42:08 rjray Exp $
  *
  * Various C-specific decls/includes/etc. for the RPM linkage
  */
 #    define newSVpvn(a,b)       newSVpv(a,b)
 #endif
 
-/* XXX Certain constants moved in rpm-4.0.3 to a developing CLI API */
-#if RPM_MAJOR >= 4 && RPM_MINOR >= 0 && RPM_PATCH >= 3
 #include <rpmcli.h>
-#endif
-
 #include <rpmlib.h>
-#if RPM_MAJOR < 4
-#  include <header.h>
-#  include <dbindex.h>
-#endif
 
 /* Various flags. For now, one nybble for header and one for package. */
 #define RPM_HEADER_MASK        0x0f
 typedef struct {
     rpmdb dbp;
     int current_rec;
-#if RPM_MAJOR < 4
-    dbiIndexSet* index_set;
-#else
     int noffs;
     int offx;
     int* offsets;
-#endif
     /* This HV will be used to cache key/value pairs to avoid re-computing */
     HV* storage;
 } RPM_Database;
@@ -149,8 +137,8 @@ typedef HV* RPM__Header;
 /*
   This is the underlying struct that implements the interface to the RPM
   packages. As above, we need the actual object to be a hash, so the struct
-  will be stored as an SV on the same sort of special key as RPM__Database
-  and RPM__Header use.
+  will be stored as an SV on the same sort of special key as RPM__Database and
+  RPM__Header use.
 */
 
 typedef struct {