| D | tsort.c | 1 /* tsort.c - topological sort dependency resolver 46 char *ss, **pair, *keep[2]; in do_tsort() local 58 // keep-1 but the compiler clutches its pearls about this even when in do_tsort() 62 sigh = ((unsigned long)keep)-sizeof(*keep); in do_tsort() 73 // get dependency pair list, null terminate strings, mark depends-on-self in do_tsort() 81 if ((len&1) && !strcmp(pair[len], pair[len-1])) pair[len] = pair[len-1]; in do_tsort() 87 qsort(pair, count, sizeof(keep), (void *)sbse); in do_tsort() 94 memcpy(keep, pair+2*ii, sizeof(keep)); in do_tsort() 95 // The compiler won't shut up about keep-1 no matter how we typecast it. in do_tsort() 96 if (keep[0]!=keep[1] && bsearch((void *)sigh, pair, count, sizeof(keep), in do_tsort() [all …]
|