Lines Matching refs:p2
409 prog_t *p1, *p2;
413 for (p1 = NULL, p2 = progs; p2 != NULL; p1 = p2, p2 = p2->next)
414 if (!strcmp(p2->name, progname))
417 p2 = malloc(sizeof(prog_t));
418 if(p2) {
419 memset(p2, 0, sizeof(prog_t));
420 p2->name = strdup(progname);
422 if (!p2 || !p2->name)
425 p2->next = NULL;
427 progs = p2;
429 p1->next = p2;
431 p2->ident = NULL;
432 p2->srcdir = NULL;
433 p2->realsrcdir = NULL;
434 p2->objdir = NULL;
435 p2->links = NULL;
436 p2->libs = NULL;
437 p2->libs_so = NULL;
438 p2->objs = NULL;
439 p2->keeplist = NULL;
440 p2->buildopts = NULL;
441 p2->goterror = 0;
805 prog_t *p1, *p2;
807 p1 = NULL; p2 = progs;
808 while (p2 != NULL) {
809 if (!p2->goterror)
810 p1 = p2, p2 = p2->next;
814 infilename, p2->name);
816 p1->next = p2->next;
818 progs = p2->next;
819 p2 = p2->next;
1186 strlst_t *p1, *p2;
1190 for (p1 = NULL, p2 = *listp; p2 != NULL; p1 = p2, p2 = p2->next)
1191 if (!strcmp(p2->str, str))
1194 p2 = malloc(sizeof(strlst_t));
1195 if (p2) {
1196 p2->next = NULL;
1197 p2->str = strdup(str);
1199 if (!p2 || !p2->str)
1203 *listp = p2;
1205 p1->next = p2;