Lines Matching refs:wchar_t
57 static wchar_t *
58 skip_whitespace(wchar_t * p) in skip_whitespace()
66 debug(wchar_t * format, ...) in debug()
78 winerror(int rc, wchar_t * message, int size) in winerror()
87 error(int rc, wchar_t * format, ... ) in error()
90 wchar_t message[MSGSIZE]; in error()
91 wchar_t win_message[MSGSIZE]; in error()
119 static wchar_t * get_env(wchar_t * key) in get_env()
122 static wchar_t buf[BUFSIZE]; in get_env()
127 wchar_t *buf2 = (wchar_t*)malloc(sizeof(wchar_t) * (result+1)); in get_env()
172 wchar_t version[MAX_VERSION_SIZE]; /* m.n */
174 wchar_t executable[MAX_PATH];
175 wchar_t exe_display[MAX_PATH];
206 static wchar_t * location_checks[] = {
217 find_existing_python(const wchar_t * path) in find_existing_python()
233 find_existing_python2(int bits, const wchar_t * version) in find_existing_python2()
254 wchar_t message[MSGSIZE]; in _locate_pythons_for_key()
260 wchar_t ip_version[IP_VERSION_SIZE]; in _locate_pythons_for_key()
261 wchar_t ip_path[IP_SIZE]; in _locate_pythons_for_key()
262 wchar_t * check; in _locate_pythons_for_key()
263 wchar_t ** checkp; in _locate_pythons_for_key()
264 wchar_t *key_name = (root == HKEY_LOCAL_MACHINE) ? L"HKLM" : L"HKCU"; in _locate_pythons_for_key()
327 data_size = data_size / sizeof(wchar_t) - 1; /* for NUL */ in _locate_pythons_for_key()
381 const wchar_t *name = wcsrchr(ip->executable, L'\\'); in _locate_pythons_for_key()
394 ip->executable, n * sizeof(wchar_t)); in _locate_pythons_for_key()
471 static wchar_t venv_python[MAX_PATH]; in locate_venv_python()
473 wchar_t *virtual_env = get_env(L"VIRTUAL_ENV"); in locate_venv_python()
527 find_python_by_version(wchar_t const * wanted_ver) in find_python_by_version()
567 static wchar_t appdata_ini_path[MAX_PATH];
568 static wchar_t launcher_ini_path[MAX_PATH];
574 static wchar_t *
575 get_configured_value(wchar_t * key) in get_configured_value()
582 static wchar_t configured_value[MSGSIZE]; in get_configured_value()
583 wchar_t * result = NULL; in get_configured_value()
584 wchar_t * found_in = L"environment"; in get_configured_value()
620 locate_python(wchar_t * wanted_ver, BOOL from_shebang) in locate_python()
622 static wchar_t config_key [] = { L"pythonX" }; in locate_python()
623 static wchar_t * last_char = &config_key[sizeof(config_key) / in locate_python()
624 sizeof(wchar_t) - 2]; in locate_python()
627 wchar_t * configured_value; in locate_python()
688 static wchar_t wrapped_script_path[MAX_PATH];
699 wchar_t * p; in locate_wrapped_script()
756 run_child(wchar_t * cmdline) in run_child()
826 invoke_child(wchar_t * executable, wchar_t * suffix, wchar_t * cmdline) in invoke_child()
828 wchar_t * child_command; in invoke_child()
845 child_command = calloc(child_command_size, sizeof(wchar_t)); in invoke_child()
863 wchar_t *shebang;
880 wchar_t key[MAX_PATH];
881 wchar_t value[MSGSIZE];
889 static wchar_t * builtin_prefixes [] = {
900 static wchar_t * skip_prefix(wchar_t * name) in skip_prefix()
902 wchar_t ** pp = builtin_prefixes; in skip_prefix()
903 wchar_t * result = name; in skip_prefix()
904 wchar_t * p; in skip_prefix()
925 static COMMAND * find_on_path(wchar_t * name) in find_on_path()
927 wchar_t * pathext; in find_on_path()
929 wchar_t * context = NULL; in find_on_path()
930 wchar_t * extension; in find_on_path()
964 static COMMAND * find_command(wchar_t * name) in find_command()
984 update_command(COMMAND * cp, wchar_t * name, wchar_t * cmdline) in update_command()
991 add_command(wchar_t * name, wchar_t * cmdline) in add_command()
1004 read_config_file(wchar_t * config_path) in read_config_file()
1006 wchar_t keynames[MSGSIZE]; in read_config_file()
1007 wchar_t value[MSGSIZE]; in read_config_file()
1009 wchar_t * key; in read_config_file()
1011 wchar_t * cmdp; in read_config_file()
1047 parse_shebang(wchar_t * shebang_line, int nchars, wchar_t ** command, in parse_shebang()
1048 wchar_t ** suffix, BOOL *search) in parse_shebang()
1053 wchar_t * p; in parse_shebang()
1054 wchar_t zapped; in parse_shebang()
1055 wchar_t * endp = shebang_line + nchars - 1; in parse_shebang()
1057 wchar_t * skipped; in parse_shebang()
1198 validate_version(wchar_t * p) in validate_version()
1248 wchar_t version[MAX_VERSION_SIZE];
1291 maybe_handle_shebang(wchar_t ** argv, wchar_t * cmdline) in maybe_handle_shebang()
1303 wchar_t shebang_line[BUFSIZE + 1]; in maybe_handle_shebang()
1313 wchar_t * command; in maybe_handle_shebang()
1314 wchar_t * suffix; in maybe_handle_shebang()
1379 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1391 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1406 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1421 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1482 static wchar_t *
1483 skip_me(wchar_t * cmdline) in skip_me()
1486 wchar_t c; in skip_me()
1487 wchar_t * result = cmdline; in skip_me()
1510 get_version_info(wchar_t * version_text, size_t size) in get_version_info()
1527 show_help_text(wchar_t ** argv) in show_help_text()
1529 wchar_t version_text [MAX_PATH]; in show_help_text()
1573 show_python_list(wchar_t ** argv) in show_python_list()
1582 wchar_t *p = argv[1]; in show_python_list()
1583 wchar_t *ver_fmt = L"-%ls-%d"; in show_python_list()
1584 wchar_t *fmt = L"\n %ls"; in show_python_list()
1585 wchar_t *defind = L" *"; /* Default indicator */ in show_python_list()
1604 wchar_t version[BUFSIZ]; in show_python_list()
1667 static wchar_t *
1668 wcsdup_pad(const wchar_t *s, int padding, int *newlen) in wcsdup_pad()
1672 wchar_t *r = (wchar_t *)malloc(len * sizeof(wchar_t)); in wcsdup_pad()
1684 static wchar_t *
1689 wchar_t *r = NULL; in get_process_name()
1692 r = (wchar_t *)malloc(bufferLen * sizeof(wchar_t)); in get_process_name()
1714 process(int argc, wchar_t ** argv) in process()
1716 wchar_t * wp; in process()
1717 wchar_t * command; in process()
1718 wchar_t * executable; in process()
1719 wchar_t * p; in process()
1720 wchar_t * argv0; in process()
1725 wchar_t message[MSGSIZE]; in process()
1730 wchar_t * venv_cfg_path; in process()
1733 wchar_t * newcommand; in process()
1734 wchar_t * av[2]; in process()
1886 newcommand = malloc(sizeof(wchar_t) * newlen); in process()
1927 executable = (wchar_t *)malloc(cch * sizeof(wchar_t)); in process()
2028 int cdecl wmain(int argc, wchar_t ** argv) in wmain()