Searched refs:need_slash (Results 1 – 6 of 6) sorted by relevance
118 int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0; in open_file() local119 char *origpath = new char[(end - p) + need_slash + namelen + 1]; in open_file()121 if (need_slash) in open_file()123 strcpy(origpath + (end - p) + need_slash, name); in open_file()175 int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0; in open_file_cautious() local176 char *origpath = new char[(end - p) + need_slash + namelen + 1]; in open_file_cautious()178 if (need_slash) in open_file_cautious()180 strcpy(origpath + (end - p) + need_slash, name); in open_file_cautious()
86 int need_slash = strchr(DIR_SEPS, *tem_end) == NULL ? 1 : 0; in temp_init() local87 char *tem2 = new char[tem_len + need_slash + 1]; in temp_init()89 if (need_slash) in temp_init()96 tmpfile_prefix_len = tem_len + need_slash + strlen(tem3); in temp_init()
107 int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0; in searchpath() local108 path = new char[end - p + need_slash + namelen + 1]; in searchpath()110 if (need_slash) in searchpath()112 strcpy(path + (end - p) + need_slash, name); in searchpath()
53 int need_slash = in concatenated_pathname() local56 result = (char *) xmalloc (directory_len + need_slash in concatenated_pathname()62 if (need_slash) in concatenated_pathname()
447 int need_slash = (cwd[0] != 0 in munge_filename() local449 int len = strlen(cwd) + strlen(filename) + need_slash + 1; in munge_filename()456 if (need_slash) in munge_filename()