• Home
  • Raw
  • Download

Lines Matching refs:wchar_t

126     wchar_t *path_env;                 /* PATH environment variable */
128 wchar_t *pythonpath_macro; /* PYTHONPATH macro */
129 wchar_t *prefix_macro; /* PREFIX macro */
130 wchar_t *exec_prefix_macro; /* EXEC_PREFIX macro */
131 wchar_t *vpath_macro; /* VPATH macro */
133 wchar_t *lib_python; /* <platlibdir> / "pythonX.Y" */
139 const wchar_t *pythonpath_env;
140 const wchar_t *platlibdir;
142 wchar_t *argv0_path;
143 wchar_t *zip_path;
144 wchar_t *prefix;
145 wchar_t *exec_prefix;
148 static const wchar_t delimiter[2] = {DELIM, '\0'};
149 static const wchar_t separator[2] = {SEP, '\0'};
154 _Py_wstat(const wchar_t* path, struct stat *buf) in _Py_wstat()
170 reduce(wchar_t *dir) in reduce()
182 isfile(const wchar_t *filename) in isfile()
197 isxfile(const wchar_t *filename) in isxfile()
215 isdir(const wchar_t *filename) in isdir()
236 joinpath(wchar_t *path, const wchar_t *path2, size_t path_len) in joinpath()
264 static wchar_t*
265 substring(const wchar_t *str, size_t len) in substring()
267 wchar_t *substr = PyMem_RawMalloc((len + 1) * sizeof(wchar_t)); in substring()
273 memcpy(substr, str, len * sizeof(wchar_t)); in substring()
280 static wchar_t*
281 joinpath2(const wchar_t *path, const wchar_t *path2) in joinpath2()
292 wchar_t *new_path = PyMem_RawMalloc((len + 1) * sizeof(wchar_t)); in joinpath2()
307 safe_wcscpy(wchar_t *dst, const wchar_t *src, size_t n) in safe_wcscpy()
314 memcpy(dst, src, (srclen + 1) * sizeof(wchar_t)); in safe_wcscpy()
322 copy_absolute(wchar_t *abs_path, const wchar_t *path, size_t abs_path_len) in copy_absolute()
351 absolutize(wchar_t **path_p) in absolutize()
355 wchar_t abs_path[MAXPATHLEN+1]; in absolutize()
356 wchar_t *path = *path_p; in absolutize()
374 ismodule(const wchar_t *path, int *result) in ismodule()
376 wchar_t *filename = joinpath2(path, LANDMARK); in ismodule()
389 wchar_t *pyc = PyMem_RawMalloc((len + 2) * sizeof(wchar_t)); in ismodule()
395 memcpy(pyc, filename, len * sizeof(wchar_t)); in ismodule()
414 add_exe_suffix(wchar_t **progpath_p) in add_exe_suffix()
416 wchar_t *progpath = *progpath_p; in add_exe_suffix()
425 wchar_t *progpath2 = PyMem_RawMalloc((n + s + 1) * sizeof(wchar_t)); in add_exe_suffix()
430 memcpy(progpath2, progpath, n * sizeof(wchar_t)); in add_exe_suffix()
431 memcpy(progpath2 + n, EXE_SUFFIX, s * sizeof(wchar_t)); in add_exe_suffix()
451 wchar_t *prefix, size_t prefix_len, int *found) in search_for_prefix()
461 wchar_t *delim = wcschr(prefix, DELIM); in search_for_prefix()
476 wchar_t *path = joinpath2(calculate->argv0_path, BUILD_LANDMARK); in search_for_prefix()
572 wchar_t prefix[MAXPATHLEN+1]; in calculate_prefix()
613 wchar_t *prefix = _PyMem_RawWcsdup(calculate->prefix); in calculate_set_prefix()
645 calculate_pybuilddir(const wchar_t *argv0_path, in calculate_pybuilddir()
646 wchar_t *exec_prefix, size_t exec_prefix_len, in calculate_pybuilddir()
656 wchar_t *filename = joinpath2(argv0_path, L"pybuilddir.txt"); in calculate_pybuilddir()
674 wchar_t *pybuilddir = _Py_DecodeUTF8_surrogateescape(buf, n, &dec_len); in calculate_pybuilddir()
700 wchar_t *exec_prefix, size_t exec_prefix_len, in search_for_exec_prefix()
708 wchar_t *delim = wcschr(pathconfig->home, DELIM); in search_for_exec_prefix()
796 wchar_t exec_prefix[MAXPATHLEN+1]; in calculate_exec_prefix()
814 wchar_t *lib_dynload = joinpath2(calculate->platlibdir, in calculate_exec_prefix()
844 wchar_t *exec_prefix = _PyMem_RawWcsdup(calculate->exec_prefix); in calculate_set_exec_prefix()
881 calculate_which(const wchar_t *path_env, wchar_t *program_name, in calculate_which()
882 wchar_t **abs_path_p) in calculate_which()
885 wchar_t *delim = wcschr(path_env, DELIM); in calculate_which()
886 wchar_t *abs_path; in calculate_which()
889 wchar_t *path = substring(path_env, delim - path_env); in calculate_which()
923 calculate_program_macos(wchar_t **abs_path_p) in calculate_program_macos()
939 || (wchar_t)execpath[0] != SEP) in calculate_program_macos()
976 wchar_t *abs_path = NULL; in calculate_program_impl()
988 wchar_t *abs_path = NULL; in calculate_program_impl()
1049 resolve_symlinks(wchar_t **path_p) in resolve_symlinks()
1051 wchar_t new_path[MAXPATHLEN + 1]; in resolve_symlinks()
1073 wchar_t *abs_path = joinpath2(*path_p, new_path); in resolve_symlinks()
1120 wchar_t* wbuf = Py_DecodeLocale(modPath, &len); in calculate_argv0_path_framework()
1128 wchar_t *parent = _PyMem_RawWcsdup(wbuf); in calculate_argv0_path_framework()
1135 wchar_t *lib_python = joinpath2(parent, calculate->lib_python); in calculate_argv0_path_framework()
1210 const wchar_t *env_cfg = L"pyvenv.cfg"; in calculate_open_pyenv()
1213 wchar_t *filename = joinpath2(calculate->argv0_path, env_cfg); in calculate_open_pyenv()
1230 wchar_t *parent = _PyMem_RawWcsdup(calculate->argv0_path); in calculate_open_pyenv()
1275 wchar_t *home = NULL; in calculate_read_pyenv()
1297 wchar_t *path = joinpath2(calculate->platlibdir, in calculate_zip_path()
1308 wchar_t *parent = _PyMem_RawWcsdup(calculate->prefix); in calculate_zip_path()
1345 wchar_t *defpath = calculate->pythonpath_macro; in calculate_module_search_path()
1348 wchar_t *delim = wcschr(defpath, DELIM); in calculate_module_search_path()
1369 wchar_t *buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
1390 wchar_t *delim = wcschr(defpath, DELIM); in calculate_module_search_path()
1460 wchar_t *pyversion = Py_DecodeLocale("python" VERSION, &len); in calculate_init()