Lines Matching refs:WCHAR
41 const WCHAR* const wide;
42 const WCHAR* const wide_eq;
108 static int uv__utf8_to_utf16_alloc(const char* s, WCHAR** ws_ptr) { in uv__utf8_to_utf16_alloc()
110 WCHAR* ws; in uv__utf8_to_utf16_alloc()
122 ws = (WCHAR*) uv__malloc(ws_len * sizeof(WCHAR)); in uv__utf8_to_utf16_alloc()
162 static WCHAR* search_path_join_test(const WCHAR* dir, in search_path_join_test()
164 const WCHAR* name, in search_path_join_test()
166 const WCHAR* ext, in search_path_join_test()
168 const WCHAR* cwd, in search_path_join_test()
170 WCHAR *result, *result_pos; in search_path_join_test()
200 result = result_pos = (WCHAR*)uv__malloc(sizeof(WCHAR) * in search_path_join_test()
257 static WCHAR* path_search_walk_ext(const WCHAR *dir, in path_search_walk_ext()
259 const WCHAR *name, in path_search_walk_ext()
261 WCHAR *cwd, in path_search_walk_ext()
264 WCHAR* result; in path_search_walk_ext()
342 static WCHAR* search_path(const WCHAR *file, in search_path()
343 WCHAR *cwd, in search_path()
344 const WCHAR *path) { in search_path()
346 WCHAR* result = NULL; in search_path()
347 WCHAR *file_name_start; in search_path()
348 WCHAR *dot; in search_path()
349 const WCHAR *dir_start, *dir_end, *dir_path; in search_path()
366 for (file_name_start = (WCHAR*)file + file_len; in search_path()
455 WCHAR* quote_cmd_arg(const WCHAR *source, WCHAR *target) { in quote_cmd_arg()
459 WCHAR* start; in quote_cmd_arg()
528 int make_program_args(char** args, int verbatim_arguments, WCHAR** dst_ptr) { in make_program_args()
530 WCHAR* dst = NULL; in make_program_args()
531 WCHAR* temp_buffer = NULL; in make_program_args()
534 WCHAR* pos; in make_program_args()
565 dst = (WCHAR*) uv__malloc(dst_len * sizeof(WCHAR)); in make_program_args()
572 temp_buffer = (WCHAR*) uv__malloc(temp_buffer_len * sizeof(WCHAR)); in make_program_args()
684 int make_program_env(char* env_block[], WCHAR** dst_ptr) { in make_program_env()
685 WCHAR* dst; in make_program_env()
686 WCHAR* ptr; in make_program_env()
693 WCHAR* dst_copy; in make_program_env()
694 WCHAR** ptr_copy; in make_program_env()
695 WCHAR** env_copy; in make_program_env()
717 dst_copy = (WCHAR*)uv__malloc(env_len * sizeof(WCHAR)); in make_program_env()
721 env_copy = alloca(env_block_count * sizeof(WCHAR*)); in make_program_env()
775 dst = uv__malloc((1+env_len) * sizeof(WCHAR)); in make_program_env()
833 static WCHAR* find_path(WCHAR *env) { in find_path()
943 WCHAR* path = NULL, *alloc_path = NULL; in uv_spawn()
945 WCHAR* application_path = NULL, *application = NULL, *arguments = NULL, in uv_spawn()
1005 cwd = (WCHAR*) uv__malloc(cwd_len * sizeof(WCHAR)); in uv_spawn()
1029 alloc_path = (WCHAR*) uv__malloc(path_len * sizeof(WCHAR)); in uv_spawn()