Lines Matching refs:nr

1008 	struct revlist *nr;
1010 nr = (struct revlist *) xmalloc (sizeof *nr);
1011 nr->inclusive = r->inclusive;
1017 nr->first = RCS_head (rcs);
1018 nr->last = xstrdup (nr->first);
1019 nr->fields = numdots (nr->first) + 1;
1027 nr->first = RCS_getbranch (rcs, r->first, 1);
1035 free (nr);
1038 nr->first = RCS_getbranch (rcs, branch, 1);
1041 if (nr->first == NULL)
1045 free (nr);
1048 nr->last = xstrdup (nr->first);
1049 nr->fields = numdots (nr->first) + 1;
1054 nr->first = xstrdup (r->first);
1058 nr->first = RCS_whatbranch (rcs, r->first);
1060 nr->first = RCS_gettag (rcs, r->first, 1, (int *) NULL);
1061 if (nr->first == NULL)
1065 free (nr);
1071 nr->last = xstrdup (nr->first);
1073 nr->last = xstrdup (r->last);
1077 nr->last = RCS_whatbranch (rcs, r->last);
1079 nr->last = RCS_gettag (rcs, r->last, 1, (int *) NULL);
1080 if (nr->last == NULL)
1084 if (nr->first != NULL)
1085 free (nr->first);
1086 free (nr);
1097 nr->fields = numdots (nr->last) + 1;
1098 if (nr->fields < 2)
1099 nr->first = xstrdup (".0");
1104 nr->first = xstrdup (nr->last);
1105 cp = strrchr (nr->first, '.');
1111 nr->fields = numdots (nr->first) + 1;
1112 nr->last = xstrdup (nr->first);
1113 if (nr->fields < 2)
1114 nr->last[0] = '\0';
1119 cp = strrchr (nr->last, '.');
1125 nr->fields = numdots (nr->first) + 1;
1126 if (nr->fields != numdots (nr->last) + 1
1127 || (nr->fields > 2
1128 && version_compare (nr->first, nr->last,
1129 nr->fields - 1) != 0))
1134 free (nr->first);
1135 free (nr->last);
1136 free (nr);
1139 if (version_compare (nr->first, nr->last, nr->fields) > 0)
1143 tmp = nr->first;
1144 nr->first = nr->last;
1145 nr->last = tmp;
1150 nr->next = NULL;
1151 *pr = nr;
1152 pr = &nr->next;
1160 struct revlist *nr;
1162 nr = (struct revlist *) xmalloc (sizeof *nr);
1164 nr->first = xstrdup (rcs->branch);
1169 nr->first = xstrdup (rcs->head);
1170 cp = strrchr (nr->first, '.');
1173 nr->last = xstrdup (nr->first);
1174 nr->fields = numdots (nr->first) + 1;
1175 nr->inclusive = 1;
1177 nr->next = NULL;
1178 *pr = nr;