Lines Matching refs:xpc
2579 expand_T xpc; in globpath() local
2589 ExpandInit(&xpc); in globpath()
2590 xpc.xp_context = EXPAND_FILES; in globpath()
2608 if (ExpandFromContext(&xpc, buf, &num_p, &p, in globpath()
2611 ExpandEscape(&xpc, buf, num_p, p, WILD_SILENT|expand_options); in globpath()
2892 expand_T xpc; in f_getcompletion() local
2920 ExpandInit(&xpc); in f_getcompletion()
2923 set_one_cmd_context(&xpc, tv_get_string(&argvars[0])); in f_getcompletion()
2924 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); in f_getcompletion()
2928 xpc.xp_pattern = tv_get_string(&argvars[0]); in f_getcompletion()
2929 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); in f_getcompletion()
2931 xpc.xp_context = cmdcomplete_str_to_type(type); in f_getcompletion()
2932 if (xpc.xp_context == EXPAND_NOTHING) in f_getcompletion()
2939 if (xpc.xp_context == EXPAND_MENUS) in f_getcompletion()
2941 set_context_in_menu_cmd(&xpc, (char_u *)"menu", xpc.xp_pattern, FALSE); in f_getcompletion()
2942 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); in f_getcompletion()
2946 if (xpc.xp_context == EXPAND_CSCOPE) in f_getcompletion()
2948 set_context_in_cscope_cmd(&xpc, xpc.xp_pattern, CMD_cscope); in f_getcompletion()
2949 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); in f_getcompletion()
2953 if (xpc.xp_context == EXPAND_SIGN) in f_getcompletion()
2955 set_context_in_sign_cmd(&xpc, xpc.xp_pattern); in f_getcompletion()
2956 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); in f_getcompletion()
2961 pat = addstar(xpc.xp_pattern, xpc.xp_pattern_len, xpc.xp_context); in f_getcompletion()
2966 ExpandOne(&xpc, pat, NULL, options, WILD_ALL_KEEP); in f_getcompletion()
2968 for (i = 0; i < xpc.xp_numfiles; i++) in f_getcompletion()
2969 list_append_string(rettv->vval.v_list, xpc.xp_files[i], -1); in f_getcompletion()
2972 ExpandCleanup(&xpc); in f_getcompletion()