Lines Matching refs:ipp
103 ipath_epnamecmp(struct ipath *ipp, struct node *np)
108 ASSERT(ipp != NULL);
110 for (i = 0; ipp[i].s != NULL && np != NULL; i++, np = np->u.name.next) {
113 if (ipp[i].s != np->u.name.s)
114 return (np->u.name.s - ipp[i].s);
124 if (ipp[i].i != inum)
125 return (inum - ipp[i].i);
129 if (ipp[i].s == NULL && np == NULL)
131 else if (ipp[i].s == NULL)
151 const struct ipath *ipp;
153 ipp = arrowp->head->myevent->ipp_un;
154 while (ipp->s != NULL) {
155 Usednames = lut_add(Usednames, (void *)ipp->s,
156 (void *)ipp->s, NULL);
157 ipp++;
159 ipp = arrowp->tail->myevent->ipp_un;
160 while (ipp->s != NULL) {
161 Usednames = lut_add(Usednames, (void *)ipp->s,
162 (void *)ipp->s, NULL);
163 ipp++;
168 ipath_dummy(struct node *np, struct ipath *ipp)
172 ret = ipp;
173 while (ipp[1].s != NULL)
174 ipp++;
175 if (strcmp(ipp[0].s, np->u.name.last->u.name.s) == 0)
182 if ((ipp = lut_lookup(Ipaths, (void *)ret,
185 return (ipp);
196 struct ipath *ret, *ipp;
208 if ((ipp = lut_lookup(Ipaths, (void *)ret,
211 return (ipp);
280 * if both ename and ipp are provided (non-NULL), the resulting string
287 ipath2str(const char *ename, const struct ipath *ipp)
299 if (ipp != NULL) {
300 for (i = 0; ipp[i].s != NULL; i++) {
304 len += snprintf(NULL, 0, "%s%d", ipp[i].s, ipp[i].i);
308 if (ename != NULL && ipp != NULL)
322 if (ename != NULL && ipp != NULL)
325 if (ipp != NULL) {
327 for (i = 0; ipp[i].s != NULL; i++) {
331 ipp[i].s, ipp[i].i);
342 ipathlastcomp(const struct ipath *ipp)
346 for (i = 0; ipp[i].s != NULL; i++)
349 out(O_ALTFP, "newfme: add %s to Usednames", ipp[i - 1].s);
350 Usednames = lut_add(Usednames, (void *)ipp[i - 1].s,
351 (void *)ipp[i - 1].s, NULL);
358 ipath2strlen(const char *ename, const struct ipath *ipp)
368 if (ipp != NULL) {
369 for (i = 0; ipp[i].s != NULL; i++) {
373 len += snprintf(NULL, 0, "%s%d", ipp[i].s, ipp[i].i);
377 if (ename != NULL && ipp != NULL)
387 ipath_print(int flags, const char *ename, const struct ipath *ipp)
391 if (ipp != NULL)
394 if (ipp != NULL) {
397 while (ipp->s != NULL) {
398 out(flags|O_NONL, "%s%s%d", sep, ipp->s, ipp->i);
399 ipp++;
409 struct ipath *ipp = (struct ipath *)right;
411 FREE(ipp);