Lines Matching refs:lptr
240 const char *lptr; /* A pointer into line[] */ in _cf_complete_file() local
264 lptr = line + word_start; in _cf_complete_file()
269 if(nleft > 0 && *lptr == '~') { in _cf_complete_file()
271 if(!cf_read_name(cf, "User", ++lptr, --nleft, cf->usrnam, USR_LEN)) in _cf_complete_file()
277 lptr += slen; in _cf_complete_file()
294 strncmp(lptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { in _cf_complete_file()
295 lptr += FS_DIR_SEP_LEN; in _cf_complete_file()
321 int c = lptr[seglen]; in _cf_complete_file()
333 strncmp(lptr + seglen, FS_DIR_SEP, FS_DIR_SEP_LEN)==0) { in _cf_complete_file()
334 word_start = (lptr + seglen) - line + FS_DIR_SEP_LEN; in _cf_complete_file()
343 if(_pn_append_to_path(cf->path, lptr, seglen, escaped) == NULL) { in _cf_complete_file()
348 lptr += seglen; in _cf_complete_file()
363 if(!cf_read_name(cf, "Environment", ++lptr, --nleft, cf->envnam, ENV_LEN)) in _cf_complete_file()
369 lptr += nlen; in _cf_complete_file()
397 strncmp(lptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { in _cf_complete_file()
398 lptr += FS_DIR_SEP_LEN; in _cf_complete_file()
415 strncmp(lptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { in _cf_complete_file()
416 lptr += FS_DIR_SEP_LEN; in _cf_complete_file()
440 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP, in _cf_complete_file()