Lines Matching refs:r1
706 getancestor(r1, r2)
707 char const *r1, *r2;
708 /* Yield the common ancestor of r1 and r2 if successful, 0 otherwise.
709 * Work reliably only if r1 and r2 are not branch numbers.
717 l1 = countnumflds(r1);
719 if ((2<l1 || 2<l2) && cmpnum(r1,r2)!=0) {
722 while (cmpnumfld(r1, r2, l3+1)==0 && cmpnumfld(r1, r2, l3+2)==0)
724 /* This will terminate since r1 and r2 are not the same; see above. */
727 VOID partialno(&t1, r1, l1>2 ? 2 : l1);
730 if (cmpnum(r,r1)!=0 && cmpnum(r,r2)!=0)
732 } else if (cmpnumfld(r1, r2, l3+1)!=0)
733 return partialno(&t1,r1,l3);
735 rcserror("common ancestor of %s and %s undefined", r1, r2);