Lines Matching defs:curr_prefix
45 char *curr_prefix = 0;
165 curr_prefix = new char[path_name_max()];
170 int len = GetModuleFileName(0, curr_prefix, path_name_max());
172 len = GetShortPathName(curr_prefix, curr_prefix, path_name_max());
174 fprintf(stderr, "curr_prefix: %s\n", curr_prefix);
177 curr_prefix = searchpath(program_name, getenv("PATH"));
178 if (!curr_prefix && !strchr(program_name, '.')) { // try with extensions
182 curr_prefix = searchpathext(program_name, pathextstr, getenv("PATH"));
185 if (!curr_prefix)
188 msw2posixpath(curr_prefix);
190 fprintf(stderr, "curr_prefix: %s\n", curr_prefix);
192 curr_prefix = xdirname(curr_prefix); // directory of executable
193 curr_prefix = xdirname(curr_prefix); // parent directory of executable
194 curr_prefix_len = strlen(curr_prefix);
196 fprintf(stderr, "curr_prefix: %s\n", curr_prefix);
210 if (!curr_prefix)
217 strcpy(relocated_path, curr_prefix);