[BACK]Return to rcs.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/rcs.c between version 1.42 and 1.43

version 1.42, 2005/04/07 20:50:22 version 1.43, 2005/04/07 22:08:57
Line 201 
Line 201 
 static int   rcs_patch_lines     (struct rcs_foo *, struct rcs_foo *);  static int   rcs_patch_lines     (struct rcs_foo *, struct rcs_foo *);
 static int   rcs_strprint        (const u_char *, size_t, FILE *);  static int   rcs_strprint        (const u_char *, size_t, FILE *);
   
 static struct rcs_delta*  rcs_findrev    (RCSFILE *, RCSNUM *);  static struct rcs_delta*  rcs_findrev    (RCSFILE *, const RCSNUM *);
 static struct rcs_foo*    rcs_splitlines (const char *);  static struct rcs_foo*    rcs_splitlines (const char *);
 static void               rcs_freefoo    (struct rcs_foo *);  static void               rcs_freefoo    (struct rcs_foo *);
   
Line 441 
Line 441 
 }  }
   
 /*  /*
    * rcs_head_get()
    *
    * Retrieve the revision number of the head revision for the RCS file <file>.
    */
   const RCSNUM*
   rcs_head_get(RCSFILE *file)
   {
           return (file->rf_head);
   }
   
   /*
    * rcs_head_set()
    *
    * Set the revision number of the head revision for the RCS file <file> to
    * <rev>, which must reference a valid revision within the file.
    */
   int
   rcs_head_set(RCSFILE *file, const RCSNUM *rev)
   {
           struct rcs_delta *rd;
   
           if ((rd = rcs_findrev(file, rev)) == NULL)
                   return (-1);
   
           if (rcsnum_cpy(rev, file->rf_head, 0) < 0)
                   return (-1);
   
           return (0);
   }
   
   
   /*
  * rcs_branch_get()   * rcs_branch_get()
  *   *
  * Retrieve the default branch number for the RCS file <file>.   * Retrieve the default branch number for the RCS file <file>.
Line 1096 
Line 1128 
  * Returns a pointer to the delta on success, or NULL on failure.   * Returns a pointer to the delta on success, or NULL on failure.
  */   */
 static struct rcs_delta*  static struct rcs_delta*
 rcs_findrev(RCSFILE *rfp, RCSNUM *rev)  rcs_findrev(RCSFILE *rfp, const RCSNUM *rev)
 {  {
         u_int cmplen;          u_int cmplen;
         struct rcs_delta *rdp;          struct rcs_delta *rdp;
Line 1827 
Line 1859 
                         return (-1);                          return (-1);
                 }                  }
   
                 TAILQ_INSERT_HEAD(&(rfp->rf_symbols), symp, rs_list);                  TAILQ_INSERT_TAIL(&(rfp->rf_symbols), symp, rs_list);
         }          }
   
         return (0);          return (0);

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43