version 1.6, 2004/09/15 22:20:03 |
version 1.7, 2005/10/17 19:08:46 |
|
|
continue; |
continue; |
*t = '\0'; |
*t = '\0'; |
|
|
for (tp = head.tqh_first; /* Find any matching tag. */ |
for (tp = TAILQ_FIRST(&head); /* Find any matching tag. */ |
tp != NULL && strcmp(p, tp->s); tp = tp->q.tqe_next); |
tp != NULL && strcmp(p, tp->s); tp = TAILQ_NEXT(tp, q)); |
|
|
if (tp == NULL) /* Create a new tag. */ |
if (tp == NULL) /* Create a new tag. */ |
tp = addlist(p); |
tp = addlist(p); |
|
|
{ |
{ |
TAG *tp; |
TAG *tp; |
|
|
for (tp = head.tqh_first; tp != NULL; tp = tp->q.tqe_next) |
TAILQ_FOREACH(tp, &head, q) |
if (!strcmp(name, tp->s)) |
if (!strcmp(name, tp->s)) |
return (tp); |
return (tp); |
return (NULL); |
return (NULL); |