| /freebsd-14.2/contrib/less/ |
| H A D | input.c | 100 return (NULL_POSITION); in forw_line_seg() 120 return (NULL_POSITION); in forw_line_seg() 132 return (NULL_POSITION); in forw_line_seg() 157 return (NULL_POSITION); in forw_line_seg() 189 return (NULL_POSITION); in forw_line_seg() 192 wrap_pos = NULL_POSITION; in forw_line_seg() 204 return (NULL_POSITION); in forw_line_seg() 376 return (NULL_POSITION); in back_line() 386 return (NULL_POSITION); in back_line() 429 return (NULL_POSITION); in back_line() [all …]
|
| H A D | forwback.c | 79 if (ch_length() == NULL_POSITION) in eof_displayed() 92 return (pos == NULL_POSITION || pos == ch_length()); in eof_displayed() 108 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed() 189 if (pos == NULL_POSITION) in overlay_header() 305 if (pos == NULL_POSITION) in forw() 313 if (!force && position(TOP) != NULL_POSITION) in forw() 340 pos == NULL_POSITION && !top_scroll && in forw() 425 if (pos == NULL_POSITION) in back() 495 } while (pos == NULL_POSITION && !ABORT_SIGS()); in forward() 515 if (pos == NULL_POSITION && (!force || position(BOTTOM) == 0)) in backward() [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() 238 if (tpos == NULL_POSITION || pos >= tpos) in jump_loc() 248 if (bpos != NULL_POSITION && pos <= bpos) in jump_loc() 263 if (pos == NULL_POSITION) in jump_loc() 289 if (pos == NULL_POSITION) in jump_loc()
|
| H A D | linenum.c | 271 if (pos == NULL_POSITION) in find_linenum() 324 if (cpos == NULL_POSITION) in find_linenum() 355 if (cpos == NULL_POSITION) in find_linenum() 400 return (NULL_POSITION); in find_pos() 408 return (NULL_POSITION); in find_pos() 409 if (cpos == NULL_POSITION) in find_pos() 410 return (NULL_POSITION); in find_pos() 418 return (NULL_POSITION); in find_pos() 426 return (NULL_POSITION); in find_pos() 428 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()
|
| H A D | prompt.c | 155 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in curr_byte() 157 if (pos == NULL_POSITION) in curr_byte() 177 return (curr_byte(where) != NULL_POSITION); in cond() 192 return (linenums && ch_length() != NULL_POSITION); in cond() 206 return (curr_byte(where) != NULL_POSITION && in cond() 214 return (ch_length() != NULL_POSITION); in cond() 249 if (pos != NULL_POSITION) in protochar() 267 if (len == NULL_POSITION) in protochar() 314 if (len == NULL_POSITION || len == ch_zero() || in protochar() 332 if (pos != NULL_POSITION && len > 0) in protochar() [all …]
|
| H A D | search.c | 272 if (pos == NULL_POSITION) in repaint_hilite() 315 if (pos == NULL_POSITION) in clear_attn() 1038 if (pos == NULL_POSITION) in search_pos() 1148 return NULL_POSITION; in get_lastlinepos() 1199 if (pos == NULL_POSITION) in search_range() 1256 if (pos == NULL_POSITION) in search_range() 1578 if (pos == NULL_POSITION) in search() 1671 max_epos = NULL_POSITION; in prep_hilite() 1695 if (epos != NULL_POSITION) in prep_hilite() 1703 if (epos == NULL_POSITION) in prep_hilite() [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 | 227 if ((len = ch_length()) != NULL_POSITION && pos >= len) in ch_get() 382 if (!tried && ch_fsize == NULL_POSITION) in end_logfile() 468 if (pos < ch_zero() || (len != NULL_POSITION && pos > len)) in ch_seek() 507 if (len != NULL_POSITION) in ch_end_seek() 583 return (NULL_POSITION); in ch_length() 585 return (NULL_POSITION); in ch_length() 599 return (NULL_POSITION); in ch_tell() 679 ch_fsize = NULL_POSITION; in ch_flush() 711 ch_fsize = NULL_POSITION; in ch_flush() 807 if (ch_fsize != NULL_POSITION && ch_fsize < ch_fpos) in ch_set_eof() [all …]
|
| H A D | lsystem.c | 261 if (mpos == NULL_POSITION) in pipe_mark() 264 if (tpos == NULL_POSITION) in pipe_mark() 272 else if (bpos == NULL_POSITION) in pipe_mark() 321 while (epos == NULL_POSITION || spos++ <= epos) in pipe_data()
|
| H A D | line.c | 254 line_pos = NULL_POSITION; in prewind() 344 else if (start_attnpos != NULL_POSITION && in plinestart() 698 if (pos == NULL_POSITION) in store_char() 715 if (highest_hilite != NULL_POSITION && pos != NULL_POSITION && pos > highest_hilite) in store_char() 767 if (line_pos == NULL_POSITION) in store_char() 1338 if (curr_pos == NULL_POSITION || ch_seek(curr_pos) || in forw_raw_line() 1340 return (NULL_POSITION); in forw_raw_line() 1383 if (curr_pos == NULL_POSITION || curr_pos <= ch_zero() || in back_raw_line() 1385 return (NULL_POSITION); in back_raw_line() 1483 if (pappend(*str++, NULL_POSITION)) in pappstr() [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() 677 return (NULL_POSITION); /* No gtags loaded! */ in gtagsearch()
|
| H A D | main.c | 28 public POSITION start_attnpos = NULL_POSITION; 29 public POSITION end_attnpos = NULL_POSITION; 276 if (initial_scrpos.pos == NULL_POSITION) in main()
|
| 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 } }; 110 p->h_scrpos.pos = NULL_POSITION; in new_ifile()
|
| H A D | edit.c | 255 if (pos == NULL_POSITION) in check_modelines() 305 if (sig != SIGPIPE || ch_length() != NULL_POSITION) in close_pipe() 361 if (scrpos.pos != NULL_POSITION) in close_file()
|
| H A D | command.c | 790 if (initial_scrpos.pos == NULL_POSITION) in make_display() 1185 highest_hilite = until_hilite ? curr_len : NULL_POSITION; in forw_loop() 1845 if (pos != NULL_POSITION) in commands() 1870 if (pos != NULL_POSITION) in commands()
|
| H A D | filename.c | 496 return (NULL_POSITION); in seek_filesize() 1090 (curr_pos != NULL_POSITION && st.st_size < curr_pos))) in curr_ifile_changed()
|
| H A D | optfunc.c | 342 if (edit_tagfile() || (pos = tagsearch()) == NULL_POSITION) in opt_t() 925 if (want_filesize && curr_ifile != NULL && ch_length() == NULL_POSITION) in opt_filesize()
|
| H A D | less.h | 247 #define NULL_POSITION ((POSITION)(-1)) macro
|
| H A D | decode.c | 810 if (len == NULL_POSITION || len < 3) in lesskey()
|