Lines Matching defs:ap
263 freeAttr(struct nodeStruct *ap)
267 value = ap->nodeValue.attr.value;
271 FREENODE(ap);
1046 struct nodeStruct *cp, *ip, *ap;
1085 for (ap = ip->head;
1086 ap;
1087 ap = ap->next)
1089 (void)fprintf(fp, " %s=", ap->name);
1090 writeString(fp, ap->nodeValue.attr.value);
1091 if (ap->next)
1131 for (ap = ip->head;
1132 ap;
1133 ap = ap->next)
1135 (void)fprintf(fp, " %s=", ap->name);
1136 writeString(fp, ap->nodeValue.attr.value);
1137 if (ap->next)
1379 struct nodeStruct *cp, *ip, *ap;
1399 ap = searchNodeList(ip->head, attribute);
1400 if (ap) {
1401 if (ap->nodeValue.attr.value)
1402 freeMem(ap->nodeValue.attr.value);
1404 ap = (struct nodeStruct *)
1406 if (!ap)
1408 ap->name = dupString(attribute);
1409 if (!ap->name) {
1410 freeMem(ap);
1413 ap->hashValue = hashValue(attribute);
1414 ap->parent = ip;
1415 ap->head = NULL;
1416 ap->tail = NULL;
1417 ap->nodeFree = freeAttr;
1420 ip->head = ap;
1422 ap->prev = ip->tail;
1423 ap->next = NULL;
1426 ip->tail->next = ap;
1428 ip->tail = ap;
1431 ap->nodeValue.attr.value = dupString(value);
1432 if (!ap->nodeValue.attr.value) {
1433 freeAttr(ap);
1555 struct nodeStruct *ip, *ap;
1567 for (ap = ip->head; ap; ap=ap->next)
1572 for (ptr=replyPtr, ap=ip->head;
1573 ap;
1574 ptr++, ap=ap->next)
1576 ptr->attribute = dupString(ap->name);
1577 ptr->value = dupString(ap->nodeValue.attr.value);
1651 struct nodeStruct *ap;
1656 ap = searchAttr(class, name, attribute);
1657 if (ap)
1658 return(dupString(ap->nodeValue.attr.value));