Lines Matching refs:cp

480     char *cp;
483 for (cp = name; *cp; cp++) {
484 switch(*cp) {
590 const char *cp; /* Current position in brace clause */
623 for (cp = start; cp < end; cp++) {
628 while (*cp != ',') {
629 if (*cp == '{') {
631 } else if ((*cp == '}') && (bracelevel-- <= 0)) {
634 cp++;
639 file = bmake_malloc(otherLen + cp - start + 1);
643 if (cp != start) {
644 strncpy(&file[brace-word], start, cp-start);
646 strcpy(&file[(brace-word)+(cp-start)], end);
673 start = cp+1;
758 const char *cp;
764 cp = strchr(word, '{');
765 if (cp) {
766 DirExpandCurly(word, cp, path, expansions);
768 cp = strchr(word, '/');
769 if (cp) {
774 for (cp = word; *cp; cp++) {
775 if (*cp == '?' || *cp == '[' || *cp == '*' || *cp == '{') {
779 if (*cp == '{') {
783 DirExpandCurly(word, cp, path, expansions);
785 } else if (*cp != '\0') {
791 while (cp > word && *cp != '/') {
792 cp--;
794 if (cp != word) {
800 sc = cp[1];
801 ((char *)UNCONST(cp))[1] = '\0';
803 ((char *)UNCONST(cp))[1] = sc;
817 DirExpandInt(cp+1, path, expansions);
864 DirLookup(Path *p, const char *name MAKE_ATTR_UNUSED, const char *cp,
873 if (Hash_FindEntry(&p->files, cp) == NULL)
876 file = str_concat(p->name, cp, STR_ADDSLASH);
956 DirLookupAbs(Path *p, const char *name, const char *cp)
974 if (*p1 != '\0' || p2 != cp - 1) {
978 if (Hash_FindEntry(&p->files, cp) == NULL) {
1008 DirFindDot(Boolean hasSlash MAKE_ATTR_UNUSED, const char *name, const char *cp)
1011 if (Hash_FindEntry(&dot->files, cp) != NULL) {
1020 Hash_FindEntry(&cur->files, cp) != NULL) {
1026 return str_concat(cur->name, cp, STR_ADDSLASH);
1060 const char *cp; /* Terminal name of file */
1071 cp = strrchr(name, '/');
1072 if (cp) {
1074 cp += 1;
1077 cp = name;
1109 if (!hasSlash || (cp - name == 2 && *name == '.')) {
1125 (file = DirFindDot(hasSlash, name, cp)) != NULL) {
1134 if ((file = DirLookup(p, name, cp, hasSlash)) != NULL) {
1141 (file = DirFindDot(hasSlash, name, cp)) != NULL) {
1170 if (*cp == '\0') {
1172 cp = trailing_dot;
1245 if (!hasLastDot && cur && (file = DirLookupAbs(cur, name, cp)) != NULL)
1253 if ((file = DirLookupAbs(p, name, cp)) != NULL) {
1260 if (hasLastDot && cur && (file = DirLookupAbs(cur, name, cp)) != NULL)
1282 if (cp == traling_dot) {
1283 cp = strrchr(name, '/');
1284 cp += 1;
1286 cp[-1] = '\0';
1288 cp[-1] = '/';
1298 if (Hash_FindEntry(&p->files, cp) != NULL) {
1450 char *cp;
1452 cp = strrchr(gn->name, '/');
1453 if (cp) {
1458 cp++;
1460 fullName = Dir_FindFile(cp, Suff_FindPath(gn));