Lines Matching refs:centry

112 	NODE *centry, *last, *pathparent, *cur;  in spec()  local
119 centry = last = NULL; in spec()
207 if ((centry = calloc(1, sizeof(NODE) + strlen(p))) == NULL) in spec()
209 *centry = ginfo; in spec()
210 centry->lineno = mtree_lineno; in spec()
211 strcpy(centry->name, p); in spec()
214 centry->flags |= F_MAGIC; in spec()
215 set(next, centry); in spec()
225 if (strcmp(centry->name, ".") == 0 && centry->type == 0) in spec()
226 centry->type = F_DIR; in spec()
227 if (strcmp(centry->name, ".") != 0 || in spec()
228 centry->type != F_DIR) in spec()
231 last = root = centry; in spec()
237 centry->parent = pathparent; in spec()
238 addchild(pathparent, centry); in spec()
239 last = centry; in spec()
240 } else if (strcmp(centry->name, ".") == 0) { in spec()
244 replacenode(root, centry); in spec()
250 centry->parent = last; in spec()
251 addchild(last, centry); in spec()
252 last = centry; in spec()
259 centry->parent = last->parent; in spec()
260 addchild(last->parent, centry); in spec()
261 last = centry; in spec()
720 addchild(NODE *pathparent, NODE *centry) in addchild() argument
737 pathparent->child = centry; in addchild()
751 if (strcmp(centry->name, cur->name) == 0) { in addchild()
755 cmp = nodecmp(centry, cur); in addchild()
780 replacenode(samename, centry); in addchild()
803 centry = samename; in addchild()
804 if (centry->prev) in addchild()
805 centry->prev->next = centry->next; in addchild()
808 pathparent->child = centry->next; in addchild()
809 assert(centry->next != NULL); in addchild()
811 if (centry->next) in addchild()
812 centry->next->prev = centry->prev; in addchild()
813 centry->prev = NULL; in addchild()
814 centry->next = NULL; in addchild()
819 pathparent->child->prev = centry; in addchild()
820 centry->next = pathparent->child; in addchild()
821 centry->prev = NULL; in addchild()
822 pathparent->child = centry; in addchild()
825 centry->next = insertpos->next; in addchild()
826 insertpos->next = centry; in addchild()
827 centry->prev = insertpos; in addchild()
828 if (centry->next) in addchild()
829 centry->next->prev = centry; in addchild()