Lines Matching refs:cp

206 freeClass(struct nodeStruct *cp)
208 if (cp->head)
209 freeNodeList(cp->head);
211 FREENODE(cp);
376 struct nodeStruct *cp;
378 cp = searchClass(class);
379 if (cp && cp->head)
380 return(searchNodeList(cp->head, name));
417 struct nodeStruct *cp;
419 cp = (struct nodeStruct *)allocMem(sizeof(struct nodeStruct));
420 if (!cp)
422 cp->name = dupString(class);
423 if (!cp->name) {
424 freeMem(cp);
427 cp->hashValue = hashValue(class);
428 cp->parent = &OWconfigDatabase;
429 cp->head = NULL;
430 cp->tail = NULL;
431 cp->nodeFree = freeClass;
434 OWconfigDatabase.head = cp;
437 cp->prev = OWconfigDatabase.tail;
438 cp->next = NULL;
441 OWconfigDatabase.tail->next = cp;
443 OWconfigDatabase.tail = cp;
445 return(cp);
461 struct nodeStruct *cp, *ip;
463 cp = searchClass(class);
464 if (!cp) {
465 cp = createClass(class);
466 if (!cp) {
479 ip->parent = cp;
503 if (!cp->head) {
504 cp->head = ip;
507 ip->prev = cp->tail;
510 if (cp->tail)
511 cp->tail->next = ip;
513 cp->tail = ip;
1046 struct nodeStruct *cp, *ip, *ap;
1063 cp = ip->parent;
1080 writeString(fp, cp->name);
1108 for (cp = OWconfigDatabase.head;
1109 cp;
1110 cp = cp->next)
1112 for (ip = cp->head;
1126 writeString(fp, cp->name);
1266 struct nodeStruct *cp, *ip;
1272 cp = OWconfigDatabase.head;
1273 while (cp) {
1274 ip = cp->head;
1288 cp = cp->next;
1379 struct nodeStruct *cp, *ip, *ap;
1385 cp = searchClass(class);
1386 if (!cp) {
1387 cp = createClass(class);
1388 if (!cp)
1392 ip = searchNodeList(cp->head, name);
1466 struct nodeStruct *cp, *ip;
1473 cp = searchClass(class);
1474 if (!cp)
1478 for (ip=cp->head; ip; ip=ip->next)
1483 for (ptr=listOfString, ip=cp->head;