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

Diff for /src/usr.bin/rcs/rcsnum.c between version 1.12 and 1.13

version 1.12, 2010/07/23 21:46:05 version 1.13, 2011/05/20 19:21:10
Line 351 
Line 351 
 }  }
   
 /*  /*
  * rcsnum_dec()  
  *  
  * Decreases the revision number specified in <num>, if doing so will not  
  * result in an ending value below 1. E.g. 4.2 will go to 4.1 but 4.1 will  
  * be returned as 4.1.  
  */  
 RCSNUM *  
 rcsnum_dec(RCSNUM *num)  
 {  
         /* XXX - Is it an error for the number to be 0? */  
         if (num->rn_id[num->rn_len - 1] <= 1)  
                 return (num);  
         num->rn_id[num->rn_len - 1]--;  
         return (num);  
 }  
   
 /*  
  * rcsnum_revtobr()   * rcsnum_revtobr()
  *   *
  * Retrieve the branch number associated with the revision number <num>.   * Retrieve the branch number associated with the revision number <num>.

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13