Home
last modified time | relevance | path

Searched refs:need_slash (Results 1 – 6 of 6) sorted by relevance

/netbsd-src/external/gpl2/groff/dist/src/libs/libgroff/
H A Dsearchpath.cpp118 int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0; in open_file() local
119 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() local
176 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()
H A Dtmpfile.cpp86 int need_slash = strchr(DIR_SEPS, *tem_end) == NULL ? 1 : 0; in temp_init() local
87 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()
H A Drelocate.cpp107 int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0; in searchpath() local
108 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()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Dconcatpath.c53 int need_slash = in concatenated_pathname() local
56 result = (char *) xmalloc (directory_len + need_slash in concatenated_pathname()
62 if (need_slash) in concatenated_pathname()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dconcatpath.c53 int need_slash = in concatenated_pathname() local
56 result = (char *) xmalloc (directory_len + need_slash in concatenated_pathname()
62 if (need_slash) in concatenated_pathname()
/netbsd-src/external/gpl2/groff/dist/src/libs/libbib/
H A Dindex.cpp447 int need_slash = (cwd[0] != 0 in munge_filename() local
449 int len = strlen(cwd) + strlen(filename) + need_slash + 1; in munge_filename()
456 if (need_slash) in munge_filename()