Lines Matching defs: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 */
209 * cpl WordCompletion * The object in which to record the completions.
236 int _cf_complete_file(WordCompletion *cpl, CompleteFile *cf,
246 if(!cpl || !cf || !line || word_end < word_start) {
306 return cf_complete_username(cf, cpl, cf->usrnam, line, word_start+1,
440 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP,
442 _err_record_msg(cf->err, cpl_last_error(cpl), END_ERR_MSG);
452 return cf_complete_entry(cf, cpl, line, word_start, word_end, escaped,
510 * cpl WordCompletion * The object in which to record the completions.
523 static int cf_complete_username(CompleteFile *cf, WordCompletion *cpl,
533 args.cpl = cpl;
560 WordCompletion *cpl = args->cpl;
574 if(cpl_add_completion(cpl, args->line, args->word_start, args->word_end,
576 strncpy(errmsg, cpl_last_error(cpl), maxerr);
588 * cpl WordCompletion * The object in which to record the completions.
607 static int cf_complete_entry(CompleteFile *cf, WordCompletion *cpl,
737 if(cpl_add_completion(cpl, line, word_start, word_end, cf->buff->name,