version 1.12, 2010/07/23 21:46:05 |
version 1.13, 2011/05/20 19:21:10 |
|
|
} |
} |
|
|
/* |
/* |
* 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>. |