Lines Matching refs:cpl
93 static int cf_complete_username(CompleteFile *cf, WordCompletion *cpl,
97 static int cf_complete_entry(CompleteFile *cf, WordCompletion *cpl,
113 WordCompletion *cpl; /* The string-completion rsource object */ member
236 int _cf_complete_file(WordCompletion *cpl, CompleteFile *cf, in _cf_complete_file() argument
246 if(!cpl || !cf || !line || word_end < word_start) { in _cf_complete_file()
306 return cf_complete_username(cf, cpl, cf->usrnam, line, word_start+1, in _cf_complete_file()
440 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP, in _cf_complete_file()
442 _err_record_msg(cf->err, cpl_last_error(cpl), END_ERR_MSG); in _cf_complete_file()
452 return cf_complete_entry(cf, cpl, line, word_start, word_end, escaped, in _cf_complete_file()
523 static int cf_complete_username(CompleteFile *cf, WordCompletion *cpl, in cf_complete_username() argument
533 args.cpl = cpl; in cf_complete_username()
560 WordCompletion *cpl = args->cpl; in HOME_DIR_FN() local
574 if(cpl_add_completion(cpl, args->line, args->word_start, args->word_end, in HOME_DIR_FN()
576 strncpy(errmsg, cpl_last_error(cpl), maxerr); in HOME_DIR_FN()
607 static int cf_complete_entry(CompleteFile *cf, WordCompletion *cpl, in cf_complete_entry() argument
737 if(cpl_add_completion(cpl, line, word_start, word_end, cf->buff->name, in cf_complete_entry()