• Home
  • Raw
  • Download

Lines Matching refs:dirend

745   char *dirend;  in file_exists_p()  local
755 dirend = strrchr (name, ']'); in file_exists_p()
756 if (dirend == 0) in file_exists_p()
757 dirend = strrchr (name, ':'); in file_exists_p()
758 if (dirend == (char *)0) in file_exists_p()
761 dirend = strrchr (name, '/'); in file_exists_p()
766 if (!dirend || bslash > dirend) in file_exists_p()
767 dirend = bslash; in file_exists_p()
769 if (!dirend && name[0] && name[1] == ':') in file_exists_p()
770 dirend = name + 1; in file_exists_p()
773 if (dirend == 0) in file_exists_p()
781 slash = dirend; in file_exists_p()
782 if (dirend == name) in file_exists_p()
788 if (dirend < name + 3 && name[1] == ':' && in file_exists_p()
789 (*dirend == '/' || *dirend == '\\' || *dirend == ':')) in file_exists_p()
790 dirend++; in file_exists_p()
792 dirname = (char *) alloca (dirend - name + 1); in file_exists_p()
793 bcopy (name, dirname, dirend - name); in file_exists_p()
794 dirname[dirend - name] = '\0'; in file_exists_p()
806 char *dirend; in file_impossible() local
812 dirend = strrchr (p, ']'); in file_impossible()
813 if (dirend == 0) in file_impossible()
814 dirend = strrchr (p, ':'); in file_impossible()
815 dirend++; in file_impossible()
816 if (dirend == (char *)1) in file_impossible()
819 dirend = strrchr (p, '/'); in file_impossible()
824 if (!dirend || bslash > dirend) in file_impossible()
825 dirend = bslash; in file_impossible()
827 if (!dirend && p[0] && p[1] == ':') in file_impossible()
828 dirend = p + 1; in file_impossible()
831 if (dirend == 0) in file_impossible()
841 char *slash = dirend; in file_impossible()
842 if (dirend == p) in file_impossible()
848 if (dirend < p + 3 && p[1] == ':' && in file_impossible()
849 (*dirend == '/' || *dirend == '\\' || *dirend == ':')) in file_impossible()
850 dirend++; in file_impossible()
852 dirname = (char *) alloca (dirend - p + 1); in file_impossible()
853 bcopy (p, dirname, dirend - p); in file_impossible()
854 dirname[dirend - p] = '\0'; in file_impossible()
889 char *dirend; in file_impossible_p() local
896 dirend = strrchr (filename, ']'); in file_impossible_p()
897 if (dirend == 0) in file_impossible_p()
900 dirend = strrchr (filename, '/'); in file_impossible_p()
905 if (!dirend || bslash > dirend) in file_impossible_p()
906 dirend = bslash; in file_impossible_p()
908 if (!dirend && filename[0] && filename[1] == ':') in file_impossible_p()
909 dirend = filename + 1; in file_impossible_p()
912 if (dirend == 0) in file_impossible_p()
922 char *slash = dirend; in file_impossible_p()
923 if (dirend == filename) in file_impossible_p()
929 if (dirend < filename + 3 && filename[1] == ':' && in file_impossible_p()
930 (*dirend == '/' || *dirend == '\\' || *dirend == ':')) in file_impossible_p()
931 dirend++; in file_impossible_p()
933 dirname = (char *) alloca (dirend - filename + 1); in file_impossible_p()
934 bcopy (p, dirname, dirend - p); in file_impossible_p()
935 dirname[dirend - p] = '\0'; in file_impossible_p()