/freebsd/contrib/less/ |
H A D | input.c | 47 int hl_before = (chop_line() && disp_pos != NULL_POSITION) ? in init_status_col() 49 int hl_after = (chop_line() && edisp_pos != NULL_POSITION) ? in init_status_col() 66 } else if (disp_pos != NULL_POSITION) in init_status_col() 99 if (curr_pos == NULL_POSITION) in forw_line_seg() 102 return (NULL_POSITION); in forw_line_seg() 121 return (NULL_POSITION); in forw_line_seg() 154 return (NULL_POSITION); in forw_line_seg() 185 return (NULL_POSITION); in forw_line_seg() 188 wrap_pos = NULL_POSITION; in forw_line_seg() 261 } else if (wrap_pos == NULL_POSITION) in forw_line_seg() [all...] |
H A D | forwback.c | 80 if (ch_length() == NULL_POSITION) in eof_displayed() 93 return (pos == NULL_POSITION || pos == ch_length()); in eof_displayed() 109 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed() 190 if (pos == NULL_POSITION) in overlay_header() 213 * real line. If nblank > 0, the pos must be NULL_POSITION. 221 if (pos != NULL_POSITION) in forw() 238 if (pos != NULL_POSITION && (hilite_search == OPT_ONPLUS || is_filtering() || status_col)) { in forw() 308 if (pos == NULL_POSITION) in forw() 316 if (!force && position(TOP) != NULL_POSITION) in forw() 343 pos == NULL_POSITION in forw() [all...] |
H A D | jump.c | 57 if (pos == NULL_POSITION) in jump_forw() 80 if (end != NULL_POSITION && end > 0) in jump_forw_buffered() 99 if (pos != NULL_POSITION && ch_seek(pos) == 0) in jump_back() 127 if (scrpos.pos == NULL_POSITION) in repaint() 145 if ((len = ch_length()) == NULL_POSITION) in jump_percent() 150 if ((len = ch_length()) == NULL_POSITION) in jump_percent() 211 if (header_start_pos != NULL_POSITION && pos < header_start_pos) in jump_loc() 271 if (tpos == NULL_POSITION || pos >= tpos) in jump_loc() 281 if (bpos != NULL_POSITION && pos <= bpos) in jump_loc() 296 if (pos == NULL_POSITION) in jump_loc() [all...] |
H A D | linenum.c | 284 if (pos == NULL_POSITION) in find_linenum() 334 if (cpos == NULL_POSITION) in find_linenum() 365 if (cpos == NULL_POSITION) in find_linenum() 379 * Return NULL_POSITION if we can't figure it out. in find_pos() 409 return (NULL_POSITION); in find_pos() 417 return (NULL_POSITION); in find_pos() 418 if (cpos == NULL_POSITION) in find_pos() 419 return (NULL_POSITION); in find_pos() 427 return (NULL_POSITION); in find_pos() 435 return (NULL_POSITION); in find_pos() [all...] |
H A D | position.c | 94 table[i] = NULL_POSITION; in pos_clear() 115 scrpos.pos = NULL_POSITION; in pos_init() 119 if (scrpos.pos != NULL_POSITION) in pos_init() 153 if (table[i] != NULL_POSITION && table[i] != 0) in empty_lines() 182 if (table[i] == NULL_POSITION) { in get_scrpos() 183 scrpos->pos = NULL_POSITION; in get_scrpos() 196 if (table[i] != NULL_POSITION) in get_scrpos() 207 scrpos->pos = NULL_POSITION; in get_scrpos() 255 if (pos == NULL_POSITION || line_len != choff) 294 if (tpos == NULL_POSITION) [all...] |
H A D | prompt.c | 180 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in cond() 182 if (pos == NULL_POSITION) in cond() 202 return (curr_byte(where) != NULL_POSITION); in cond() 217 return (linenums && ch_length() != NULL_POSITION); in cond() 231 return (curr_byte(where) != NULL_POSITION && ch_length() > 0); 238 return (ch_length() != NULL_POSITION); in protochar() 273 if (pos != NULL_POSITION) in protochar() 291 if (len == NULL_POSITION) in protochar() 338 if (len == NULL_POSITION || len == ch_zero() || in protochar() 364 if (pos != NULL_POSITION in protochar() [all...] |
H A D | search.c | 54 public POSITION header_start_pos = NULL_POSITION; 58 public POSITION osc8_linepos = NULL_POSITION; 59 public POSITION osc8_match_start = NULL_POSITION; 60 public POSITION osc8_match_end = NULL_POSITION; 61 public POSITION osc8_params_start = NULL_POSITION; 62 public POSITION osc8_params_end = NULL_POSITION; 63 public POSITION osc8_uri_start = NULL_POSITION; 64 public POSITION osc8_uri_end = NULL_POSITION; 65 public POSITION osc8_text_start = NULL_POSITION; 66 public POSITION osc8_text_end = NULL_POSITION; [all...] |
H A D | mark.c | 79 cmark(&marks[i], NULL_IFILE, NULL_POSITION, -1); in init_mark() 175 if (m->m_scrpos.pos == NULL_POSITION) in getmark() 205 if (scrpos.pos == NULL_POSITION) in setmark() 224 if (m->m_scrpos.pos == NULL_POSITION) in clrmark() 229 m->m_scrpos.pos = NULL_POSITION; in clrmark() 243 if (scrpos.pos == NULL_POSITION) in lastmark() 267 if (m == &marks[LASTMARK] && m->m_scrpos.pos == NULL_POSITION) in gomark() 299 return (NULL_POSITION); in markpos() 304 return (NULL_POSITION); in markpos() 338 marks[i].m_scrpos.pos = NULL_POSITION; in unmark() [all...] |
H A D | ch.c | 228 if ((len = ch_length()) != NULL_POSITION && pos >= len) in ch_get() 391 if (!tried && ch_fsize == NULL_POSITION) in end_logfile() 477 if (pos < ch_zero() || (len != NULL_POSITION && pos > len)) in ch_seek() 516 if (len != NULL_POSITION) in ch_end_seek() 592 return (NULL_POSITION); 594 return (NULL_POSITION); 608 return (NULL_POSITION); in ch_forw_get() 688 ch_fsize = NULL_POSITION; in ch_flush() 709 ch_fsize = NULL_POSITION; in ch_flush() 808 if (ch_fsize != NULL_POSITION in seekable() [all...] |
H A D | lsystem.c | 260 if (mpos == NULL_POSITION) in pipe_mark() 263 if (tpos == NULL_POSITION) in pipe_mark() 271 else if (bpos == NULL_POSITION) in pipe_mark() 320 while (epos == NULL_POSITION || spos++ <= epos) in pipe_data()
|
H A D | line.c | 252 line_pos = NULL_POSITION; in prewind() 341 else if (start_attnpos != NULL_POSITION && in plinestart() 405 line_pos = NULL_POSITION; in pshift_all() 723 if (pos == NULL_POSITION) in store_char() 740 if (highest_hilite != NULL_POSITION && pos != NULL_POSITION && pos > highest_hilite) in store_char() 792 if (line_pos == NULL_POSITION) in store_char() 1312 * saved_pos = position of a known column, or NULL_POSITION if no known column in gline() 1330 if (ch_seek(saved_pos != NULL_POSITION ? saved_pos : linepos)) 1388 if (cp->pos != NULL_POSITION in back_raw_line() [all...] |
H A D | tags.c | 198 return (NULL_POSITION); /* No gtags loaded! */ in tagsearch() 424 return (NULL_POSITION); in ctagsearch() 435 if (pos == NULL_POSITION) in ctagsearch() 441 return (NULL_POSITION); in ctagsearch() 678 return (NULL_POSITION); /* No gtags loaded! */ in gtagsearch()
|
H A D | main.c | 37 public POSITION start_attnpos = NULL_POSITION; 38 public POSITION end_attnpos = NULL_POSITION; 442 if (initial_scrpos.pos == NULL_POSITION)
|
H A D | brac.c | 41 if (pos == NULL_POSITION || ch_seek(pos)) in match_brac()
|
H A D | ifile.c | 51 { NULL_POSITION, 0 }, NULL, NULL }; 110 p->h_scrpos.pos = NULL_POSITION; in new_ifile() 279 * If no position has been associated with the file, return NULL_POSITION.
|
H A D | edit.c | 256 if (pos == NULL_POSITION) in check_modelines() 308 if (sig != SIGPIPE || ch_length() != NULL_POSITION) in close_pipe() 364 if (scrpos.pos != NULL_POSITION) in close_file()
|
H A D | command.c | 819 if (initial_scrpos.pos == NULL_POSITION) in prompt() 1269 highest_hilite = until_hilite ? curr_len : NULL_POSITION; in commands() 1974 if (pos != NULL_POSITION) in commands() 1999 if (pos != NULL_POSITION) in commands()
|
H A D | filename.c | 521 return (NULL_POSITION); in readfd() 1110 (curr_pos != NULL_POSITION && st.st_size < curr_pos))) in last_component()
|
H A D | optfunc.c | 364 if (edit_tagfile() || (pos = tagsearch()) == NULL_POSITION) in opt__T() 967 if (want_filesize && curr_ifile != NULL && ch_length() == NULL_POSITION) in opt_header() 1075 if (start_pos == NULL_POSITION) start_pos = ch_zero(); in opt_ttyin_name()
|
H A D | less.h | 242 #define NULL_POSITION ((POSITION)(-1)) 247 #define NULL_POSITION global() macro
|
H A D | decode.c | 965 if (len == NULL_POSITION || len < 3) in editchar()
|