- scareMem = 0 everywhere, document deprecation phase out.
authorjbj <devnull@localhost>
Sun, 28 Mar 2004 16:07:26 +0000 (16:07 +0000)
committerjbj <devnull@localhost>
Sun, 28 Mar 2004 16:07:26 +0000 (16:07 +0000)
CVS patchset: 7203
CVS date: 2004/03/28 16:07:26

CHANGES
lib/rpmds.h
lib/rpmfi.c
lib/rpmfi.h

diff --git a/CHANGES b/CHANGES
index 88533f8..f07a2f6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,7 @@
 4.3.1 -> 4.4:
        - use package build time as EVR comparison tie breaker.
        - fix: don't add leading space to %* argv expansion (#119059).
+       - scareMem = 0 everywhere, document deprecation phase out.
 
 4.3 -> 4.3.1:
 
index eddcd32..ff253be 100644 (file)
@@ -107,6 +107,7 @@ rpmds rpmdsFree(/*@killref@*/ /*@only@*/ /*@null@*/ rpmds ds)
        /*@modifies ds@*/;
 /**
  * Create and load a dependency set.
+ * @deprecated Only scareMem = 0 will be permitted.
  * @param h            header
  * @param tagN         type of dependency
  * @param scareMem     Use pointers to refcounted header memory?
index d7152cb..70ad753 100644 (file)
@@ -1435,7 +1435,7 @@ fprintf(stderr, "*** fi %p\t%s[%d]\n", fi, Type, (fi ? fi->fc : 0));
 void rpmfiBuildFClasses(Header h,
        /*@out@*/ const char *** fclassp, /*@out@*/ int * fcp)
 {
-    int scareMem = 1;
+    int scareMem = 0;
     rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem);
     const char * FClass;
     const char ** av;
@@ -1490,7 +1490,7 @@ exit:
 void rpmfiBuildFContexts(Header h,
        /*@out@*/ const char *** fcontextp, /*@out@*/ int * fcp)
 {
-    int scareMem = 1;
+    int scareMem = 0;
     rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem);
     const char * fcontext;
     const char ** av;
@@ -1545,7 +1545,7 @@ exit:
 void rpmfiBuildFSContexts(Header h,
        /*@out@*/ const char *** fcontextp, /*@out@*/ int * fcp)
 {
-    int scareMem = 1;
+    int scareMem = 0;
     rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem);
     const char ** av;
     int ac;
@@ -1616,7 +1616,7 @@ exit:
 void rpmfiBuildREContexts(Header h,
        /*@out@*/ const char *** fcontextp, /*@out@*/ int * fcp)
 {
-    int scareMem = 1;
+    int scareMem = 0;
     rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem);
     rpmsx sx = NULL;
     const char ** av;
@@ -1694,7 +1694,7 @@ exit:
 void rpmfiBuildFDeps(Header h, rpmTag tagN,
        /*@out@*/ const char *** fdepsp, /*@out@*/ int * fcp)
 {
-    int scareMem = 1;
+    int scareMem = 0;
     rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem);
     rpmds ds = NULL;
     const char ** av;
index c3869d3..3a3bf91 100644 (file)
@@ -498,6 +498,7 @@ rpmfi rpmfiFree(/*@killref@*/ /*@only@*/ /*@null@*/ rpmfi fi)
 
 /**
  * Create and load a file info set.
+ * @deprecated Only scareMem = 0 will be permitted.
  * @param ts           transaction set (NULL skips path relocation)
  * @param h            header
  * @param tagN         RPMTAG_BASENAMES